-
Notifications
You must be signed in to change notification settings - Fork 61
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
Zapcc not able to compile due to not finding stddef.h while Clang compiles fine. #39
Comments
zapcc had not been updated for quite a while, maybe the include paths are not correct for gcc 9.2. |
@yrnkrn Will that change in the future? Is it easy to update those include paths? |
Yes, cherry picking just the relevant source lines for these include paths should be easy. |
I'm having issues here too, zapcc doesnt find the file I need which is
any tips of how to make this work without recompile zapcc ? something like symlinks or maybe make additional folders? and here the different paths for clang & zapcc
|
Maybe add the missing includes using |
I am getting an error that zapcc can't find stddef.h? I have no clue as to what could be happening. Clang compiles perfectly.
1 error generated. generating dependencies for src/main.cpp In file included from src/main.cpp:1: In file included from src/sfmlpch.hpp:4: In file included from /usr/include/SFML/System.hpp:34: In file included from /usr/include/SFML/System/Err.hpp:32: In file included from /usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../include/c++/9.2.0/ostream:38: In file included from /usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../include/c++/9.2.0/ios:38: In file included from /usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../include/c++/9.2.0/iosfwd:40: In file included from /usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../include/c++/9.2.0/bits/postypes.h:40: In file included from /usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../include/c++/9.2.0/cwchar:44: /usr/include/wchar.h:35:10: fatal error: 'stddef.h' file not found #include <stddef.h> ^~~~~~~~~~
1 error generated. generating dependencies for src/game.cpp In file included from src/game.cpp:1: In file included from /usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../include/c++/9.2.0/iostream:39: In file included from /usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../include/c++/9.2.0/ostream:38: In file included from /usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../include/c++/9.2.0/ios:38: In file included from /usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../include/c++/9.2.0/iosfwd:40: In file included from /usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../include/c++/9.2.0/bits/postypes.h:40: In file included from /usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../include/c++/9.2.0/cwchar:44: /usr/include/wchar.h:35:10: fatal error: 'stddef.h' file not found #include <stddef.h> ^~~~~~~~~~
1 error generated. generating dependencies for src/resources.cpp In file included from src/resources.cpp:1: In file included from src/stdpch.hpp:4: In file included from /usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../include/c++/9.2.0/iostream:39: In file included from /usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../include/c++/9.2.0/ostream:38: In file included from /usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../include/c++/9.2.0/ios:38: In file included from /usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../include/c++/9.2.0/iosfwd:40: In file included from /usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../include/c++/9.2.0/bits/postypes.h:40: In file included from /usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../include/c++/9.2.0/cwchar:44: /usr/include/wchar.h:35:10: fatal error: 'stddef.h' file not found #include <stddef.h>
The text was updated successfully, but these errors were encountered: