• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
__FILE__ relative path?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

__FILE__ relative path?


  • Subject: __FILE__ relative path?
  • From: Alex Eddy <email@hidden>
  • Date: Thu, 10 Mar 2005 06:07:14 -0800

Is it possible to get gcc to output just the source file name for __FILE__, without the entire absolute path?

e.g. "foo.c" instead of "Users/somebody/project/source/subfolder/foo.c"?

Comparing some large source trees built with both Codewarrior and gcc, it looks like CW does this, but I don't see any flag to make gcc do it...

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: __FILE__ relative path?
      • From: Eric Albert <email@hidden>
  • Prev by Date: Xcode Carbon Dynamic Lybrary Development
  • Next by Date: Debugger and STL
  • Previous by thread: Re: Xcode Carbon Dynamic Lybrary Development
  • Next by thread: Re: __FILE__ relative path?
  • Index(es):
    • Date
    • Thread