what the path is from memory.h to,auto_ptr.h?

Eric Liang eric.l.2046@gmail.com
Mon Dec 29 12:12:00 GMT 2008


Jan Engelhardt wrote:
> 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 -
>   
It works. Thanks again.
Is there any docs about the output? It looks like a tree, but is hard to
organize.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 260 bytes
Desc: OpenPGP digital signature
URL: <https://gcc.gnu.org/pipermail/gcc-help/attachments/20081229/712ab6d9/attachment.sig>


More information about the Gcc-help mailing list