Boost Library cannot get to work in C++, Include directories not working

前端 未结 1 933
小蘑菇
小蘑菇 2021-01-25 04:51

I recently tried to install boost libraries in C++ 14, and I added it\'s include paths like:

Solution Explorer > Project Name > Property Pages > VC++ Directories > \

1条回答
  •  清歌不尽
    2021-01-25 05:12

    • make sure you download and install the correct boost version. Installing it in the visual studio directories is possible, but not advised. I suggest you use one of the packages from here. Assuming you use visual studio 2017 and you are developing for 64bit, this could perhaps be the correct package for you.
    • make sure you do both: adding the include search path and the library search path to your visual studio.

    The include search path should point to the boost-installation root directory (the one that contains the Jamroot file and a boost subdirectory). The library search path should point to the correct library subfolder within the boost installation. This is one of the subfolders that start with lib64-msvc-**.* (or lib32-msvc-* if you're developing for 32bit).

    The default install path of the binary boost package above will install it into C:\local\boost_. Make sure you use the paths from this installation directory and follow the instructions here.

    Example:

    Include search path: C:\local\boost_1_64_0

    Library search path: C:\local\boost_1_64_0\lib64-msvc-14.1

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