|
From: Depo C. <dep...@gm...> - 2011-04-16 04:12:01
|
Thanks, but I took out suffix and have it in lib path: (also it's Eclipse CDT that is setting it, not me) Regardless, I tried it manually: gcc -L*C:\MinGW\lib* -p -pg -oTestC.exe TestC.o -llib*glfw *-llib*glfwdll * c:/mingw/bin/../lib/gcc/mingw32/4.5.2/../../../../mingw32/bin/ld.exe: cannot find -llibglfw c:/mingw/bin/../lib/gcc/mingw32/4.5.2/../../../../mingw32/bin/ld.exe: cannot find -llibglfwdll On 4/15/2011 8:22 PM, Sisyphus wrote: > > ----- Original Message ----- From: "Depo Catcher" > >> I don't understand why this isn't working. > > Your usage of the -l switch is incorrect. > To link to libglfw.a use -lglfw, and to link to libglfwdll.a use > -lglfwdll. > If you need to specify the location of the libraries, do so on the > command line with the -L switch, > eg -LC:/Mingw/lib > > And the "-L..." stuff needs to precede the "-l..." stuff on the > command line. > > Cheers, > Rob |