各位,下午好!
我从oracle网站上下了BerkeleyDB 4.5.20,用visual C++.net 编译通过,得到libdb45.dll和libdb45.lib文件,用C++Builder6.0编译通不过,用c++.net编译的lib用不了,我又用implib导出包,还是不行。源代码:
//---------------------------------------------------------------------------
#pragma hdrstop
#include "db_cxx.h"
//---------------------------------------------------------------------------
#pragma argsused
int main(int argc, char* argv[])
{
Db db(NULL, 0);
db.close(0);
return 0;
}
//---------------------------------------------------------------------------
编译能通过,连接出问题。
[Linker Error] Unresolved external 'Db::~Db()' referenced from F:\OWNERDB\TEST\TESTDB.OBJ
[Linker Error] Unresolved external 'Db::Db(DbEnv *, unsigned int)' referenced from F:\OWNERDB\TEST\TESTDB.OBJ
[Linker Error] Unresolved external 'Db::close(unsigned int)' referenced from F:\OWNERDB\TEST\TESTDB.OBJ
现把libdb.dll及相关文件放在附件中,请各位帮忙看看。
谢谢!