![]() ![]() I want some future person who wants to compile my code with the SDL2 headers downloaded to ~/projects/headers/SDL2 to be able to compile after specifying only ~/projects/headers to their include path, for example, so they don't have to deal with SDLs internal issues. usr/include/x86_64-linux-gnu/SDL2/SDL_platform.h:179:10: fatal error: 'begin_code.h' file not foundĪdding -iquote /usr/include/SDL2 manually works in my case, but what about in build environments where the SDL2 headers were downloaded to some local directory? The point of cmake is to work with local configurations that vary, so adding a hard-coded single path based on platform would be dumb. In file included from /usr/include/x86_64-linux-gnu/SDL2/_real_SDL_config.h:33: ![]() In file included from /usr/include/SDL2/SDL_config.h:4: In file included from /usr/include/SDL2/SDL_stdinc.h:31: In file included from /usr/include/SDL2/SDL_main.h:25: In file included from /usr/include/SDL2/SDL.h:32: I do #include which the compiler does find, in /usr/include/SDL2/SDL.h on my system, but it then fails to find "begin_code.h" which is included several layers deeper in SDLs internal header code. ![]() Including the intended entry point header ends up failing because it links to other internal headers via quoted include without the directory name. I am working with a library that nominally stores its internal headers in a directory that is not itself on the include path, although its parent is. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |