• 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
Re: __FILE__ is absolute, howto get relative?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: __FILE__ is absolute, howto get relative?


  • Subject: Re: __FILE__ is absolute, howto get relative?
  • From: Markus Hitter <email@hidden>
  • Date: Wed, 9 Nov 2005 03:06:39 +0100


Am 08.11.2005 um 23:53 schrieb Simon Strandgaard:

Any __FILE__ alternative that yields a path relative to the project?

cout << "file: " << __FILE__ << endl;
file: /Users/simonstrandgaard/code/wc/repo/aeditor/experimental.mm

I might be wrong on that, but it should be a matter of how you invoke the compilation.


cd /Users/simonstrandgaard/code/wc/repo/aeditor/ && gcc experimantal.mm

should give you what you want.


Markus

- - - - - - - - - - - - - - - - - - -
Dipl. Ing. Markus Hitter
http://www.jump-ing.de/




_______________________________________________ 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__ is absolute, howto get relative?
      • From: Simon Strandgaard <email@hidden>
References: 
 >__FILE__ is absolute, howto get relative? (From: Simon Strandgaard <email@hidden>)

  • Prev by Date: Re: Fix & continue, beep
  • Next by Date: Re: xcodebuild can't find gcc?
  • Previous by thread: Re: __FILE__ is absolute, howto get relative?
  • Next by thread: Re: __FILE__ is absolute, howto get relative?
  • Index(es):
    • Date
    • Thread