Skip to Main Content

Berkeley DB Family

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Getting compiler error when running EnvExample.cpp

589108Jul 20 2007 — edited Jul 23 2007
Hi All,
Im a newbie to use Berkeley DB and facing the problem when running the EnvExample.cpp.
Please let me know what could be the problem??

here is the command I used to run and the error I got.

gcc -I/usr/local/BerkeleyDB.4.5/include EnvExample.cpp -L/usr/local/BerkeleyDB.4.5/lib -ldb_cxx-4.5

In file included from /usr/lib/gcc/i386-redhat-linux/4.0.0/../../../../include/c++/4.0.0/backward/iostream.h:31,
from /usr/local/BerkeleyDB.4.5/include/db_cxx.h:60,
from EnvExample.cpp:19:
/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 EnvExample.cpp:19:
/usr/local/BerkeleyDB.4.5/include/db_cxx.h:61:23: error: exception.h: No such file or directory
/usr/local/BerkeleyDB.4.5/include/db_cxx.h:1053: error: expected class-name before ‘{’ token

Thanks
Senthil

Message was edited by:
user586105
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 20 2007
Added on Jul 20 2007
4 comments
1,142 views