<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Compile error on Mac in Archicad C++ API</title>
    <link>https://community.graphisoft.com/t5/Archicad-C-API/Compile-error-on-Mac/m-p/577248#M8915</link>
    <description>&lt;P&gt;Hi Bernd,&lt;/P&gt;
&lt;P&gt;Thanks for your reply. I'm building for AC27. Where do you find which version no. is the recommended for it?&lt;/P&gt;</description>
    <pubDate>Fri, 24 Nov 2023 05:28:08 GMT</pubDate>
    <dc:creator>dushyant</dc:creator>
    <dc:date>2023-11-24T05:28:08Z</dc:date>
    <item>
      <title>Compile error on Mac</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Compile-error-on-Mac/m-p/575888#M8896</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm getting a compile error on Mac:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt; /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.0.sdk/usr/include/c++/v1/locale:2827:22: no member named 'GS_realloc' in namespace 'std'; did you mean simply 'GS_realloc'?

    _Tp* __t = (_Tp*)std::realloc(__owns ? __b.get() : 0, __new_cap);&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The same code compiles fine with MSVC on windows.&lt;/P&gt;
&lt;P&gt;Anyone faced this error?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Tue, 17 Sep 2024 11:22:47 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Compile-error-on-Mac/m-p/575888#M8896</guid>
      <dc:creator>dushyant</dc:creator>
      <dc:date>2024-09-17T11:22:47Z</dc:date>
    </item>
    <item>
      <title>Re: Compile error on Mac</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Compile-error-on-Mac/m-p/577184#M8911</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;That's a weird error and I haven't experienced it myself.&lt;BR /&gt;But a different thing I noticed is, that you are using the MacOSx14.0 devkit. I would try to use the same as the recommended deployment target. So that's 10.15 for AC25+.&lt;BR /&gt;It's a bit tough to get older macOS devkits installed. I think I got them from here: &lt;A href="https://github.com/phracker/MacOSX-SDKs" target="_blank"&gt;https://github.com/phracker/MacOSX-SDKs&lt;/A&gt;&lt;BR /&gt;but proceed at your own risk ^^&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope that helps,&lt;BR /&gt;Bernd&lt;/P&gt;</description>
      <pubDate>Thu, 23 Nov 2023 20:00:47 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Compile-error-on-Mac/m-p/577184#M8911</guid>
      <dc:creator>BerndSchwarzenbacher</dc:creator>
      <dc:date>2023-11-23T20:00:47Z</dc:date>
    </item>
    <item>
      <title>Re: Compile error on Mac</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Compile-error-on-Mac/m-p/577248#M8915</link>
      <description>&lt;P&gt;Hi Bernd,&lt;/P&gt;
&lt;P&gt;Thanks for your reply. I'm building for AC27. Where do you find which version no. is the recommended for it?&lt;/P&gt;</description>
      <pubDate>Fri, 24 Nov 2023 05:28:08 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Compile-error-on-Mac/m-p/577248#M8915</guid>
      <dc:creator>dushyant</dc:creator>
      <dc:date>2023-11-24T05:28:08Z</dc:date>
    </item>
    <item>
      <title>Re: Compile error on Mac</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Compile-error-on-Mac/m-p/577253#M8916</link>
      <description>&lt;P&gt;I thought there was a mention of it somewhere in the API docu or at the site of the SDK downloads. But now I can't find it anymore.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;But you can find the &lt;STRONG&gt;LSMinimumSystemVersion&lt;/STRONG&gt; for the libraries in the AC API SDK or also for the Archicad main app on macOS. This is one entry in the &lt;STRONG&gt;Info.plist&lt;/STRONG&gt; files. For AC27 all of these say "10.15.0". Here's the main one on my machine:&lt;/P&gt;
&lt;LI-CODE lang="c"&gt;/Applications/GRAPHISOFT/Archicad 27/Archicad 27.app/Contents/Info.plist&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 24 Nov 2023 06:03:55 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Compile-error-on-Mac/m-p/577253#M8916</guid>
      <dc:creator>BerndSchwarzenbacher</dc:creator>
      <dc:date>2023-11-24T06:03:55Z</dc:date>
    </item>
    <item>
      <title>Re: Compile error on Mac</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Compile-error-on-Mac/m-p/577273#M8917</link>
      <description>&lt;P&gt;Okay, that's the same for me (10.15.0). I tried with MacOSX10.15.sdk and the project failed to configure.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;-- The CXX compiler identification is unknown&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In CMakeLists.txt:&amp;nbsp;set(CMAKE_OSX_SYSROOT "/path/to/MacOSX-SDKs/MacOSX10.15.sdk")&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Btw, could this lead to compatibility issues with higher versions of MacOS when distributed?&lt;/P&gt;</description>
      <pubDate>Fri, 24 Nov 2023 08:08:28 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Compile-error-on-Mac/m-p/577273#M8917</guid>
      <dc:creator>dushyant</dc:creator>
      <dc:date>2023-11-24T08:08:28Z</dc:date>
    </item>
    <item>
      <title>Re: Compile error on Mac</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Compile-error-on-Mac/m-p/577324#M8918</link>
      <description>&lt;P&gt;I think the main issue could be, that your XCode version is not compatible with the SDK.&lt;/P&gt;
&lt;P&gt;You could try changing the &lt;CODE&gt;MinimumSDKVersion&lt;/CODE&gt; version to 10.15 there as well:&lt;/P&gt;
&lt;LI-CODE lang="c"&gt;/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Info.plist&lt;/LI-CODE&gt;
&lt;P&gt;This fixed it for me IIRC and I'm running XCode 14.1. For editing the plist file you can use e.g. the command line utility "plutil" and convert to xml first and then back to binary. Also make a backup of this Info.plist in case anything goes wrong.&lt;BR /&gt;&lt;BR /&gt;Sorry if all of this is vague. It's been a while since I've last done this and my notes on it are a bit scattered.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also you might need to adapt the Info.plist in your builds of the Add-On itself to match.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;About compatibility: I can't say for sure, but I'm not too worried about it myself, since GS distributes AC with this exact same MinimumSystemVersion.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Best,&lt;BR /&gt;Bernd&lt;/P&gt;</description>
      <pubDate>Fri, 24 Nov 2023 10:03:04 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Compile-error-on-Mac/m-p/577324#M8918</guid>
      <dc:creator>BerndSchwarzenbacher</dc:creator>
      <dc:date>2023-11-24T10:03:04Z</dc:date>
    </item>
    <item>
      <title>Re: Compile error on Mac</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Compile-error-on-Mac/m-p/577427#M8919</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I changed the MinimumSDKVersion to 10.15 in XCode's Info.plist.&lt;/P&gt;
&lt;P&gt;I moved the MacOSX10.15.sdk dir to&amp;nbsp;&lt;STRONG&gt;/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs&lt;BR /&gt;&lt;/STRONG&gt;passed the option to CMake to use&amp;nbsp;MacOSX10.15.sdk, but it doesn't seem to look there for it.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;Are you working in the XCode IDE itself? How do you set it to use any particular SDK? Do you use CMake?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Update: I made CMake to use the specific SDK but it fails to generate the project with it..&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 25 Nov 2023 07:17:15 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Compile-error-on-Mac/m-p/577427#M8919</guid>
      <dc:creator>dushyant</dc:creator>
      <dc:date>2023-11-25T07:17:15Z</dc:date>
    </item>
    <item>
      <title>Re: Compile error on Mac</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Compile-error-on-Mac/m-p/577497#M8922</link>
      <description>&lt;P&gt;OK, so good news and bad news:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Good news: The issue should definitely be with the MacOSX14.0 SDK, since in the file mentioned in your original question, it uses &lt;STRONG&gt;std::realloc&lt;/STRONG&gt; instead of &lt;STRONG&gt;realloc&lt;/STRONG&gt; as in older DevKits like the ones I have installed (13.0 and 10.13). And in the file Archicad SDK there's following line in the file &lt;STRONG&gt;Support/Modules/GSRoot/GSMalloc.hpp&lt;/STRONG&gt;:&lt;LI-CODE lang="cpp"&gt;#define realloc(p, s)	GS_realloc(p, s)​&lt;/LI-CODE&gt;And the combination explains the issue, since &lt;STRONG&gt;GS_realloc&lt;/STRONG&gt; really isn't in the std namespace. And switching the MacOSX SDK to an older version should really help.&lt;BR /&gt;&lt;BR /&gt;Another possibility could be to also put &lt;STRONG&gt;GS_realloc&lt;/STRONG&gt; in the &lt;STRONG&gt;std&lt;/STRONG&gt; namespace or add another&lt;STRONG&gt; #define std::realloc(p, s) GS_realloc(p, s) &lt;/STRONG&gt;before any includes. Not sure if any of it works and it's very hacky, but could be a temporary solution.&lt;/LI&gt;
&lt;LI&gt;Bad news: I'm actually using MacOSX13.0 SDK instead of the MacOSX10.13/10.15 devkits I thought I used. I have 10.13 installed and I'm sure I've used it before, but probably through one XCode update I got 13.0 installed and it was switched then. So I don't have recent experience about switching the MacOSX SDK apparently &lt;span class="lia-unicode-emoji" title=":grinning_face_with_sweat:"&gt;😅&lt;/span&gt; (I'm using Cmake as well).&lt;BR /&gt;&lt;BR /&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;What's your error in cmake during the build generation now?&lt;/P&gt;</description>
      <pubDate>Sun, 26 Nov 2023 11:12:28 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Compile-error-on-Mac/m-p/577497#M8922</guid>
      <dc:creator>BerndSchwarzenbacher</dc:creator>
      <dc:date>2023-11-26T11:12:28Z</dc:date>
    </item>
    <item>
      <title>Re: Compile error on Mac</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Compile-error-on-Mac/m-p/577500#M8923</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;Thanks for the info.&lt;/P&gt;
&lt;P&gt;I discovered that the error occurs when I include &amp;lt;iostream&amp;gt; library. So it could be related to the std namespace somehow (though I don't have any components in use from the library, and I could disable it).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I tried:&amp;nbsp;&lt;/P&gt;
&lt;PRE class="lia-code-sample  language-cpp"&gt;&lt;CODE&gt;#define realloc(p, s)	GS_realloc(p, s)​&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;That didn't help.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;CMake just fails to identify the manually supplied MacOSX SDK as a valid one. I tried with a custom path and also by placing the SDK in the same place as the main SDK in XCode:&amp;nbsp;/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs&lt;/P&gt;
&lt;P&gt;It fails in both cases. I removed the SDKs so I don't have the actual error messages to quote.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How do you supply the custom SDK to your CMake? Are you using CMake within the XCode IDE?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Anyway it seems I can get around this error by just avoiding the iostream library and use the latest SDK (v14) from XCode.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for the help and the info.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 26 Nov 2023 12:49:14 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Compile-error-on-Mac/m-p/577500#M8923</guid>
      <dc:creator>dushyant</dc:creator>
      <dc:date>2023-11-26T12:49:14Z</dc:date>
    </item>
    <item>
      <title>Re: Compile error on Mac</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Compile-error-on-Mac/m-p/578222#M8936</link>
      <description>&lt;P&gt;Good to hear that you found a way to get around the error!&lt;BR /&gt;&lt;BR /&gt;Supplying another line of&lt;/P&gt;
&lt;LI-CODE lang="cpp"&gt;#define realloc(p, s)	GS_realloc(p, s)​&lt;/LI-CODE&gt;
&lt;P&gt;won't help, since it's already defined like this anyway.&lt;/P&gt;
&lt;P&gt;I suggested to try the following (note the extra &lt;STRONG&gt;std::&lt;/STRONG&gt; in front of &lt;STRONG&gt;realloc&lt;/STRONG&gt;&lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;
&lt;LI-CODE lang="cpp"&gt;#define std::realloc(p, s)	GS_realloc(p, s)​&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;BR /&gt;On Mac I'm using CMake sometimes with XCode and sometimes with Visual Studio Code.&lt;BR /&gt;&lt;BR /&gt;About switching the macOS SDK, there are some hints in the readme on the github repo I provided above: &lt;A href="https://github.com/phracker/MacOSX-SDKs" target="_blank"&gt;https://github.com/phracker/MacOSX-SDKs&lt;/A&gt;&lt;BR /&gt;But I haven't tested it.&lt;/P&gt;</description>
      <pubDate>Thu, 30 Nov 2023 07:26:13 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Compile-error-on-Mac/m-p/578222#M8936</guid>
      <dc:creator>BerndSchwarzenbacher</dc:creator>
      <dc:date>2023-11-30T07:26:13Z</dc:date>
    </item>
    <item>
      <title>Re: Compile error on Mac</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Compile-error-on-Mac/m-p/578232#M8939</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;#define std::realloc(p, s) GS_realloc(p, s)​ &amp;lt;--- is not defining a valid macro name, because of the '::'.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Sorry, missed out the notes on the github repo page.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;Thanks again for the suggestions and help!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 30 Nov 2023 07:59:42 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Compile-error-on-Mac/m-p/578232#M8939</guid>
      <dc:creator>dushyant</dc:creator>
      <dc:date>2023-11-30T07:59:42Z</dc:date>
    </item>
    <item>
      <title>Re: Compile error on Mac</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Compile-error-on-Mac/m-p/578239#M8940</link>
      <description>&lt;P&gt;Ah yeah, you're right, that won't work then.&lt;BR /&gt;&lt;BR /&gt;I just thought maybe also the include order might make a difference.&lt;/P&gt;
&lt;P&gt;So maybe including iostream before any Archicad API include could work (also make sure it's before the includes you have in associated header files of .cpp files).&lt;BR /&gt;But I'm not sure if there would be an effect if parts of the code use different memory allocators then.&lt;/P&gt;</description>
      <pubDate>Thu, 30 Nov 2023 08:36:43 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Compile-error-on-Mac/m-p/578239#M8940</guid>
      <dc:creator>BerndSchwarzenbacher</dc:creator>
      <dc:date>2023-11-30T08:36:43Z</dc:date>
    </item>
    <item>
      <title>Re: Compile error on Mac</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Compile-error-on-Mac/m-p/578254#M8942</link>
      <description>&lt;P&gt;Maybe including iostream before AC headers could have a different behaviour.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Anyway, I don't really need iostream here. So it's no problem for now &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 30 Nov 2023 09:04:56 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Compile-error-on-Mac/m-p/578254#M8942</guid>
      <dc:creator>dushyant</dc:creator>
      <dc:date>2023-11-30T09:04:56Z</dc:date>
    </item>
    <item>
      <title>Re: Compile error on Mac</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Compile-error-on-Mac/m-p/596108#M9266</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I may have found a workaround for the issue. I am new to Macs and a beginner at C++ so take it with a grain of salt.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As usual, all works fine on Windows.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What I did was #undefine the malloc functions right before #include-ing an std libraries. This seems to solve the issue of duplicated / overwritten defines, like in the example bellow:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;// Archicad 27 API Includes
#include "ACAPinc.h"
#include "APICommon.hpp"
#include "APIEnvir.h"
#include "DGModule.hpp"
#include "DGBrowser.hpp"
// these define the GS_realloc and so on

// Undefine macros that cause issues (potential fix)
#undef calloc
#undef malloc
#undef free
#undef realloc

// Include standard or third-party headers that need the original memory functions
#include &amp;lt;string&amp;gt;
#include &amp;lt;cstring&amp;gt;
#include &amp;lt;vector&amp;gt;
#include &amp;lt;ctime&amp;gt;
#include &amp;lt;unordered_map&amp;gt;&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I don't know if it's correct, but at least it compiled with no error.&lt;/P&gt;
&lt;P&gt;For now I'm using the 14.2 sdk, that comes with Xcode.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regarding the minimum 10.15 version, I managed to set it up via CMake, using the base template from &lt;A href="https://github.com/GRAPHISOFT/archicad-addon-cmake.git" target="_blank" rel="noopener"&gt;GitHub&lt;/A&gt;, but I don't think it had any effect on the issue above.&lt;/P&gt;
&lt;P&gt;In BuilAddOn.py:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;def GetProjectGenerationParams (workspaceRootFolder, buildPath, addOnName, platformName, devKitFolder, version, languageCode, additionalParams):
    ...
    if platformName == 'WIN':
        ...
    elif platformName == 'MAC':
        projGenParams.extend (['-G', 'Xcode'])
        # Ensure the deployment target is macOS 10.15
        projGenParams.append('-DCMAKE_OSX_DEPLOYMENT_TARGET=10.15')&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you find an actual fix, please let me know!&lt;/P&gt;
&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Tue, 26 Mar 2024 02:11:18 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Compile-error-on-Mac/m-p/596108#M9266</guid>
      <dc:creator>Victor Baboi</dc:creator>
      <dc:date>2024-03-26T02:11:18Z</dc:date>
    </item>
    <item>
      <title>Re: Compile error on Mac</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Compile-error-on-Mac/m-p/596135#M9267</link>
      <description>&lt;P&gt;This issue occurs because there was a change in the latest Xcode SDK that is not compatible with the Development Kit. Although earlier it was possible to always use the latest Xcode, unfortunately it's not the case anymore.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hopefully there will be a solution for this in the future, but in the meantime please make sure that you are using&amp;nbsp; &lt;STRONG&gt;Xcode 14.2&lt;/STRONG&gt; for compilation. The tricky part here is that it's not very straightforward to install an earlier version of Xcode, but it's possible by following the steps below.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Go to&amp;nbsp;&lt;A href="https://developer.apple.com/download/all/?q=xcode" target="_blank" rel="noopener"&gt;https://developer.apple.com/download/all/?q=xcode&lt;/A&gt;.&lt;/LI&gt;
&lt;LI&gt;Download and install these two packages:
&lt;UL&gt;
&lt;LI&gt;&lt;SPAN&gt;Command Line Tools for Xcode 14.2,&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;Xcode 14.2.&lt;/SPAN&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;Make sure that the system uses this newly downloaded Xcode by running the command below (replace the app location with your current installation location).&lt;/SPAN&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;PRE&gt;sudo xcode-select -s /Applications/Xcode_14.2.app&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;After this change everything should compile without any issues.&lt;/P&gt;</description>
      <pubDate>Mon, 25 Mar 2024 07:30:22 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Compile-error-on-Mac/m-p/596135#M9267</guid>
      <dc:creator>Viktor Kovacs</dc:creator>
      <dc:date>2024-03-25T07:30:22Z</dc:date>
    </item>
    <item>
      <title>Re: Compile error on Mac</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Compile-error-on-Mac/m-p/597721#M9283</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I figured out a very dumb solution that worked for me.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;I noticed that the MacOSX14.sdk is just a shortcut that points to MacOSX.sdk&lt;BR /&gt;I simply duplicated and renamed the shortcut to MacOSX14.0.sdk (with the explicit) .0 so the compiler sees the path and the build works.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="vdentello_0-1712238440413.png" style="width: 400px;"&gt;&lt;img src="https://community.graphisoft.com/t5/image/serverpage/image-id/58508i247B8002C7F90B7E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="vdentello_0-1712238440413.png" alt="vdentello_0-1712238440413.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 04 Apr 2024 13:49:30 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Compile-error-on-Mac/m-p/597721#M9283</guid>
      <dc:creator>vdentello</dc:creator>
      <dc:date>2024-04-04T13:49:30Z</dc:date>
    </item>
    <item>
      <title>Re: Compile error on Mac</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Compile-error-on-Mac/m-p/603499#M9357</link>
      <description>&lt;P&gt;Hi Victor! Any news on an update? Xcode 14.2 is not compatible with macOS Sonoma thus this workaround won't work with new Macs.&lt;/P&gt;</description>
      <pubDate>Mon, 13 May 2024 10:40:39 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Compile-error-on-Mac/m-p/603499#M9357</guid>
      <dc:creator>vesalaasanen</dc:creator>
      <dc:date>2024-05-13T10:40:39Z</dc:date>
    </item>
    <item>
      <title>Re: Compile error on Mac</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Compile-error-on-Mac/m-p/603638#M9362</link>
      <description>&lt;P&gt;There is a name clash between the STL and the Archicad SDK, but it can be avoided. The compiler is currently seeing the GS version first, which is shadowing std::realloc - hence the compiler suggestion that this is what you mean.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I recommend ordering your header file includes so all STL headers are read first, followed by any&amp;nbsp;Archicad SDK header includes.&lt;/P&gt;</description>
      <pubDate>Tue, 14 May 2024 11:58:30 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Compile-error-on-Mac/m-p/603638#M9362</guid>
      <dc:creator>Ralph Wessel</dc:creator>
      <dc:date>2024-05-14T11:58:30Z</dc:date>
    </item>
    <item>
      <title>Re: Compile error on Mac</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Compile-error-on-Mac/m-p/604237#M9378</link>
      <description>&lt;P&gt;I had a new update on my (old) mac and&amp;nbsp;reordering seems to have done the trick this time. If I find any more details I will let you know.&lt;/P&gt;&lt;P&gt;By the way, I have Xcode 15.2 on Ventura 13.6.7.&lt;/P&gt;</description>
      <pubDate>Fri, 17 May 2024 12:29:00 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Compile-error-on-Mac/m-p/604237#M9378</guid>
      <dc:creator>Victor Baboi</dc:creator>
      <dc:date>2024-05-17T12:29:00Z</dc:date>
    </item>
    <item>
      <title>Re: Compile error on Mac</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Compile-error-on-Mac/m-p/614870#M9649</link>
      <description>&lt;P&gt;I faced the same issue on MacOS (Intel chip) Ventura 13.5&lt;/P&gt;</description>
      <pubDate>Wed, 10 Jul 2024 10:46:06 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Compile-error-on-Mac/m-p/614870#M9649</guid>
      <dc:creator>Emkave</dc:creator>
      <dc:date>2024-07-10T10:46:06Z</dc:date>
    </item>
  </channel>
</rss>

