User forums > Using Code::Blocks
Add a specific Library
gl0be:
Hello !
In my program, I have to use a specifique library named Battle.lib. So I add it to the Build Option -> Linker -> Link libraires and I use the correct file "battle.h" in my program but when it's linking I've got this error :
--- Code: ---C:\MinGW\bin\..\lib\gcc\mingw32\3.4.2\..\..\..\..\mingw32\bin\ld.exe: cannot find -lBattle.lib
--- End code ---
Do you know how I can resolve it ?
Thank you
gl0be
killerbot:
did you specify the full path to the lib, or is the path added to the lib search dirs ??
gl0be:
i try to use the both methods but's the probleme is the same... :?
Vampyre_Dark:
name it libBattle.a
And don't you have to use that program to go from lib -> a?
gl0be:
I dont't really understand your question, I'speak a little bit english only...
I tried to rename the battle.lib to battle.a but the error is always the same
cannot find -lBattle.a
any other ideas ??
thank you
Navigation
[0] Message Index
[#] Next page
Go to full version