Mail Archives: djgpp/2000/01/02/00:12:39
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
Reading specs from c:/djgpp/lib/specs
gcc version 2.95.2 19991024 (release)
c:/djgpp/lib/gcc-lib/djgpp/2.952/cpp.exe -lang-c -v -isystem
c:/djgpp/bin/inclu
de -D__GNUC__=2 -D__GNUC_MINOR__=95 -Dunix -Di386 -DGO32 -DMSDOS -DDJGPP=2
-DDJG
PP_MINOR=2 -D__unix__ -D__i386__ -D__GO32__ -D__MSDOS__ -D__DJGPP__=2
-D__DJGPP_
MINOR__=2 -D__unix -D__i386 -D__GO32 -D__MSDOS -D__DJGPP=2 -D__DJGPP_MINOR=2
hel
lo.c c:/djgpp/tmp\ccRhAheU.i
GNU CPP version 2.95.2 19991024 (release) (80386, BSD syntax)
#include "..." search starts here:
#include <...> search starts here:
c:/djgpp/lib/gcc-lib/djgpp/2.952/include <--------------No MGL!
c:/djgpp/include
End of search list.
The following default directories have been omitted from the search path:
PRIVATEDJDIRDJDIR
$DJDIR/lang/cxx
$DJDIR/lib/gcc-lib/djgpp/2.952/../../../../djgpp/include
End of omitted list.
In file included from hello.c:37:
mgraph.h:44: scitech.h: No such file or directory (ENOENT)
mgraph.h:48: mgl/mglver.h: No such file or directory (ENOENT)
mgraph.h:3235: mgl3d.h: No such file or directory (ENOENT)
mgraph.h:3246: mgldos.h: No such file or directory (ENOENT)
C:\SCITECH\EXAMPLES\MGL\SAMPLES>
Eli Zaretskii wrote:
> Andrea Ryan wrote:
> >
> > set C_INCLUDE_PATH=C:\Scitech\Include
> > set CPLUS_INCLUDE_PATH=C:\Scitech\Include
> > set C_LIBRARY_PATH=c:\Scitech\Lib\Dos32\Dj2
> > set CPLUS_LIBRARY_PATH=C:\Scitech\Lib\Dos32\Dj2
> > set CPLUS_LIBRARY_PATH=C:\Djgpp\lang\cxx
>
> The last setting overrides the one before it. I think you can safely
> remove the last line, because C:\DJGPP\LANG\CXX does not contain
> libraries, only header files (and is searched automatically for C++
> headers).
>
> Other than that, I don't spot anything wrong with these settings. Make
> sure they are indeed in effect in the same DOS box where you run the
> compiler, by typing "set [Enter]" in that box. You should see the above
> lines (but without the "set " part).
>
> If this still doesn't work, add -v to the compilation command and see
> what directories does the compiler search for header files.
- Raw text -