How to specify my compiler and linker in Eclipse and Windows?

I downloaded boost. The instructions on the website say the following:

In this example, you must specify your linker in C: \ lib \ boost \ lib and tell your compiler that the search includes C: \ lib \ boost and enable them using the second boost directory, for example #include "boost / filesystem. hpp

How to specify my linker and compiler exactly?

I work in Eclipse on Windows 7.

+4
source share
1 answer

Compiler To add the include directory, add the boost path to:

project properties->C\C++ Build->Settings->Directories->GCC C++ Compiler->Directories 

Note: add the folder where the β€œboost” folder is located, so you can do

 #include "boost/smart_ptr.hpp" 

Linker To add the path to the library, add a search path (indicating where all the lib files are located):

 project properties->C\C++ Build->Settings->Directories->MinGW C++ Linker->Libraries 

(It is assumed that you are using the MinGW toolchain. It should be the same on other toolchains).

Greetings

0
source

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


All Articles