This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: __FILE__
- From: christopher anthony sucato <csucato at u dot washington dot edu>
- To: gcc-help at gcc dot gnu dot org
- Date: Thu, 24 Jan 2002 23:09:30 -0800 (PST)
- Subject: Re: __FILE__
Hi, i was hoping somebody could answer a quick question about the
predefined macro __FILE__. when i try using __FILE__ to print the full
name of the source file such as "/usr/me/code/main.cpp" all I get is
"main.cpp". Is there a way to get __FILE__ to display the full path name
to the file???
Thanks for your time,
Chris