Boost logo

Boost Users :

Subject: Re: [Boost-users] [Preprocessor] Relative Addresses in BOOST_PP_FILENAME_1
From: Hossein Haeri (powerprogman_at_[hidden])
Date: 2011-01-25 06:44:17


Hi Edward,

> > #define BOOST_PP_FILENAME1<Header.hpp>
>
> This should be:
>
> #define BOOST_PP_FILENAME_1 <header.hpp>

This doesn't work either.

> So you are saying that if in your own files you have:
>
> #include <header.hpp>
>
> that gcc 4.5.1 finds it...

Yup.

> ... but if you have:
>
> #define BOOST_PP_FILENAME_1 <header.hpp>

(in Header.hpp itself)

> that gcc 4.5.1 does not find it ?

Correct.

I even renamed Header.hpp to header.hpp (all-lower-case) and GCC still can't find it. The error message can be found in the P.S. where line 52 of forward1.hpp is:

# include BOOST_PP_FILENAME_1

Any idea?

TIA,
--Hossein

P.S.

Compiling: main.cpp
In file included from D:\My Documents\My Programmes\Tutorial\Boost\PP\CabBeCalled3\header.hpp:48:0,
                 from D:\My Documents\My Programmes\Tutorial\Boost\PP\CabBeCalled3\main.cpp:3:
D:\Sources\Boost\boost_1_42_0/boost/preprocessor/iteration/detail/iter/forward1.hpp:52:37: fatal error: header.hpp: No such file or directory
compilation terminated.


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