|
|
|
|
|
|
| Author |
Message |
Alberto *nix forums beginner
Joined: 10 Mar 2005
Posts: 45
|
Posted: Sun Apr 03, 2005 5:31 pm Post subject:
Re: unresolved ref. found in libdb_cxx when linking
|
|
|
Yes, that solved it. Thanks a lot Volodymyr,
Regards/Alberto |
|
| Back to top |
|
 |
Volodymyr Tarasenko *nix forums beginner
Joined: 24 Mar 2005
Posts: 5
|
Posted: Sun Apr 03, 2005 6:39 am Post subject:
Re: unresolved ref. found in libdb_cxx when linking
|
|
|
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
|
Posted: Sat Apr 02, 2005 5:38 pm Post subject:
unresolved ref. found in libdb_cxx when linking
|
|
|
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 |
|
 |
|
|
The time now is Thu Jan 08, 2009 3:44 am | All times are GMT
|
|
|
| Similar Topics |
| Topic |
Author |
Forum |
Replies |
Last Post |
 |
getaddrinfo not found on SCO OpenServer 5.0.5 |
edcdave@gmail.com |
python |
0 |
Fri Jul 21, 2006 1:11 pm |
 |
libXfixes.so.3 is present, but not found |
Dr. R. E. Hawkins |
FreeBSD |
5 |
Thu Jul 20, 2006 11:59 pm |
 |
error: Illegal MIME chars, found in header |
Mads N. Vestergaard |
Postfix |
5 |
Thu Jul 20, 2006 10:18 am |
 |
Linking Tables from 2 databases |
Pratik Shukla |
PostgreSQL |
2 |
Wed Jul 19, 2006 5:54 pm |
 |
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
|
|