User forums > Help

Problem with MinGW32

(1/1)

Mad Scientist:
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

--- End code ---
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:
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.

Navigation

[0] Message Index

Go to full version