Mail Archives: djgpp/2000/01/02/19:33:08
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
- Raw text -