dbTalk Databases Forums  

undefined reference to `db_create'

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


Discuss undefined reference to `db_create' in the comp.databases.berkeley-db forum.



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

Default undefined reference to `db_create' - 02-04-2005 , 06:28 AM






I am using ver 4.2.52 Berkeley DB on (Redhat linux 9.0). I get the
following error when i try to compile the sample code provided with the
docs.

/tmp/cciJ5jrl.o(.text+0x2c): In function `main':
: undefined reference to `db_create'
collect2: ld returned 1 exit status

I used the cmd
gcc -I/usr/local/BerkeleyDB.4.2/include -L/usr/local/BerkeleyDB.4.2/lib
test.c

I have added the line "/usr/local/BerkeleyDB.4.2/lib" to the file
"ld.so.conf", & executed "ldconfig". Kindly let me know where i am
going wrong.

Thanking you


Reply With Quote
  #2  
Old   
David Kroeber
 
Posts: n/a

Default Re: undefined reference to `db_create' - 02-04-2005 , 01:35 PM






hi

* Makarand:
Quote:
/tmp/cciJ5jrl.o(.text+0x2c): In function `main':
: undefined reference to `db_create'
collect2: ld returned 1 exit status

I used the cmd
gcc -I/usr/local/BerkeleyDB.4.2/include -L/usr/local/BerkeleyDB.4.2/lib
test.c
did you try gcc ... -ldb?

//dave

--
To get rid of overkillingly long URLs,
just try http://dave.ms/
Signing up is not required.


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 - 2013, Jelsoft Enterprises Ltd.