On Thu, Sep 07, 2006 at 02:47:43PM +0200, Kees Bakker wrote: > On Thursday 07 September 2006 05:39, Tristan Gingold wrote: > > On Wed, Sep 06, 2006 at 09:11:19AM +0200, Kees Bakker wrote: > > > On Saturday 19 August 2006 13:53, Tristan Gingold wrote: > > > > On Sat, Aug 19, 2006 at 06:05:15AM -0400, Stephen Leake wrote: > > > > > > > > > In my applications, I compute things like Install_Dir from the path to > > > > > the executable, which is available from the command line information. > > > > This is another possibility. On Unix system this is not reliable. > > > > > > Why not reliable? Our tools do it that way for the last 15 years or so, > > > never > > > had a problem. > > argv[0] may not be strictly correct, argv[0] may be a (symbolic) link. > > These may be theorical issues but if the user meets such an issue he/she > > will > > be lost. > > > > > The fact that a registry key is used to lookup a directory is (at the > > > moment) > > > a hidden factor which we do not like. My next plan is to try (as you > > > suggested) > > > the -P option, and eliminate all registry stuff as follows: > > > > > > * install ghdl 0.25 in C:\ghdl > > > * create a zip > > > * uninstall ghdl > > > * unpack the zip in C:\ghdl-0.25 > > > * run the tool with -P C:\ghdl-0.25 > > > * repeat for other ghdl versions > > > > > > This will fail if something, somehow still uses C:\ghdl to search > > > anything, which > > > is exactly what I want to see. > > Yes you may use --PREFIX= to override the registry stuff. > > The --PREFIX is not in the help. Is it a hidden option? > > C:\TEMP>c:\ghdl-0.24\bin\ghdl -a add001.vhdl --PREFIX=c:\ghdl-0.24 > c:\ghdl-0.24\bin\ghdl:*command-line*: cannot find "std" library > > C:\TEMP>c:\ghdl-0.24\bin\ghdl -a --PREFIX=c:\ghdl-0.24 add001.vhdl > c:\ghdl-0.24\bin\ghdl:*command-line*: cannot find "std" library > > I also tried the --PPATH option, but still no success. > C:\TEMP>c:\ghdl-0.24\bin\ghdl -a add001.vhdl --PPATH=c:\ghdl-0.24 > c:\ghdl-0.24\bin\ghdl:*command-line*: cannot find "std" library > > Any suggestion what I'm doing wrong? Try ghdl --dispconfig and ghdl --dispconfig --PREFIX=xxx The -Ppath is the full library path. You need one for std and one for ieee.
Tristan. _______________________________________________ Ghdl-discuss mailing list [email protected] https://mail.gna.org/listinfo/ghdl-discuss
