views:

32

answers:

1

BDB is compiled on the same PC, under same VS.

#include <db_cxx.h> int main(){ Db b(NULL, 0); return 0; }

1>main.obj : error LNK2001: unresolved external symbol ""public: virtual __thiscall Db::~Db(void)" (??1Db@@UAE@XZ)"

1>main.obj : error LNK2001: unresolved external symbol ""public: __thiscall Db::Db(class DbEnv *,unsigned int)" (??0Db@@QAE@PAVDbEnv@@I@Z)"

what could be wrong?

A: 

Did you remember to link in the binary created by compiling BDB?

Adam Maras
auh... That's it)... Thanks...
MInner
Now it tells me after start up "App. can't be started because libdb.lib wasn't found" (or something like that... I translate from Russian), but I've already added right link in linker->"Aditional dependences" [and -> "Resourse, linked with this"] ...
MInner
I've just made a copy of libdb.dll to programm root and it works)
MInner
Glad to hear it works. Please mark the answer as being accepted. :)
Adam Maras