missing lboost_thread-mt in mongodb cpp driver (ubuntu server x64)

后端 未结 1 522
悲&欢浪女
悲&欢浪女 2021-01-27 01:36

i have a brand new ubuntu server x64.

i installed the following packages

build-essential

libboost-all-dev

mongodb-dev

mongodb-10gen

相关标签:
1条回答
  • 2021-01-27 02:15

    Page http://packages.ubuntu.com/saucy/i386/libboost-thread1.54-dev/filelist shows that Ubuntu libboost-thread package has libboost_thread.so library file, not libboost_thread-mt.so

    So, correct command is:

    root@server:/home/user/Desktop# g++ mongotest.cpp -pthread -lmongoclient -lboost_thread -lboost_filesystem -lboost_program_options -lboost_system -o tutorial

    0 讨论(0)
提交回复
热议问题