However when I try and compile a program in the command line with "cl /EHsc boosttest.cpp i get the error
"cannot open include file: 'boost.filesystem.hpp': No such file or directory
The path to the boost root directory (often C:\Program Files\boost\boost_1_59_0) is sometimes referred to as $BOOST_ROOT in documentation and mailing lists .
To compile anything in Boost, you need a directory containing the boost\ subdirectory in your #include path. Specific steps for setting up #include paths in Microsoft Visual Studio follow later in this document; if you use another IDE, please consult your product's documentation for instructions.
I took that to mean to set the path environment to C:\Program Files\boost\boost_1_59_0. Also, I usually just compile from developer command line after writing program in a text editor. I have Visual Studio but dont use it
Also, I usually just compile from developer command line after writing program in a text editor.
Then, ensure the appropriate directory is added to the #include path and the path to the library is passed on to the linker via command line arguments (or it might be a good time to start using a make file to automate things.) Unfortunately, the environment path has nothing to do with it.
So just to clarify, If i download boost ver 1.59.0, I just have to place the files somewhere and then put the directory in the include path. So for me I would just have to do something like
So just to clarify, If i download boost ver 1.59.0, I just have to place the files somewhere and then put the directory in the include path. So for me I would just have to do something like #include <C:/Program Files/boost/boost_1_59_0/boost/filesystem.hpp>
No. You need to put the directory in the include path, not put the full path in the include directive.
filesystem is one of the ones where I have to build the libraries right?
Yes. You must supply the name of the library and add the appropriate path to the library path.
How are you invoking the compiler? With what options?