g++-14 quick_exit and -D_POSIX_C_SOURCE #5714
Unanswered
marekkokot
asked this question in
Everyday usage
Replies: 1 comment
-
Maybe this should be an issue instead of a discussion. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Output of
brew config
Output of
brew doctor
Description of issue
Hello,
We use a igraph that is build using CMake for which we force using homebrew g++ on mac os.
It does not compile with g++-14 from homebrew. I narrowed it down, and the problem is there if
-D_POSIX_C_SOURCE=200809L
is set and ifcstdlib
is included.For example, in this code (
test.cpp
):If I compile
g++-14 test.cpp
it compiles, but if I use
g++-14 -D_POSIX_C_SOURCE=200809L test.cpp
I get:
This compiles just fine with g++-13, g++-12, and g++-11, and on linux machine with g++-14 this also compiles as far as I remember.
I'm not sure if this is the right place to post this. If not, please let me know where to post this issue (I am not sure if others can reproduce it).
Beta Was this translation helpful? Give feedback.
All reactions