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 \ 'Hope that helps .. PSM |
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 |
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 |
Quote:
|
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 |
All times are GMT -5. The time now is 11:16 AM. |