We value your input! Please participate in Archicad 28 Home Screen and Tooltips/Quick Tutorials survey
2023-11-17 08:09 AM - last edited on 2024-09-17 01:22 PM by Doreena Deng
Hi,
I'm getting a compile error on Mac:
/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);
The same code compiles fine with MSVC on windows.
Anyone faced this error?
Thanks.
2024-07-10 05:38 PM
Try the shortcut trick to "fool" your Xcode into the right path, it might work, the internal files if not the same are very similar and will still work.
I'd believe it has something to do with how the template made with cmake forces the compiler to restrict the compilation at this point.
2024-07-10 06:36 PM
Something that worked for me is to create a .pch (precompiled header file) with this content:
#include "GSRoot.hpp"
namespace std {
void* GS_realloc (void *userData, size_t newSize);
}