Code::Blocks Forums
User forums => Help => Topic started by: PowerPython on March 30, 2007, 10:05:59 am
-
OK, so I am trying to get SDL working with Code::Blocks, so I followed all the instructions on the Wiki, and went to run my program, but I got the following error:
ld.exe cannot find -l-lmingw32
What does this mean? Where should I look to solve it?
Thank you for help,
Sophie
-
First, in linker libraries (where you added -lmingw32) remove the -l.
Then read this wiki article (http://wiki.codeblocks.org/index.php?title=Using_SDL_with_Code::Blocks).
-
OK, I did that, but then this comes up:
--------------------------------------------------------------------------------
Switching to target: default
Linking executable: sdlapp.exe
mingw32-g++.exe: D:\Documents and Settings\Sophie\Desktop\SDL-1.2.11\lib\libSDL.dll.a: No such file or directory
Process terminated with status 1 (0 minutes, 0 seconds)
0 errors, 0 warnings
This is confusing, or maybe I am just dumb :lol:!
OK, I am dumb! I just got what that error message means, so I went through and found that file under MinGW32\lib. Then I recompiled it and got a new message, this one I can't decipher!:
\home\hercules..... 217 undefined refernece to 'SDL_main'
Did I do something wrong by changing the last error?
Sophie