This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: what the path is from memory.h to,auto_ptr.h?
On Monday 2008-12-29 03:03, Eric Liang wrote:
>>
>>> It looks like that the file<memory> includes the
>>> file<c++/4.3/backward/auto_ptr.h>.But when I open the file<features.h>
>>> which is included in file<memory>,there is a mass of macros and files in
>>> it.It's too difficult for me to continue the search...
>>>
>>> So here is the question:what the path is from memory.h to
>>> auto_ptr.h? or what can I do to find it?
>>
>> echo '#include <memory>' | g++ -E -
>>
>> and watch the #line lines as they essentially form a tree.
>
>Thanks Jan, but after running the command, I've got these as follows:
>
># 1 "<stdin>"
># 1 "<built-in>"
># 1 "<command-line>"
># 1 "<stdin>"
><stdin>:1:18: error: memory: No such file or directory
>
>So, what can I do next?
Ah whoops, seems like you need to explicitly specify C++ mode with -E:
echo ... | g++ -x c++ -E -