Author Topic: I have an error but I am not sure how to solve it  (Read 3384 times)

PowerPython

  • Guest
I have an error but I am not sure how to solve it
« 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

Offline mandrav

  • Project Leader
  • Administrator
  • Lives here!
  • *****
  • Posts: 4315
    • Code::Blocks IDE
Re: I have an error but I am not sure how to solve it
« Reply #1 on: March 30, 2007, 01:32:00 pm »
First, in linker libraries (where you added -lmingw32) remove the -l.
Then read this wiki article.
Be patient!
This bug will be fixed soon...

PowerPython

  • Guest
Re: I have an error but I am not sure how to solve it
« Reply #2 on: March 30, 2007, 01:56:02 pm »
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
« Last Edit: March 30, 2007, 02:01:49 pm by PowerPython »