Undefined symbols for architecture x86_64 in MAC OSX 10.11



  • hey everyone i am trying to compile a crypto coin wallet and am getting the following here and i cannot figureout how to fix it so it does not happen, i am using qt4 and qt creator to compile this

    Undefined symbols for architecture x86_64:
    "Db::verify(char const*, char const*, std::__1::basic_ostream<char, std::__1::char_traits<char> >, unsigned int)", referenced from:
    CDBEnv::Verify(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, bool (
    )(CDBEnv&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >)) in db.o
    CDBEnv::Salvage(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, bool, std::__1::vector<std::__1::pair<std::__1::vector<unsigned char, std::__1::allocator<unsigned char> >, std::__1::vector<unsigned char, std::__1::allocator<unsigned char> > >, std::__1::allocator<std::__1::pair<std::__1::vector<unsigned char, std::__1::allocator<unsigned char> >, std::__1::vector<unsigned char, std::__1::allocator<unsigned char> > > > >&) in db.o
    ld: symbol(s) not found for architecture x86_64
    clang: error: linker command failed with exit code 1 (use -v to see invocation)
    make: *** [thecreed-Qt.app/Contents/MacOS/thecreed-Qt] Error 1
    22:47:07: The process "/usr/bin/make" exited with code 2.
    Error while building/deploying project thecreed-qt (kit: Desktop)
    When executing step "Make"
    22:47:07: Elapsed time: 00:09.

    any help would be great



  • Are there 'Db' class inside a library or inside your code?


  • Lifetime Qt Champion

    Hi and welcome to devnet,

    Are you using C++11 ?


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.