vcpkg boost tokenizer build include

  • 96
  • 0
  • c++
  • 2021-04-25

vcpkg boost tokenizer build include

This is a brief tutorial to use vcpkg install and include boost-tokenizer in cpp file.

Official Website see: 

https://github.com/boostorg/tokenizer 

https://vcpkg.info/port/boost-tokenizer

Steps:

  1. use vcpkg with cmd and execute vcpkg install boost-tokenizer
  2. boost-tokenizer package files such as "tokenizer.hpp" will appear at "yourVcpkgRoot\vcpkg\installed\x86-windows\include\boost"
  3. visual studio > Go to Project propertiesC/C++GeneralAdditional Include Directories, and add "yourVcpkgRoot\vcpkg\installed\x86-windows\include\"  
  4. add #include <boost/tokenizer.hpp> to cpp file
  5. build the project should success

 

(https://stackoverflow.com/questions/29893307/how-do-i-include-boost-libraries)