Boost linking, Visual Studio & version control

后端 未结 5 1688
南方客
南方客 2021-01-18 23:19

I\'m using Visual Studio 2008, and writing some stuff in C++. I\'m using a Boost library (that is not header only).

So, linking to Boost requires one to add

5条回答
  •  北荒
    北荒 (楼主)
    2021-01-19 00:04

    We put all our 3rdparty headers and libraries used by a project in the project tree in source control. This means we track the version of the libraries with the source.

    Then we reference the include and source directories in the project properties. We do not use the Visual C++ Directories as this puts too much dependence on the location of files on different developers systems and also the versions of libraries cannot be tracked.

    The only exception to this would be the platform sdk when developing with vc6.

    Shameless plug: We now manage our vc project settings with CMake and it make these things much easier esp for large projects.

提交回复
热议问题