2 Replies Latest reply on Mar 22, 2012 3:17 PM by 812233

    Linking problems - fedora 16 plus BDB5.2


      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!


      **** Build Finished ****