SDL.h to SDL2/SDL.h (compiles on SDL1 systems).#1384
SDL.h to SDL2/SDL.h (compiles on SDL1 systems).#1384Sondro wants to merge 5 commits intoredeclipse:masterfrom
Conversation
|
Does it actually fail though? RE bundles it's own version of the SDL headers. |
|
Yeah, it says: fatal error:SDL.h: No such file or directory #include <SDL.h> |
|
Ah alright, I'll have to look into this further when I'm at my computer as there might be other things that need tweaking after this change. |
|
I'm confused, how does it attempt to compile with SDL1 at all? All the SDL1 headers are in |
|
I solved the problem without stackoverflow, but you can see a similar problem & solutions posted there: https://stackoverflow.com/questions/10488775/sdl-h-no-such-file-or-directory-found-when-compiling |
|
As several of the comments there explain, one way to include headers is to tell the compiler WHERE to find the headers via one of 3 methods:
We are using the 2nd method, but we're also looking up |
This is the accepted answer. |
Fixes #
Compile will fail on systems that have SDL1 installed (which is still updated for older apps like Cube1 -- this version works on both & should be SDLx future proof).
Changes proposed in this request:
SDL.h to SDL2/SDL.h