Hey,
I tried to compile the AccessExample in the examples_cxx folder of the
distribution.
I´ve compiled the all 4 build_all options of the Berkeley DB. And try to
compile the example but it will not compile. I am a newbie and have problems
understanding the errors.
I hope some of you could help me.
I use MSVC6.
I get following errors:
--------------------Configuration: AccessExample - Win32
Debug--------------------
Compiling...
AccessExample.cpp
Linking...
AccessExample.obj : error LNK2001: unresolved external symbol "public:
virtual __thiscall Db::~Db(void)" (??1Db@@UAE@XZ)
AccessExample.obj : error LNK2001: unresolved external symbol "public:
virtual int __thiscall Db::close(unsigned int)" (?close@Db@@UAEHI@Z)
AccessExample.obj : error LNK2001: unresolved external symbol "public: int
__thiscall Dbc::close(void)" (?close@Dbc@@QAEHXZ)
AccessExample.obj : error LNK2001: unresolved external symbol "public: int
__thiscall Dbc::get(class Dbt *,class Dbt *,unsigned int)"
(?get@Dbc@@QAEHPAVDbt@@0I@Z)
AccessExample.obj : error LNK2001: unresolved external symbol "public:
__thiscall Dbt:

bt(void)" (??0Dbt@@QAE@XZ)
AccessExample.obj : error LNK2001: unresolved external symbol "public:
virtual int __thiscall Db::cursor(class DbTxn *,class Dbc * *,unsigned int)"
(?cursor@Db@@UAEHPAVDbTxn@@PAPAVDbc@@I@Z)
AccessExample.obj : error LNK2001: unresolved external symbol "public:
__thiscall Dbt::~Dbt(void)" (??1Dbt@@QAE@XZ)
AccessExample.obj : error LNK2001: unresolved external symbol "public:
virtual int __thiscall Db:

ut(class DbTxn *,class Dbt *,class Dbt
*,unsigned int)" (?put@Db@@UAEHPAVDbTxn@@PAVDbt@@1I@Z)
AccessExample.obj : error LNK2001: unresolved external symbol "public:
__thiscall Dbt:

bt(void *,unsigned int)" (??0Dbt@@QAE@PAXI@Z)
AccessExample.obj : error LNK2001: unresolved external symbol "public:
virtual int __thiscall Db:

pen(class DbTxn *,char const *,char const *,enum
DBTYPE,unsigned int,int)" (?open@Db@@UAEHPAVDbTxn@@PBD1W4DBTYPE@@IH@Z)
AccessExample.obj : error LNK2001: unresolved external symbol "public:
virtual int __thiscall Db::set_cachesize(unsigned int,unsigned int,int)"
(?set_cachesize@Db@@UAEHIIH@Z)
AccessExample.obj : error LNK2001: unresolved external symbol "public:
virtual int __thiscall Db::set_pagesize(unsigned int)"
(?set_pagesize@Db@@UAEHI@Z)
AccessExample.obj : error LNK2001: unresolved external symbol "public:
virtual void __thiscall Db::set_errpfx(char const *)"
(?set_errpfx@Db@@UAEXPBD@Z)
AccessExample.obj : error LNK2001: unresolved external symbol "public:
virtual void __thiscall Db::set_error_stream(class
std::basic_ostream<char,struct std::char_traits<char> > *)"
(?set_error_stream@Db@@UAEXPAV?$basic_ostream@DU?$ char_traits@D@std
@@@std@@@Z)
AccessExample.obj : error LNK2001: unresolved external symbol "public:
__thiscall Db:

b(class DbEnv *,unsigned int)" (??0Db@@QAE@PAVDbEnv@@I@Z)
Debug/AccessExample.exe : fatal error LNK1120: 15 unresolved externals
Error executing link.exe.
AccessExample.exe - 16 error(s), 0 warning(s)