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:
- use vcpkg with cmd and execute
vcpkg install boost-tokenizer
- boost-tokenizer package files such as "tokenizer.hpp" will appear at "yourVcpkgRoot\vcpkg\installed\x86-windows\include\boost"
- visual studio > Go to Project properties → C/C++ → General → Additional Include Directories, and add "yourVcpkgRoot\vcpkg\installed\x86-windows\include\"
- add
#include <boost/tokenizer.hpp>
to cpp file - build the project should success
(https://stackoverflow.com/questions/29893307/how-do-i-include-boost-libraries)