[Issue 278] New: dmd.conf search path dosn't work

Bruno Medeiros brunodomedeirosATgmail at SPAM.com
Tue Aug 8 08:33:39 PDT 2006


Sean Kelly wrote:
> 
> I was being lazy and trying to avoid starting my Linux VM :-)  But I 
> just wrote an app like the above, compiled it as "app", moved the 
> executable to /dmd/bin, and ran it.  As suspected, argv[0] was "app" and 
> not "/dmd/bin/app" as the DMD front-end seems to expect.  I also 
> couldn't find a built-in way to determine the location of the executing 
> process, so it may be that DMD will have to iterate across the PATH list 
> as Build does.
> 
> 
> Sean

When argv[0] isn't an absolute path, then isn't the location of the 
executing process file =  CWD ~ argv[0] ?

-- 
Bruno Medeiros - MSc in CS/E student
http://www.prowiki.org/wiki4d/wiki.cgi?BrunoMedeiros#D



More information about the Digitalmars-d-bugs mailing list