Boost logo

Boost Users :

Subject: Re: [Boost-users] [Preprocessor] Relative Addresses in BOOST_PP_FILENAME_1
From: Richard Damon (Richard_at_[hidden])
Date: 2011-01-25 11:59:12


On Tue, 25 Jan 2011 04:06:18 -0800 (PST), Hossein Haeri
<powerprogman_at_[hidden]> wrote:

>Dear TONGARI,
>
>> Just make sure "Lib" is in the include path, then everything works fine
>> for me.
>
>So, here is a very strange observation I got after trying to strictly follow the above recommendation of yours: I added my current working directory to the include path and it worked! I always thought that that is already in ones include path (by default). My compilers have always found such files. It even happens that my other files (in the same directory) used to find Header.hpp even despite that strange error I used to get! :O
>
>> It would be fine in the Remarks section to add words like:"quoted
>> filename may not work with some compilers here, such as gcc..."
>
>Agree.
>
>Thanks a lot,
>--Hossein

Some compilers treat the "Current Working Directory" as the directory
of the file currently being processed, not the base directory of the
Project or the top level file being compiled.

The Standard says nothing about directories or "Current Directories",
leaving this up to the implementation.
Richard Damon


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