我正在嘗試爲Eclipse C/C++開發工具設置CUTE單元測試插件。在OSX上設置CUTE(Eclipse CDT單元測試插件)
如果未在標準位置安裝升壓,你將需要指定它。右鍵單擊新創建的CUTE項目,然後選擇屬性。在C/C++ Build,Settings中,選擇Tool Settings標籤。在GCC C++編譯器目錄中指定Boost包含路徑,並指定庫路徑和boost_thread庫名稱,例如boost_thread-gcc-mt-d-1_33。
粗體部分在說什麼?我不知道它要求我做什麼。
到目前爲止,我下載了boost並將目錄移至/ usr/local /,然後在項目屬性> C/C++ Build> Settings> Tool下的include路徑列表中添加了「/ usr/local/boost_1_42_0/boost」設置> GCC C++編譯器>在我可愛的項目目錄,但Eclipse是仍然給我很多的錯誤,並表示其無法找到提升警告,如:
Errors:
Description Resource Path Location Type
'boost_or_tr1' has not been declared cute_suite_test.h /helloworld/cute line 45 C/C++ Problem
'boost_or_tr1' has not been declared cute_test.h /helloworld/cute line 53 C/C++ Problem
'boost_or_tr1' was not declared in this scope cute_testmember.h /helloworld/cute line 30 C/C++ Problem
'boost_or_tr1' was not declared in this scope cute_testmember.h /helloworld/cute line 34 C/C++ Problem
'boost' is not a namespace-name cute_equals.h /helloworld/cute line 41 C/C++ Problem
'boost' is not a namespace-name cute_suite_test.h /helloworld/cute line 33 C/C++ Problem
'boost' is not a namespace-name cute_test.h /helloworld/cute line 34 C/C++ Problem
Warnings:
Description Resource Path Location Type
boost/bind.hpp: No such file or directory cute_suite_test.h /helloworld/cute line 32 C/C++ Problem
boost/function.hpp: No such file or directory cute_test.h /helloworld/cute line 33 C/C++ Problem
boost/type_traits/is_floating_point.hpp: No such file or directory cute_equals.h /helloworld/cute line 34 C/C++ Problem
boost/type_traits/is_integral.hpp: No such file or directory cute_equals.h /helloworld/cute line 33 C/C++ Problem
boost/type_traits/make_signed.hpp: No such file or directory cute_equals.h /helloworld/cute line 35 C/C++ Problem
這是我第一次嘗試C++開發約10幾年,我真的迷失在這裏。任何幫助將不勝感激!
它的工作原理!我還必須右鍵單擊>「清理項目」,這讓我永遠想不到。 – Imran 2010-02-20 16:08:59