From: Keith M. <kei...@us...> - 2011-04-16 07:47:17
|
[please don't top post on technical lists] On 16/04/11 05:09, Depo Catcher wrote: > Library Path is C:\MinWG\lib > I took out path and suffix. > Still errors. > > gcc -LC:\MinGW\lib -p -pg -oTestC.exe TestC.o -llibglfw ... Still errors, because your usage is STILL WRONG! Both of the previous respondents have told you to drop BOTH PREFIX, and suffix, yet you have dropped only the suffix. Do you REALLY have a library called c:/MinGW/lib/liblibglfw.a (for that is what -Lc:/MinGW/lib -llibglfw implies)? I doubt it; more likely, you have c:/MinGW/lib/libglfw.a and the correct -l usage to specify that, (as Rob already noted), is -lglfw NOT, (as you have) -llibglfw Also noteworthy: you don't need -Lc:/MinGW/lib, (if you have installed MinGW's GCC in c:/MinGW), because that is the default library search path anyway. However, although redundant, specifying it is mostly harmless. -- Regards, Keith. |