|
Boost Users : |
From: Martin Lemieux (lemieux_at_[hidden])
Date: 2004-12-01 16:50:54
Brian Gaber <Brian.Gaber <at> PWGSC.GC.CA> writes:
> [...] my simple_ls.cpp
> currently has the following include statements:
>
> #include "/usr/local/include/boost/filesystem/operations.hpp"
> #include "/usr/local/include/boost/filesystem/path.hpp"
> #include <iostream>
1) You describe to much path information in the #include directive in
simple_ls.cpp . Like the Boost's .hpp, just start with "boost/(...).hpp".
2) Then make sure your compiler command line at least mention
"-I /user/local/include" or "-I $(INC)" where INC
~includes~ "/user/local/include".
2a) On AIX, look inside your makefile.
> [...] MS Visual C++ 6
> generates the following similar error when attempting to compile
> simple_ls.cpp
>
> c:\boost\include\boost-1_32\boost\filesystem\operations.hpp(18) : fatal
> error C1083: Cannot open include file: 'boost/filesystem/path.hpp': No such
file
> or directory
2b) On MSDEV6, add "c:\boost\include\boost-1_32" in your project settings. More
specifically in the "C++" tab, under "Preprocessor" category (drop-down list),
and at "Additional include directories:".
You should be able to compile.
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net