Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Don't use c++2a standard on Darwin #319

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

OPNA2608
Copy link

@OPNA2608 OPNA2608 commented Feb 28, 2024

Because this special casing causes the build to fail in my build environment:

Export3D.cpp
+ g++ -c -msse2 -fno-strict-aliasing -fno-stack-protector -Wunused-value -Os -std=c++2a -Wno-invalid-offsetof -I . -I ./Core -I ./Unreal -I ./libs/include -I ./libs -I ./libs/nvtt -I /usr/include/libpng -I ./libs/PowerVR -I ./libs/detex -I ./libs/rijndael -I UmodelTool -I UI -o ./obj/umodel-osx/Export3D.o Exporters/Export3D.cpp
In file included from Exporters/Export3D.cpp:1:
./Core/Core.h:387:19: error: redefinition of 'void* operator new(size_t, void*)'
  387 | FORCEINLINE void* operator new(size_t /*size*/, void* ptr)
      |                   ^~~~~~~~
In file included from /nix/store/05mkqaciqsglmxl43vmz96np2izykfli-gcc-12.3.0/include/c++/12.3.0/bits/stl_iterator.h:82,
                 from /nix/store/05mkqaciqsglmxl43vmz96np2izykfli-gcc-12.3.0/include/c++/12.3.0/bits/stl_algobase.h:67,
                 from /nix/store/05mkqaciqsglmxl43vmz96np2izykfli-gcc-12.3.0/include/c++/12.3.0/bits/specfun.h:45,
                 from /nix/store/05mkqaciqsglmxl43vmz96np2izykfli-gcc-12.3.0/include/c++/12.3.0/cmath:1935,
                 from /nix/store/05mkqaciqsglmxl43vmz96np2izykfli-gcc-12.3.0/include/c++/12.3.0/math.h:36,
                 from ./Core/Core.h:14:
/nix/store/05mkqaciqsglmxl43vmz96np2izykfli-gcc-12.3.0/include/c++/12.3.0/new:174:33: note: 'void* operator new(std::size_t, void*)' previously defined here
  174 | _GLIBCXX_NODISCARD inline void* operator new(std::size_t, void* __p) _GLIBCXX_USE_NOEXCEPT
      |                                 ^~~~~~~~

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant