I need to include the following line in my code. #include "boost/type_traits/object_traits.hpp" My source file is in the root directory of the boost package that I extracted. But, I get errors like: boost/type_traits/object_traits.hpp:19: boost/type_traits/ice.hpp: No such file or directory boost/type_traits/object_traits.hpp:22: boost/type_traits/fwd.hpp: No such file or directory boost/type_traits/object_traits.hpp:25: boost/type_traits/composite_traits.hpp: No such file or directory etc ... I noticed that in say "boost/type_traits/ice.hpp" it also has header files it refers to, that look in "boost/type_traits/" directory, but relative to that header file, ice.hpp, there is no such directory path ... only from the root where my source file is, does that path exist. How does this work and how to I get my code to compile? Thanks, John
If you are using gcc or cc like compilers on *nix like systems, you need to use the "-I" flag of the compiler and point it to the base directory where you see "boost/". It will help if you gain familiarity with the standard compilers and compiler options.
-----Original Message----- From: boost-users-bounces@lists.boost.org [mailto:boost-users-bounces@lists.boost.org] On Behalf Of jling@cmmt.ubc.ca Sent: Monday, January 12, 2004 11:58 AM To: boost-users@lists.boost.org Subject: [Boost-users] Boost Include headers
I need to include the following line in my code.
#include "boost/type_traits/object_traits.hpp"
My source file is in the root directory of the boost package that I extracted.
But, I get errors like: boost/type_traits/object_traits.hpp:19: boost/type_traits/ice.hpp: No such file or directory boost/type_traits/object_traits.hpp:22: boost/type_traits/fwd.hpp: No such file or directory boost/type_traits/object_traits.hpp:25: boost/type_traits/composite_traits.hpp: No such file or directory etc ...
I noticed that in say "boost/type_traits/ice.hpp" it also has header files it refers to, that look in "boost/type_traits/" directory, but relative to that header file, ice.hpp, there is no such directory path ... only from the root where my source file is, does that path exist.
How does this work and how to I get my code to compile?
Thanks, John
_______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/bo> ost-users
Thank you all, the -I did fix my problem. Chetan Gadgil wrote:
If you are using gcc or cc like compilers on *nix like systems, you need to use the "-I" flag of the compiler and point it to the base directory where you see "boost/".
It will help if you gain familiarity with the standard compilers and compiler options.
-----Original Message----- From: boost-users-bounces@lists.boost.org [mailto:boost-users-bounces@lists.boost.org] On Behalf Of jling@cmmt.ubc.ca Sent: Monday, January 12, 2004 11:58 AM To: boost-users@lists.boost.org Subject: [Boost-users] Boost Include headers
I need to include the following line in my code.
#include "boost/type_traits/object_traits.hpp"
My source file is in the root directory of the boost package that I extracted.
But, I get errors like: boost/type_traits/object_traits.hpp:19: boost/type_traits/ice.hpp: No such file or directory boost/type_traits/object_traits.hpp:22: boost/type_traits/fwd.hpp: No such file or directory boost/type_traits/object_traits.hpp:25: boost/type_traits/composite_traits.hpp: No such file or directory etc ...
I noticed that in say "boost/type_traits/ice.hpp" it also has header files it refers to, that look in "boost/type_traits/" directory, but relative to that header file, ice.hpp, there is no such directory path ... only from the root where my source file is, does that path exist.
How does this work and how to I get my code to compile?
Thanks, John
_______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/bo> ost-users
_______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
I need to include the following line in my code.
#include "boost/type_traits/object_traits.hpp"
My source file is in the root directory of the boost package that I extracted.
But, I get errors like: boost/type_traits/object_traits.hpp:19: boost/type_traits/ice.hpp: No such file or directory boost/type_traits/object_traits.hpp:22: boost/type_traits/fwd.hpp: No such file or directory boost/type_traits/object_traits.hpp:25: boost/type_traits/composite_traits.hpp: No such file or directory etc ...
I noticed that in say "boost/type_traits/ice.hpp" it also has header files it refers to, that look in "boost/type_traits/" directory, but relative to that header file, ice.hpp, there is no such directory path ... only from the root where my source file is, does that path exist.
How does this work and how to I get my code to compile?
I think that your boost install is messed up somehow (maybe you have an old version still in your path?) because that file no longer includes boost/type_traits/ice.hpp - indeed did not do so in the last release. John.
participants (4)
-
Chetan Gadgil
-
jling@cmmt.ubc.ca
-
John Ling
-
John Maddock