Configure CUTE (Eclipse CDT Unit Testing Plugin) on OSX

I am trying to configure the CUTE module for the Eclipse C / C ++ development tools.

The documentation says:

If you did not install Boost in a standard location, you will need to specify it. Right-click on the newly created CUTE project and select Properties. In C / C ++ Build, Settings, select the Tool Options tab. Specify the Boost enable path in the GCC C ++ compiler, directories, and specify the library path and library name boost_thread, for example boost_thread-gcc-mt-d-1_33.

What is the bold part talking about? I have no idea what he is asking from me.

While I downloaded boost and moved the directory to / usr / local /, I added "/ usr / local / boost_1_42_0 / boost" to the list of inclusion paths under "Project Properties"> "C / C ++"> "Settings"> " Tool Settings "> GCC C ++ Compiler> Directories in my Cute Project, but Eclipse still gives me a lot of errors and warnings indicating that it cannot find boost, for example:

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 

This is my first attempt at developing C ++ after about 10 years, and I am really lost here. Any help would be greatly appreciated!

+4
source share
1 answer

Although many libraries in boost only have a header, some require libraries (as in .lib .a .dyld & c). Here are instructions for creating boost .

As the bold part says "specify the path to the library and the name of the boost_thread library", it looks like you should create boost sources to create the necessary libraries, for example, in your case libboost_thread . Then specify the path and name of this library in your project settings.

In addition, I think you also need to specify include paths, since /usr/local/<boost_somthing> unlikely to be found by default, therefore, all these errors are 'boost' is not a namespace-name .

+1
source

Source: https://habr.com/ru/post/1301906/


All Articles