User forums > Help

trying to include a static lib in my project

<< < (2/4) > >>

MortenMacFly:

--- Quote from: maxv on March 27, 2008, 10:14:30 pm ---
--- 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 ---

--- End quote ---
Do a re-build and report back the whole log, please. BTW: So far I see already that you are linking against sqlite twice. That's for sure a (first) error.

maxv:

--- Code: ---Compiling: main.cpp
Compiling: Datenbank.cpp
Linking console executable: bin\Debug\DatenbankAnbindung.exe
mingw32-g++.exe: no input files
Process terminated with status 1 (0 minutes, 5 seconds)
0 errors, 0 warnings

--- End code ---

MortenMacFly:

--- Quote from: maxv on March 28, 2008, 10:49:24 am ---
--- Code: ---Compiling: main.cpp
Compiling: Datenbank.cpp
Linking console executable: bin\Debug\DatenbankAnbindung.exe
mingw32-g++.exe: no input files
Process terminated with status 1 (0 minutes, 5 seconds)
0 errors, 0 warnings

--- End code ---

--- End quote ---
Oh come one... you did not use the full compiler log again. Enable full compiler log, then rebuild and post the whole log. That shouldn't be too difficult.

maxv:
Sorry, my last post was ....

I'm currently not at home so, I'm working with my
notebook and other compiler settings :S

Here are the new and right ones:


--- Code: ---mingw32-g++.exe -Wall -fexceptions  -g     -c "C:\max\programme\der Rest\DatenbankAnbindung\main.cpp" -o obj\Debug\main.o
mingw32-g++.exe -Wall -fexceptions  -g     -c "C:\max\programme\der Rest\DatenbankAnbindung\Datenbank.cpp" -o obj\Debug\Datenbank.o
mingw32-g++.exe -L..\DatenbankAnbindung  -o bin\Debug\DatenbankAnbindung.exe obj\Debug\main.o obj\Debug\Datenbank.o    -lsqlite.lib -lsqlite.lib
C:\Programme\CodeBlocks\MinGW\bin\ld.exe: cannot find -lsqlite.lib
collect2: ld returned 1 exit status
Process terminated with status 1 (0 minutes, 11 seconds)
1 errors, 0 warnings

--- End code ---

~Max

dje:
Hi !


--- Quote from: maxv on March 28, 2008, 11:49:11 am ---   -lsqlite.lib -lsqlite.lib

--- End quote ---
I think once is enough  :)


--- Quote from: maxv on March 28, 2008, 11:49:11 am ---C:\Programme\CodeBlocks\MinGW\bin\ld.exe: cannot find -lsqlite.lib

--- End quote ---
Add the directory where sqlite.lib is located in the linker search directories of your project build options.

Dje

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version