If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > PC based Database Applications > Other PC Databases > Not being able to run examples in the folder examples_cxx in Berkeley DB!!

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 09-23-09, 01:38
a001u a001u is offline
Registered User
 
Join Date: Sep 2009
Posts: 2
Not being able to run examples in the folder examples_cxx in Berkeley DB!!

Hi everyone,

I've installed berkeley db on fedora 9 using commands:

../dist/configure --enable-cxx
make
make install

The problem is, none of the examples in the folder examples_cxx run.

when i run the excxx_example_database_load.cpp in getting_started folder this is the error I get
-------------------------------------------------------------
/tmp/ccfvC00D.o: In function `main':
excxx_example_database_load.cpp.text+0xd74): undefined reference to
`MyDb::MyDb(std::basic_string<char, std::char_traits<char>,
std::allocator<char> >&, std::basic_string<char, std::char_traits<char>,
std::allocator<char> >&, bool)'
excxx_example_database_load.cpp.text+0xd98): undefined reference to
`MyDb::MyDb(std::basic_string<char, std::char_traits<char>,
std::allocator<char> >&, std::basic_string<char, std::char_traits<char>,
std::allocator<char> >&, bool)'
excxx_example_database_load.cpp.text+0xdbc): undefined reference to
`MyDb::MyDb(std::basic_string<char, std::char_traits<char>,
std::allocator<char> >&, std::basic_string<char, std::char_traits<char>,
std::allocator<char> >&, bool)'
/tmp/ccfvC00D.o: In function `MyDb::~MyDb()':
excxx_example_database_load.cpp.text._ZN4MyDbD1E v[MyDb::~MyDb()]+0xf):
undefined reference to `MyDb::close()'
collect2: ld returned 1 exit status

--------------------------------------------------------------
Please help.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
Trackbacks are On
Pingbacks are On
Refbacks are On