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=0.2 required=5.0 tests=BAYES_00,INVALID_MSGID, REPLYTO_WITHOUT_TO_CC 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: Stephen Leake Subject: Re: GNAT NT 3.09 Search Path Date: 1997/02/24 Message-ID: <3311BA91.3D9B@gsfc.nasa.gov>#1/1 X-Deja-AN: 221082163 References: <33083429.1726@netspace.net.au> <01bc1ccb$efa2e460$278c71a5@dhoossr.iquest.com> <33102E86.ACD@reading.ac.uk> Content-Type: text/plain; charset=us-ascii Organization: NASA Goddard Space Flight Center -- Greenbelt, Maryland USA Mime-Version: 1.0 Reply-To: Stephen.Leake@gsfc.nasa.gov Newsgroups: comp.lang.ada X-Mailer: Mozilla 3.0 (Win95; U) Date: 1997-02-24T00:00:00+00:00 List-Id: William Paul Berriss 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. It sounds like you are running under bash, which spawns a sub-process for each command. So in the first scenario, you define ADA_INCLUDE_PATH in a sub-process, which then exits, losing the definition. In the second scenario, you define ADA_INCLUDE_PATH in your main process, and all is well. If you are running in a DOS window, I'm confused too. Perhaps you could post an exact log of what you type; that should make things clearer. > Is this because I have just one directory in the ADA_INCLUDE_PATH > and so I have no problems with forward slashes and colons? > I will try this ASAP. > > I hope so as it really confused me. This is one reason I always use a makefile, and explicitly put "-I/ada/eeg" etc in the commands. That way, when I give the make file to someone else, I never have to remember to also give them the ADA_INCLUDE_PATH definition. > > Will Berriss > ============= -- - Stephe