0
我已經在我的Ubuntu 12.04 LTS上安裝了提升以及Cassandra cpp driver所需的其他依賴。當我嘗試運行下面的命令時,最終會出現兩個錯誤。我尋找解決方案,但找不到任何。有人說通過添加我嘗試過的選項-lboost_system來鏈接libboost_system,但沒有幫助。未定義的引用符號'boost :: future_category()'
這裏是cmd:cmake。 & &使& &使cql_demo & &使cql_test & &化妝測試& &使安裝-lboost_system
所有我想要做的是從驅動程序運行演示,並與卡桑德拉數據庫進行通信!
錯誤:
-- info CMAKE_BINARY_DIR: /home/pi/experiments/cpp-driver-master2
-- Configuring done
-- Generating done
-- Build files have been written to: /home/pi/experiments/cpp-driver-master2
[ 42%] Built target cql
[ 85%] Built target cql_static
[ 87%] Built target CCMBridge
Linking CXX executable cql_integration_tests
/usr/bin/ld: warning: libboost_thread.so.1.55.0, needed by /usr/local/lib/libboost_log.so, may conflict with libboost_thread.so.1.46.1
/usr/bin/ld: CMakeFiles/cql_integration_tests.dir/src/test_utils.cpp.o: undefined reference to symbol 'boost::future_category()'
/usr/bin/ld: note: 'boost::future_category()' is defined in DSO /usr/local/lib/libboost_thread.so.1.55.0 so try adding it to the linker command line
/usr/local/lib/libboost_thread.so.1.55.0: could not read symbols: Invalid operation
collect2: ld returned 1 exit status
make[2]: *** [test/integration_tests/cql_integration_tests] Error 1
make[1]: *** [test/integration_tests/CMakeFiles/cql_integration_tests.dir/all] Error 2
make: *** [all] Error 2
你說得對!謝謝! – zuubs