I probably do except i learned c++ back in poland , so im not familiar with the english name so could you clarify what are search paths and include directories .
A compiler search path is a directory path given the compiler so it knows where to look for header files. That is why, for example, you can include <iostream> without qualifying the full path.
Do you know how to set search directories in Code::Blocks? if not, a quick google search should yield the answer ;)
Well i did add the search directories and it still cant find the boost\filesystem.hpp file , i think my codeblocks is bust , ill try visual studio , would express do ?
C:\Program Files (x86)\boost\boost_1_46_1\boost\filesystem.hpp|15|error: boost/config.hpp: No such file or directory|
C:\Program Files (x86)\boost\boost_1_46_1\boost\filesystem.hpp|34|error: boost/filesystem/v3/config.hpp: No such file or directory|
C:\Program Files (x86)\boost\boost_1_46_1\boost\filesystem.hpp|35|error: boost/filesystem/v3/path.hpp: No such file or directory|
C:\Program Files (x86)\boost\boost_1_46_1\boost\filesystem.hpp|36|error: boost/filesystem/v3/operations.hpp: No such file or directory|
C:\Program Files (x86)\boost\boost_1_46_1\boost\filesystem.hpp|37|error: boost/filesystem/v3/convenience.hpp: No such file or directory|
||=== Build finished: 5 errors, 0 warnings ===|
You changed the include directive to #include <filesystem.hpp>, didn't you? You need to change your include path to C:\Program Files (x86)\boost\boost_1_46_1 instead.
To make a folder, you use the function boost::filesystem::create_directory, passing your required directory path as a single string argument. I don't know how to autofind the desktop folder - this is probably OS specific (WinAPI again...).
Also, we are barely started with boost yet: if you try to use a boost::filesystem function and then build your project, you will get linker errors. We still need to build boost.
If you want to try this, then OK. But be warned, Boost might not be able to find the desktop folder for you anyway. This might require WinAPI.
Section 5.2 is the ideal way IMO, but it isn't quite that simple. Read it and once you think you have some idea of how it works, let me know. I can then tell you the commands to give to Visual Studio command prompt when I have the chance to find them.
Oh, looks like the documentation only discusses Visual Studio. Failing that, I'm not really sure. The process should be similar for Code::Blocks. Perhaps someone else on here knows?
Okay - sorry I couldn't help you with Code::Blocks, but I should be able to for VCE. I prefer it anyway :p
EDIT: When you've downloaded it, see if you can make a new project and set the Boost search directory (in Visual C++ Express, search directories must be set per project).