News:

The new Release 25.03 is out! You can download binaries for Windows and many major Linux distros here .

Main Menu

Problem with MinGW32

Started by Mad Scientist, January 25, 2007, 01:43:21 AM

Previous topic - Next topic

Mad Scientist

I have tried compiling my project and got the error 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.

raph

#1
I would say you have added "-lwin" to "Build options"->"Linker"->"Link libraries" instead of "libwin" or just "win".

Mad Scientist

I think I got it fixed I had put in the project names instead fo the directory where the .a file was.