dbTalk Databases Forums  

will not compile

comp.databases.berkeley-db comp.databases.berkeley-db


Discuss will not compile in the comp.databases.berkeley-db forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Bogdan Sarbu
 
Posts: n/a

Default will not compile - 09-25-2003 , 04:21 PM






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)



Reply With Quote
  #2  
Old   
Hans-Bernhard Broeker
 
Posts: n/a

Default Re: will not compile - 09-26-2003 , 04:45 AM






Bogdan Sarbu <bcs (AT) sarnet (DOT) dk> wrote:

Quote:
I´ve compiled the all 4 build_all options of the Berkeley DB. And try to
compile the example but it will not compile.
A nitpick: it's actually compiling fine. It's just not *linking* correctly.

Quote:
I get following errors:
You don't show or tell what exactly you did to build that program, so
I'll have to guess. From the liner error messages, by far the most
probable answer is you forgot to tell the linker to link in the
Berkeley DB libraries you just built.

--
Hans-Bernhard Broeker (broeker (AT) physik (DOT) rwth-aachen.de)
Even if all the snow were burnt, ashes would remain.


Reply With Quote
  #3  
Old   
Bogdan Sarbu
 
Posts: n/a

Default Re: will not compile - 09-26-2003 , 03:58 PM



Thanks! You were right. I forgot to tell the linker.

/Bogdan

"Hans-Bernhard Broeker" <broeker (AT) physik (DOT) rwth-aachen.de> wrote

Quote:
Bogdan Sarbu <bcs (AT) sarnet (DOT) dk> wrote:

I´ve compiled the all 4 build_all options of the Berkeley DB. And try to
compile the example but it will not compile.

A nitpick: it's actually compiling fine. It's just not *linking*
correctly.

I get following errors:

You don't show or tell what exactly you did to build that program, so
I'll have to guess. From the liner error messages, by far the most
probable answer is you forgot to tell the linker to link in the
Berkeley DB libraries you just built.

--
Hans-Bernhard Broeker (broeker (AT) physik (DOT) rwth-aachen.de)
Even if all the snow were burnt, ashes would remain.



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.