官术网_书友最值得收藏!

  • The Modern C++ Challenge
  • Marius Bancila
  • 253字
  • 2021-06-25 22:01:20

Building the code

Although a large number of 3rd party libraries are used throughout the book, all these libraries, as well as all the solutions provided in the book are cross-platform and run on all platforms. However, the code has been developed and tested with Visual Studio 2017 v15.6/7 on Windows 10 and Xcode 9.3 on Mac OS 10.13.x.

If you are using Xcode on a Mac, there are two features used in the book that are not available with the LLVM toolset included in Xcode; these are the filesystem library and std::optional. However, these have been designed based on the Boost.Filesystem and Boost.Optional libraries and the use of the mentioned standard libraries in the proposed solutions is easily interchangeable with the Boost libraries. In fact, the accompanying code is written so that it works with either of the two; controlling which one to use is done with several macros. Instructions for building either with one or another are provided below, although the same information is also available in the source archive.

In order to support most of the development environments and build systems you could use on various platforms, the code is provided with CMake scripts. These are used to generate projects or build scripts for your preferred toolset. If you do not have CMake installed on your machine, you can get it from https://cmake.org/. Below, you can find instructions for using CMake to generate Visual Studio and Xcode scripts. For other tools, please refer to the CMake documentation, if necessary.

主站蜘蛛池模板: 甘孜县| 西贡区| 喀喇沁旗| 湄潭县| 宜城市| 吉水县| 清水河县| 阜康市| 广宁县| 锦州市| 观塘区| 巴塘县| 洮南市| 建德市| 桃园市| 株洲县| 陇南市| 伊春市| 西安市| 齐河县| 巴彦淖尔市| 太原市| 醴陵市| 潼南县| 盐池县| 东海县| 微山县| 南江县| 彭泽县| 翁源县| 云阳县| 百色市| 合山市| 邵阳市| 自贡市| 佛山市| 东安县| 瑞金市| 肇东市| 张家口市| 城市|