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
unresolved ref. found in libdb_cxx when linking
Post new topic   Reply to topic Page 1 of 1 [3 Posts] View previous topic :: View next topic
Author Message
Alberto
*nix forums beginner


Joined: 10 Mar 2005
Posts: 45

PostPosted: Sun Apr 03, 2005 5:31 pm    Post subject: Re: unresolved ref. found in libdb_cxx when linking Reply with quote

Yes, that solved it. Thanks a lot Volodymyr,

Regards/Alberto
Back to top
Volodymyr Tarasenko
*nix forums beginner


Joined: 24 Mar 2005
Posts: 5

PostPosted: Sun Apr 03, 2005 6:39 am    Post subject: Re: unresolved ref. found in libdb_cxx when linking Reply with quote

Alberto wrote:
Quote:
My cmd line was:

g++ -v -ldb_cxx-4.3 -L/usr/local/berkeleydb.4.3/lib/ MyDb.cpp
excxx_example_database_load.cpp -o cargadb


You forgot -lpthread (As I understand your library was compiled with

pthread support)

Best regards,
Volodymyr!
Back to top
Alberto
*nix forums beginner


Joined: 10 Mar 2005
Posts: 45

PostPosted: Sat Apr 02, 2005 5:38 pm    Post subject: unresolved ref. found in libdb_cxx when linking Reply with quote

Hi,

I'm trying to get the example that comes with the db part of the dbxml
distribution, and I found the following error when linking:

GNU assembler version 2.15.90.0.1.1 (i586-suse-linux) using BFD version
2.15.90.0.1.1 20040303 (SuSE Linux)
/usr/lib/gcc-lib/i586-suse-linux/3.3.3/collect2 --eh-frame-hdr -m
elf_i386 -dynamic-linker /lib/ld-linux.so.2 -o cargadb
/usr/lib/gcc-lib/i586-suse-linux/3.3.3/../../../crt1.o
/usr/lib/gcc-lib/i586-suse-linux/3.3.3/../../../crti.o
/usr/lib/gcc-lib/i586-suse-linux/3.3.3/crtbegin.o
-L/usr/local/berkeleydb.4.3/lib/
-L/usr/lib/gcc-lib/i586-suse-linux/3.3.3
-L/usr/lib/gcc-lib/i586-suse-linux/3.3.3/../../../../i586-suse-linux/lib
-L/usr/lib/gcc-lib/i586-suse-linux/3.3.3/../../.. -ldb_cxx-4.3
/tmp/ccvnfKhr.o /tmp/ccmlCwbA.o -lstdc++ -lm -lgcc_s -lgcc -lc -lgcc_s
-lgcc /usr/lib/gcc-lib/i586-suse-linux/3.3.3/crtend.o
/usr/lib/gcc-lib/i586-suse-linux/3.3.3/../../../crtn.o
/usr/local/berkeleydb.4.3/lib//libdb_cxx-4.3.so: undefined reference to
`pthread_condattr_setpshared'
/usr/local/berkeleydb.4.3/lib//libdb_cxx-4.3.so: undefined reference to
`pthread_mutexattr_destroy'
/usr/local/berkeleydb.4.3/lib//libdb_cxx-4.3.so: undefined reference to
`pthread_mutexattr_setpshared'
/usr/local/berkeleydb.4.3/lib//libdb_cxx-4.3.so: undefined reference to
`pthread_mutexattr_init'
/usr/local/berkeleydb.4.3/lib//libdb_cxx-4.3.so: undefined reference to
`pthread_mutex_trylock'
collect2: ld returned 1 exit status

My cmd line was:

g++ -v -ldb_cxx-4.3 -L/usr/local/berkeleydb.4.3/lib/ MyDb.cpp
excxx_example_database_load.cpp -o cargadb

I had a look at the /dist/build_unix directory and there I can find
some object files related to mutex (mut_pthread.o), so I'm confused
about the reason of the error.
Could anybody help me with this? Thanks,

/Alberto
Back to top
Google

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

Similar Topics
Topic Author Forum Replies Last Post
No new posts getaddrinfo not found on SCO OpenServer 5.0.5 edcdave@gmail.com python 0 Fri Jul 21, 2006 1:11 pm
No new posts libXfixes.so.3 is present, but not found Dr. R. E. Hawkins FreeBSD 5 Thu Jul 20, 2006 11:59 pm
No new posts error: Illegal MIME chars, found in header Mads N. Vestergaard Postfix 5 Thu Jul 20, 2006 10:18 am
No new posts Linking Tables from 2 databases Pratik Shukla PostgreSQL 2 Wed Jul 19, 2006 5:54 pm
No new posts still confused about headers, inline functions, linking, ... pookiebearbottom@yahoo.co C++ 6 Tue Jul 18, 2006 3:58 pm

Car Credit | Bankruptcy | RC51 | Loans | Myspace Proxy
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.1562s ][ Queries: 20 (0.0820s) ][ GZIP on - Debug on ]