Quote:Original post by twoaterisn
off course..
sorry about that, i thought i had the latest version.
everything is installed now, but i still can't make it work. when compiling some examples i get linker errors: undefined reference to 'SDL_RWfromfile' etc...
i added the devcpp\include\SDL directory to the C++ includes directories mentioned in the compiler options but that didn't help. do i need to do anything else or is reïnstalling the whole bunch the way to go?
greetings, T
That is good and all, but you need to do this:
1) Find the libSDLmain.a and libSDL.a files and put them in your devcpp/lib directory. Then in linker options (they are to the right of the compiler options, iirc), put:
-lmingw32-lSDLmain-lSDL
2) Find and put the SDL.dll file into your .exe directory or system32 directory.... Atleast for windows this is the way.
Linking errors occur when you haven't linked the libraries, as in step 1. Then if you link but can't run the exe itself and it tells you it's missing SDL.dll it's because you didn't do step 2.
I think you have the headers right... I mean, it found the function names.
EDIT: Note: The 'l's are lower-case 'L's, not upper-case 'i's.