Author Topic: mingw32-g++.exe: lSDL_image: No such file or directory  (Read 4613 times)

Offline Spooder

  • Single posting newcomer
  • *
  • Posts: 3
mingw32-g++.exe: lSDL_image: No such file or directory
« on: September 11, 2011, 10:03:21 pm »
So, I've been working with Visual studio for several years, and got tired of VC++, so I decided to jump over and start using standard C++ in code::blocks.
After fixing the thousands of errors in my project as a result of the switch, I was exited to run my program, it built fine, but when I try to use "build and run" I get this:
Code
-------------- Build: Release in Lexi ---------------

Linking executable: bin\Release\Lexi.exe
mingw32-g++.exe: lSDL_image: No such file or directory
mingw32-g++.exe: -E or -x required when input is from standard input
Process terminated with status 1 (0 minutes, 0 seconds)
0 errors, 0 warnings
 
I've told code::blocks where to find all the libs, and I have the dlls in the Release folder, so I am totally stumped.  I tried both release and debug builds, no change.
I am more than willing to answer any additional questions about the setup of the project.
Help would be greatly appreciated!

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: mingw32-g++.exe: lSDL_image: No such file or directory
« Reply #1 on: September 11, 2011, 10:08:00 pm »
Read this: http://wiki.codeblocks.org/index.php?title=FAQ#Q:_How_do_I_troubleshoot_an_compiler_problem.3F

You have problems with you library settings, maybe missing the - in the lSDL_image
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Offline Spooder

  • Single posting newcomer
  • *
  • Posts: 3
Re: mingw32-g++.exe: lSDL_image: No such file or directory
« Reply #2 on: September 11, 2011, 10:14:59 pm »
I checked that a thousand times, but i just checked again and found that I had a space after the -
Now I have new errors to contend with, but I'm confident I can handle them. Thanks a lot!

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: mingw32-g++.exe: lSDL_image: No such file or directory
« Reply #3 on: September 12, 2011, 12:15:57 am »
BTW, you don't have to specify the -l, there is a special field 'Link libraries'
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Offline Spooder

  • Single posting newcomer
  • *
  • Posts: 3
Re: mingw32-g++.exe: lSDL_image: No such file or directory
« Reply #4 on: September 12, 2011, 01:54:49 am »
Thanks a ton man, really means a lot to me.