This discussion is archived
2 Replies Latest reply: Mar 22, 2012 8:17 AM by 812233 RSS

Linking problems - fedora 16 plus BDB5.2

812233 Newbie
Currently Being Moderated
Hi,

I'm new to BDB and getting problems setting up a very simple test, the error seems to be in linking :

make all
Building target: TestMulti
Invoking: GCC C++ Linker
g++ -L/usr/local/BerkeleyDB.5.2/lib -o "TestMulti" ./src/TestMulti.o -ldb-5.2
./src/TestMulti.o: In function `main':
/home/david/workspace/TestMulti/Debug/../src/TestMulti.cpp:24: undefined reference to `Db::Db(DbEnv*, unsigned int)'
.....
./src/TestMulti.o:(.data.DW.ref._ZTI11DbException[DW.ref._ZTI11DbException]+0x0): undefined reference to `typeinfo for DbException'
collect2: ld returned 1 exit status
make: *** [TestMulti] Error 1

Any help very much appreciated!

David

**** Build Finished ****

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points