From: mikegee AT creator DOT dp DOT ua (Mike Gee) Newsgroups: comp.os.msdos.djgpp Subject: Re: Include Paths Date: Sun, 2 Jan 2000 23:57:09 +0200 Organization: ISP "Creator OnLine" Lines: 61 Message-ID: References: <386BFAF0 DOT 637140AD AT global2000 DOT net> <386C7D75 DOT 5C133888 AT is DOT elta DOT co DOT il> <386EC613 DOT A7B4FA10 AT global2000 DOT net> NNTP-Posting-Host: ltty11.dnepr.net.ua X-Trace: ontario.dnepr.net.ua 946850352 38862 195.248.169.27 (2 Jan 2000 21:59:12 GMT) X-Complaints-To: abuse AT dnepr DOT net DOT ua NNTP-Posting-Date: 2 Jan 2000 21:59:12 GMT X-Newsreader: MicroPlanet Gravity v2.12 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Hi Brendan! Please don't change subject abruptly like you just did from "MGL & DJGPP" to "Include Paths" - I nearly missed your post because of that. In article <386EC613 DOT A7B4FA10 AT global2000 DOT net>, Sat, 01 Jan 2000 22:29:23 -0500, Andrea Ryan says... > DJGPP didn't search the Scitech directories and the MGL headers were not > found. > Brendan Ryan > > C:\SCITECH\EXAMPLES\MGL\SAMPLES>gcc hello.c -o hello.exe -v One more time, the very quick fix to your problem would be invoking GCC with -I and -L options, like this: gcc -IC:\SCITECH\INCLUDE -LC:\SCITECH\LIB\DOS32\DJ2 hello.c -o hello.exe -v where -I specifies paths to include directories, and -L specifies paths to library directories. I suggest you use this as a workaround, until you solve your problem with environment. Other than that, you're setting environment variables improperly. set CPLUS_LIBRARY_PATH=C:\Scitech\Lib\Dos32\Dj2 set CPLUS_LIBRARY_PATH=C:\Djgpp\lang\cxx second SET command cancels out first command; if you want to add path to existing variable, you need to do it this way: set CPLUS_LIBRARY_PATH=C:\Scitech\Lib\Dos32\Dj2 set CPLUS_LIBRARY_PATH=%CPLUS_LIBRARY_PATH%;C:\Djgpp\lang\cxx Note that if environment variable don't exist, then appending will result in invalid path, i.e. rem Set to empty string will remove environment variable set CPLUS_LIBRARY_PATH= rem Now we try to append to non-existing variable - rem - this will lead to invalid path set CPLUS_LIBRARY_PATH=%CPLUS_LIBRARY_PATH%;C:\Djgpp\lang\cxx BTW I can't find CPLUS_LIBRARY_PATH in docs on GCC, so this your setting probably don't affect compilation at all, just wasting environment space. Please post your SET output, like Eli Zaretskii asked you. And please disregard my advice to run startmgl.bat before compiling with MGL. Just looked into it - by default it overwrites file djgpp.env with it's own version without warning and backup, which is Bad Thing(tm). Didn't notice it earlier - never used those "proper procedures" myself, preferring to set up manually :) Will look into, given enough time. And Happy New Year, folks! -- Best regards, Mike