niXforums Forum Index
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   PreferencesPreferences   Log in to check your private messagesLog in to check your private messages   Log inLog in 
·  nixdoc.net ·  man pages ·  Linux HOWTOs ·  FreeBSD Tips ·  Forums
navigation Forum index » Databases » Berkeley DB
undefined reference to `db_create'
Post new topic   Reply to topic Page 1 of 1 [2 Posts] View previous topic :: View next topic
Author Message
David Kroeber
*nix forums beginner


Joined: 04 Feb 2005
Posts: 1

PostPosted: Fri Feb 04, 2005 6:35 pm    Post subject: Re: undefined reference to `db_create' Reply with quote

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.
Back to top
Makarand
*nix forums beginner


Joined: 04 Feb 2005
Posts: 1

PostPosted: Fri Feb 04, 2005 11:28 am    Post subject: undefined reference to `db_create' Reply with quote

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
Back to top
Google

Back to top
Display posts from previous:   
Post new topic   Reply to topic Page 1 of 1 [2 Posts] View previous topic :: View next topic
The time now is Thu Jan 08, 2009 4:42 am | All times are GMT
navigation Forum index » Databases » Berkeley DB
Jump to:  

Similar Topics
Topic Author Forum Replies Last Post
No new posts undefined index Chris PHP 4 Tue Jul 18, 2006 3:45 pm
No new posts Null reference David White C++ 27 Tue Jul 18, 2006 5:17 am
No new posts f(v[i],i++); is Undefined or Unspecified? Scorpio C++ 14 Sun Jul 16, 2006 3:30 pm
No new posts FAQ 3.7 How do I cross-reference my Perl programs? PerlFAQ Server Perl 0 Sat Jul 15, 2006 7:03 am
No new posts "call to undefined function" mysql_error when adding new ... news@smutchin.co.uk PHP 3 Fri Jul 14, 2006 4:15 pm

Loans | Loans | Myspace Proxy | Proxy | Loans
Copyright © 2004-2005 DeniX Solutions SRL
 
Other DeniX Solutions sites: Unix/Linux blog |  electronics forum |  medicine forum |  science forum | 
Privacy Policy


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.1061s ][ Queries: 20 (0.0405s) ][ GZIP on - Debug on ]