[Dev-C++] more: problem using dll/lib from visual studio
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: Axel B. <new...@th...> - 2004-04-20 20:18:15
|
well, I have advanced a bit now: I have two versions of libdb: a static and a dll one. the dll one comes with a library. Now if I try to compile while linking against the static thing (libdb42s.lib, included by -L. -ldb42s) I get the following error message: "cannot find -ldb42s" wow. OK. linking against the .lib file from the dll delivers this lyrical error: [Linker error] undefined reference to `Db::Db(DbEnv*, unsigned)' both files lie in the directory of the application, the paths are the include paths are the same for both ones, and even the command line compiler fails to find the static library. I checked with some visual c++ dev tools, and all necessary functions should be in there. I also checked that the definition is all right - the constructor DOES look like this. I am getting so frustrated you won't believe. I really *want* to use dev-c++, because it's free, and small, and I know what I'm doint, but I *HAVE* to link with that library. I linked against another library (winpcap) WITHOUT any problems!!! I DO NOT UNDERSTAND THIS!! please if anyone has *ANY* idea - HEEEEELLLPPP!!!!! thanks in advance & greetings, axel. |