|
|
|
|
|
|
| Author |
Message |
David Kroeber *nix forums beginner
Joined: 04 Feb 2005
Posts: 1
|
Posted: Fri Feb 04, 2005 6:35 pm Post subject:
Re: undefined reference to `db_create'
|
|
|
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
|
Posted: Fri Feb 04, 2005 11:28 am Post subject:
undefined reference to `db_create'
|
|
|
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 |
|
 |
|
|
The time now is Thu Jan 08, 2009 4:42 am | All times are GMT
|
|
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
|
|