Code::Blocks Forums

User forums => Help => Topic started by: Spooder on September 11, 2011, 10:03:21 pm

Title: mingw32-g++.exe: lSDL_image: No such file or directory
Post by: Spooder 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!
Title: Re: mingw32-g++.exe: lSDL_image: No such file or directory
Post by: oBFusCATed 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
Title: Re: mingw32-g++.exe: lSDL_image: No such file or directory
Post by: Spooder 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!
Title: Re: mingw32-g++.exe: lSDL_image: No such file or directory
Post by: oBFusCATed on September 12, 2011, 12:15:57 am
BTW, you don't have to specify the -l, there is a special field 'Link libraries'
Title: Re: mingw32-g++.exe: lSDL_image: No such file or directory
Post by: Spooder on September 12, 2011, 01:54:49 am
Thanks a ton man, really means a lot to me.