LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices

Reply
 
Search this Thread
Old 02-27-2006, 12:03 PM   #16
paulsm4
Guru
 
Registered: Mar 2004
Distribution: SusE 8.2
Posts: 5,863
Blog Entries: 1

Rep: Reputation: Disabled

Hi -

That's kind of a weird place for it (I'd expect to find it someplace like "/usr/lib" or "/usr/local/lib"), but have you tried something like this:
Code:
g++ -o try db_try.cpp \
  -L/root/Desktop/db-4.4.20/build_unix/.libs/ -ldb-4 -ldb_cxx-4
Your "libdb_cxx-4.so" should probably be a symbolic link, to something like "libdb_cxx-4.3.so". If you installed it from RPM or built it from scratch, the symbolic link should be there.

'Hope that helps .. PSM
 
Old 02-27-2006, 09:49 PM   #17
lucky6969b
Member
 
Registered: Nov 2005
Posts: 337

Original Poster
Rep: Reputation: 30
Dear Paul,
I have tried your suggestions. For this time being, it's still looking for exception.h, From another Linux Media, someone suggested me to look for <stdexpt.h> which is standardised C++ stuff instead of using exception.h , but exception.h error only appears on Berkeley DB code, not mine. So I'm still confused.
Thanks
Jack
 
Old 02-28-2006, 03:28 AM   #18
lucky6969b
Member
 
Registered: Nov 2005
Posts: 337

Original Poster
Rep: Reputation: 30
Dear Paul,
I have found a workaround. That's to #define STD_CXX_HEADERS 1 in the file in question.
Thanks for helping me
Jack
 
Old 03-02-2006, 11:48 AM   #19
Hko
Senior Member
 
Registered: Aug 2002
Location: Groningen, The Netherlands
Distribution: ubuntu
Posts: 2,530

Rep: Reputation: 108Reputation: 108
Quote:
Originally Posted by lucky6969b
I have that file
./root/Desktop/db-4.4.20/build_unix/.libs/libdb_cxx-4.4.so
What should I be doing next?
Install the libs in a more suitable place, eg. /usr/local/bin. Or better yet, install the libs from a packageof your distro. Then link.
 
Old 05-19-2009, 09:15 AM   #20
tag
LQ Newbie
 
Registered: Jan 2007
Location: Boston MA
Distribution: Ubuntu 9.10, Debian 5, Wolvix 2, Slackware 12
Posts: 14

Rep: Reputation: 0
Hey guys,

So, I have just got this working, figured I would shed some light on this, even if it is an old thread, I had this issue.

You are calling a C++ library, but linking to the C library. That is all well and good, but you need to also link to the C++ library. doing:

#define STD_CXX_HEADERS 1

will link ( I am not sure, but that sounds right, according to a previous post )

But, the simple fix is to add

-ldb_cxx

to your build library flags. This is on Debian / Ubuntu, just because of the current similink that ref's the most current lib.

Cheers! Hope it works!

Tag
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
/sbin/ldconfig: /usr/lib/libgtkhtml-3.0.so.2 is not a symbolic link rosariowong Slackware 13 04-29-2005 03:41 PM
Berkeley DB aesthete Linux - Software 1 02-12-2005 09:07 AM
symbolic link in /lib alice95089 Linux - Software 1 02-07-2005 08:28 PM
How to link a lib? theonebeyond Programming 3 09-11-2004 03:10 AM
IdConfig: /usr/lib/.... is not a symbolic link. _tomMmy_ Linux - Software 0 08-23-2004 07:12 AM


All times are GMT -5. The time now is 07:34 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration