Author Topic: Problem with MinGW32  (Read 3949 times)

Offline Mad Scientist

  • Multiple posting newcomer
  • *
  • Posts: 25
Problem with MinGW32
« 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.

Offline raph

  • Almost regular
  • **
  • Posts: 242
Re: Problem with MinGW32
« Reply #1 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".
« Last Edit: January 25, 2007, 10:37:20 am by raph »

Offline Mad Scientist

  • Multiple posting newcomer
  • *
  • Posts: 25
Re: Problem with MinGW32
« Reply #2 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.