I have downloaded SDL, and it works correctly. Now i have downloaded the SDL image libary, exactly as the tutorial describes. I have downloaded the files, copied the include files to the include map in dev-cpp. The .dll file is in both the bin map of dev-cpp as in the map where i have my project. I have one sourcefile (main.cpp) in my Win32 GUI project. As paramater i have:
-lmingw32 -lSDLmain -lSDL-ISDL_image
I have included SDL_image.h in my sourcefile.
This is the error i get:
cannot find -lSDL-ISDL_image
I have spend about an hour checking or everyting is at the right location, or i made any typos, etc., so that wont be the problem. Does anyone know what i'm doing wrong?
One point for you, aldo it didnt solve the problem. It should be a lower case l, and it was a capital letter I. I still got the same error. Strange, I tought that in the end I had copied/pasted it all directly from the tutorial.
Parameter:
-lmingw32 -lSDLmain -lSDL-lSDL_image
Error:
cannot find -lSDL-lSDL_image
ld returned 1 exit status
C:\prog\SDL\Makefile.win [Build Error] [events.exe] Error 1
VC... Visual C++ right? I have never really understood what VC exactly is, a whole indivual language, a version of C++ or that it has someting to do with Visual Studio?
Do you think I need the other one? This is what was told me in the tutorial (I had to select my OS and compiler, so i though it would be allright), but I shall try the other one.
It seems the win32 file contains an incomplete version of what is inside the VC6 file, without any .h/.lib/.a files (only .dll). As expected, it doesnt work either (you probably ment the reverse: that I had downloaded the win32 file in the first place, while i should download the VC file).
I'm to tired for this now, I will come back to it tomorrow. Thanks for the help so far.
When you say -lfoo (dash, lowercase 'L', and a library name) you are telling the compiler to link with the named library ('foo').
There is only one windows source, and it is specifically designed for use with Microsoft's compiler (it was compiled with MSVC++), but it can be used by MinGW (Dev-Cpp's default compiler).
The problem was in the space. Adding .lib doesnt work (it gives an error, also when i have a space). Thanks for the explanations. Now it does not only work, I also understand wy (about parameters etc.), wich wouldnt be the case if it worked immidiatly, and wich I prefere :). Thanks for your help all.