Ok. Peter, I'm going to put what the compiler says with those commands you gave me. But first, I think it's related with djgpp.env, I write there the lines the info files said about it. I don't have there the units directory, but the compiler and library paths. Another thing I'll appreciate is if you can tell me the directory and files I need in order to run properly GPC, I guess I have files missing. I read the info files, but finally I build up the directories and put there the files I thought were the proper ones. I guess I had to tell this before. Well to the point. 1. First try. command line> gpc --automake example.pas -o example error> example.pas:3: module/unit `gpc' could not be compiled
2. Second try. command line> gpc -v --automake example.pas -o example error> Reading specs from c:\gpc\lib\specs gpc version 19990503, based on gcc-2.8.1 c:\gpc\bin\gpc-cpp.exe -lang-pascal -v -nocharescape -D__GNU_PASCAL__ -undef -D __GNUC__=2 -D__GNUC_MINOR__=8 -D__GPC__=2 -D__GPC_MINOR__=0 -D__GPC_RELEASE__=19 990503 -Dunix -Di386 -DGO32 -DMSDOS -DDJGPP=2 -DDJGPP_MINOR=2 -D__OS_DOS__=1 -D_ _unix__ -D__i386__ -D__GO32__ -D__MSDOS__ -D__DJGPP__=2 -D__DJGPP_MINOR__=2 -D__ OS_DOS__=1 -D__unix -D__i386 -D__GO32 -D__MSDOS -D__DJGPP=2 -D__DJGPP_MINOR=2 -D __BITS_LITTLE_ENDIAN__=1 -D__BYTES_LITTLE_ENDIAN__=1 -D__WORDS_LITTLE_ENDIAN__=1 example.pas c:/gpc/bin/RHbaaaaa\cccaaaaa GNU CPP version 2.8.1 (80386, BSD syntax) #include "..." search starts here: #include <...> search starts here: c:/gpc/lang/pascal c:/gpc/include c:/gpc/contrib/grx20/include /usr/local/include $DJDIR/djgpp/include $DJDIR/lib/gcc-lib/djgpp/2.81/include /usr/include End of search list. c:\gpc\bin\gpc1.exe c:/gpc/bin/RHbaaaaa\cccaaaaa -m486 -malign-jumps=2 -malign- loops=2 -malign-functions=2 -m486 -malign-jumps=2 -malign-loops=2 -malign-functi ons=2 -quiet -dumpbase example.pas -version -famtmpfile=c:/gpc/bin/RHbaaaaa\ccaa aaaa.gpc -fautomake -o c:/gpc/bin/RHbaaaaa\ccdaaaaa GNU Pascal version 2.8.1 (djgpp) compiled by GNU C version 2.8.1. example.pas:3: module/unit `gpc' could not be compiled
Alejandro Villarroel wrote:
command line> gpc -v --automake example.pas -o example error> Reading specs from c:\gpc\lib\specs gpc version 19990503, based on gcc-2.8.1 c:\gpc\bin\gpc-cpp.exe [...]
Okay, this should be in a directory like c:\djgpp\lib\gcc-lib\djgpp\2.81\ . Obviously something is wrong with your installation ...
What else do you have in your c:\gpc directory? A complete DJGPP installation (with `djgpp.env' etc.)?
Does your installation come with a `gpc.pas' file?
It seems as if you are not using a distribution from our main server ftp://agnes.dida.physik.uni-essen.de/gnu-pascal/ . Where did you get yours from? I recommend to retry with an archive from ftp://agnes.dida.physik.uni-essen.de/gnu-pascal/alpha/binary/ .
Peter