dbTalk Databases Forums  

strange linkage problems for BerkDB in Linux

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


Discuss strange linkage problems for BerkDB in Linux in the comp.databases.berkeley-db forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
sdbrody@gmail.com
 
Posts: n/a

Default strange linkage problems for BerkDB in Linux - 10-27-2005 , 11:40 AM






Hi,
I'm having problems linking to the Berkeley DB libraries using g++.
I've installed and 'make'd the 4.3 version to a specific directory, and
use the -L and -l flags when linking, but I still get "undefined
reference to .." message for all Db methods and classes (this happens
on a simple test file, and on the example files).
I'm running Redhat Linux (I think 9).
I'm wondering if there may be a problem in the way I compiled and
created the library. (I tried both with and without the '--enable-cxx'
flag on the dist/configure
Can someone please help me out ?


Reply With Quote
  #2  
Old   
sdbrody@gmail.com
 
Posts: n/a

Default Re: strange linkage problems for BerkDB in Linux - 10-27-2005 , 11:49 AM






Finally got it : compiled the Berkeley DB with --enable-cxx for the
configure program, and then linked to the libdb_cxx instead of the
regular one. (also, -lpthread is needed)

sorry for the bother, maybe someone else will benefit.


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