comp.lang.ada
 help / color / mirror / Atom feed
From: je@bton.ac.uk (John English)
Subject: Re: GNAT NT 3.09 Search Path
Date: 1997/02/25
Date: 1997-02-25T00:00:00+00:00	[thread overview]
Message-ID: <5euebq$4e8@saturn.brighton.ac.uk> (raw)
In-Reply-To: 33102E86.ACD@reading.ac.uk


William Paul Berriss (W.P.Berriss@reading.ac.uk) wrote:
: If I put a line like 
: set ADA_INCLUDE_PATH=C:\windows;C:\ada\eeg;
: plus other directories in a .bat file and run that before running
: gcc, gcc cannot find the necessary library files in the eeg directory.

: BUT

: If I type the command set ADA_INCLUDE_PATH=C:\ada\eeg at
: the DOS prompt myself, just before running gcc then all is OK, 
: it finds files OK.

Are you running the batch file in the same process as you run gcc
from? Otherwise, the environment variables will be set up in the
process that runs the .bat file, and gcc will run in a process
which *doesn't* have them set up. Try (a) a batch file which sets
everything up and then runs gcc, or (b) call the batch file from
your autoexec.bat (so that it's in the parent environment for all
other processes).

HTH.

---------------------------------------------------------------
 John English              | mailto:je@brighton.ac.uk
 Senior Lecturer           | http://www.comp.it.bton.ac.uk/je
 Dept. of Computing        | fax: (+44) 1273 642405
 University of Brighton    |
---------------------------------------------------------------




  parent reply	other threads:[~1997-02-25  0:00 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1997-02-17  0:00 GNAT NT 3.09 Search Path Barry and Jackie Schiff
1997-02-17  0:00 ` David C. Hoos, Sr.
1997-02-17  0:00   ` Richard Kenner
1997-02-18  0:00     ` David C. Hoos, Sr.
1997-02-23  0:00   ` William Paul Berriss
1997-02-23  0:00     ` GNAT W95 " William Paul Berriss
1997-02-24  0:00     ` GNAT NT " Stephen Leake
1997-02-25  0:00       ` Barry and Jackie Schiff
1997-02-24  0:00     ` A Solution to GNAT W95 " William Paul Berriss
1997-02-25  0:00     ` John English [this message]
1997-02-17  0:00 ` GNAT NT " Robert Dewar
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox