User forums > Help
trying to include a static lib in my project
maxv:
Hi all,
I'm new to this IDE and I've got a little problem
including a static library in my project.
Exactly: I'm trying to include a static sqlite lib.
I putted the lib in the Linker Options and included the
header File.
I may compile the whole Project without an error,
but when the Linker trys to link the files:
--- Code: ---C:\Programme\CodeBlocks\MinGW\bin\ld.exe: cannot find -lsqlite.lib
collect2: ld returned 1 exit status
Process terminated with status 1 (0 minutes, 0 seconds)
1 errors, 0 warnings
--- End code ---
The file sqlite.lib is in the Project Directory.
So, what can I do about this?
Thanks in advance,
Max
PS: sry for my bad english :S
MortenMacFly:
--- Quote from: maxv on March 27, 2008, 11:57:14 am ---The file sqlite.lib is in the Project Directory.
So, what can I do about this?
--- End quote ---
Add the project path to the linker directories within the build options.
maxv:
So, I added the Directory under Build Options -> Search Directories -> Linker,
hope that was what you meant.
There's a different error now:
--- Code: ---mingw32-g++.exe: no input files
Process terminated with status 1 (0 minutes, 0 seconds)
0 errors, 0 warnings
--- End code ---
MortenMacFly:
--- Quote from: maxv on March 27, 2008, 05:56:32 pm ---There's a different error now:
--- End quote ---
Enable full logging (see my sig) and then report back the whole build log.
maxv:
--- Code: ---mingw32-g++.exe -L"C:\Dokumente und Einstellungen\Max\Desktop\DatenbankAnbindung\" -o bin\Debug\DatenbankAnbindung.exe obj\Debug\main.o obj\Debug\Datenbank.o -lsqlite.lib -lsqlite.lib
mingw32-g++.exe: no input files
--- End code ---
Navigation
[0] Message Index
[#] Next page
Go to full version