Headers in /usr/include don't match what Qt Creator is showing
-
The SDL2 headers on my machine in
/usr/include/SDL2differ from the ones that Qt Creator is displaying (and trying to compile against).
Is there a cache of some sort that Qt uses? Is there an include_directories I need to add to override?
I'm new to linux programming in general, Qt Creator specifically. I've done my best though to scour the web for a solution.
-
The SDL2 headers on my machine in
/usr/include/SDL2differ from the ones that Qt Creator is displaying (and trying to compile against).
Is there a cache of some sort that Qt uses? Is there an include_directories I need to add to override?
I'm new to linux programming in general, Qt Creator specifically. I've done my best though to scour the web for a solution.
@JCalhoun said in Headers in /usr/include don't match what Qt Creator is showing:
differ from the ones that Qt Creator is displaying (and trying to compile against).
QtCreator is an IDE, not a compiler.
You most likely add an include path with your other SDL includes. -
I understand. I used QtCreator to create the CMake file - when I click Build it invokes the compiler....
Perhaps then this is more of a question regarding CMake files then (I realize QtCreator acts as a kind of UI for editing the CMake text file).
While I manually added the correct include directory to the CMake file, there still seems to be some kind of opaque place where CMake is getting /usr/includes/ that does not correspond with either the versions of the headers I see on disk or the explicit path I specified in include_directories().