From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,d427e558e79b637a X-Google-Attributes: gid103376,public From: je@bton.ac.uk (John English) Subject: Re: GNAT NT 3.09 Search Path Date: 1997/02/25 Message-ID: <5euebq$4e8@saturn.brighton.ac.uk>#1/1 X-Deja-AN: 221291114 References: <33083429.1726@netspace.net.au> <01bc1ccb$efa2e460$278c71a5@dhoossr.iquest.com> <33102E86.ACD@reading.ac.uk> Organization: University of Brighton Newsgroups: comp.lang.ada Date: 1997-02-25T00:00:00+00:00 List-Id: 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 | ---------------------------------------------------------------