I also did a rebuild, same error but,
I'll do a right now... mom (5mins
)
Ok, needed a bit longer,
made the whole project new.
So, I rebuilded the lib as a static lib which
resulted in a *.a and a *.dll file,
when I builded a static lib with Borland I only got
a *.lib file.
Anyways, I added the *.a file under Building Options -> Linker Settings
and added the relative Project Directorie under Search Directories -> Linker.
Finally I got another error:
mingw32-g++.exe -L..\DatenbankAnbindung -o bin\Debug\DatenbankAnbindung.exe obj\Debug\main.o ..\libsqlitestat.a
obj\Debug\main.o: In function `main':
C:/max/programme/der Rest/DatenbankAnbindung/DatenbankAnbindung/main.cpp:9: undefined reference to `Datenbank::open(std::string)'
collect2: ld returned 1 exit status
Process terminated with status 1 (0 minutes, 13 seconds)
1 errors, 0 warnings
In my opinion the last project file was corrupted and
the linker tried to link the sqlite.lib file two times which lead to the error.
For this new project I don't even have a idea about the problem.
Maybe this is an easy problem and I just don't know enough about
libraries etc ... :/
~max