Code::Blocks Forums

User forums => Help => Topic started by: Mad Scientist on January 25, 2007, 01:43:21 am

Title: Problem with MinGW32
Post by: Mad Scientist on January 25, 2007, 01:43:21 am
I have tried compiling my project and got the error
Code
mingw32-g++.exe -o ..\..\bin\debug\client\client.exe ..\..\obj\debug\client\client\client.o -l -lwin -mwindows
C:\MinGW\bin\..\lib\gcc\mingw32\3.4.5\..\..\..\..\mingw32\bin\ld.exe: cannot find -l-lwin
I know "-l -lwin" is from the variable $libs I just can find the string "lwin" any where in the compile settings. Although I'm not sure where $libs refrencees and wasn't able to find out on the wiki. I do have a static library "libwin" though, could it have be man handled by the macro processor? Thanks in advance for any help.
Title: Re: Problem with MinGW32
Post by: raph on January 25, 2007, 10:31:47 am
I would say you have added "-lwin" to "Build options"->"Linker"->"Link libraries" instead of "libwin" or just "win".
Title: Re: Problem with MinGW32
Post by: Mad Scientist on January 25, 2007, 07:51:41 pm
I think I got it fixed I had put in the project names instead fo the directory where the .a file was.