This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]