Re: compiler gives me error message " boost/smart_ptr.h: No such file
On Apr 27, 8:35 pm, Gert-Jan de Vos <gert-
On Apr 27, 8:26 pm, Pallav singh <singh.pal...@gmail.com> wrote:
while compiling the following code my compiler gives me error message
" boost/smart_ptr.h: No such file or directory" . do i need to give
some comiplation option for it ...such as where to find header file
Try: #include <boost/smart_ptr.hpp>
That shouldn't change anything. The standard says that when
using #include "...", if the search fails, the directive is
reprocessed as if it were #include <...>.
You may need to add the -I option with the path where your
boost library is installed, if not already present in the
INCLUDE environment variable.
He definitely needs to tell the compiler where to look for the
headers, if they aren't installed in the "standard places".
What the standard places are, of course, depends on the
compiler; for g++, it's derived from where the compiler itself
is installed, with the adjunction (at least under Unix) of
"/usr/include", and maybe "/usr/local/include".
James Kanze (GABI Software) email:email@example.com
Conseils en informatique orient=E9e objet/
Beratung in objektorientierter Datenverarbeitung
9 place S=E9mard, 78210 St.-Cyr-l'=C9cole, France, +33 (0)1 30 23 00 34