Visit Jeremy's Blog.
Go Back > Forums > Non-*NIX Forums > Programming
User Name
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.


  Search this Thread
Old 02-27-2006, 12:03 PM   #16
LQ 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:
g++ -o try db_try.cpp \
  -L/root/Desktop/db-4.4.20/build_unix/.libs/ -ldb-4 -ldb_cxx-4
Your "" should probably be a symbolic link, to something like "". 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
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.
Old 02-28-2006, 03:28 AM   #18
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
Old 03-02-2006, 11:48 AM   #19
Senior Member
Registered: Aug 2002
Location: Groningen, The Netherlands
Distribution: ubuntu
Posts: 2,530

Rep: Reputation: 110Reputation: 110
Originally Posted by lucky6969b
I have that file
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
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:


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

But, the simple fix is to add


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!



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/ 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 05:50 AM.

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