On Feb 28, 2008, at 11:53 AM, Keith Bauer wrote:

>> The best way I know that avoids having to hard code the prefix into
>> the executable is by making clang search the "../include/clang" path
>> from its executable.  Is there a good way to do this?
>
> On Mac OS X CFBundle knows how to find the absolute path of the
> executable.  On Linux one can read the symbolic link /proc/self/exe.
> On Windows if you open an app from the GUI, the CWD is the one
> containing the executable, but if you run it on the command-line
> that's presumably not the case... and on other OSes, I don't know of
> any way other than Gordon's suggestion of searching PATH for argv[0].

Ok, I'll see what I can do with argv[0].  If this doesn't work on  
windows, hopefully someone working there can help :)

-Chris
_______________________________________________
cfe-dev mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev

Reply via email to