ProgrammingThis forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
g++ -c -g -I. -I/usr/local/BerkeleyDB.4.4/include -D_GNU_SOURCE -D_REENTRANT -O db.cpp -fPIC -DPIC -o db.o
In file included from /usr/lib/gcc/i386-redhat-linux/4.0.0/../../../../include/c++/4.0.0/backward/iostream.h:31,
from db.cpp:1:
/usr/lib/gcc/i386-redhat-linux/4.0.0/../../../../include/c++/4.0.0/backward/backward_warning.h:32:2: warning: #warning This file includes at least one deprecated or antiquated header. Please consider using one of the 32 headers found in section 17.4.1.2 of the C++ standard. Examples include substituting the <X> header for the <X.h> header for C++ includes, or <iostream> instead of the deprecated header <iostream.h>. To disable this warning use -Wno-deprecated.
In file included from db.cpp:3:
/usr/local/BerkeleyDB.4.4/include/db_cxx.h:61:23: error: exception.h: No such file or directory
/usr/local/BerkeleyDB.4.4/include/db_cxx.h:1032: error: expected class-name before ‘{’ token
make: *** [db.o] Error 1
Forget to say....
When I installed commonc++ 2, there was still errors, so I did not continue to use it. But even though I have the exception.h in that dir, the compiler still complaint. Thx
Jack
And one more thin', I tried once that including c++2 in my search dir,
but after that, the compiler said missing.h was missing but it was obviously resided on the same dir as exception.h, so why?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.