Hello, all.
Using bash, I can capture the full output :-) I think bash and I are going to be friends.
Toby
Reading specs from c:/gpc/lib/gcc-lib/djgpp/2.952/specs gpc version 20000725, based on 2.95.2 19991024 (release) c:/gpc/lib/gcc-lib/djgpp/2.952/gpcpp.exe -lang-pascal -v -famtmpfile=c:/gpc/tmp\ccaan0li -fdelphi-comments -D__GNU_PASCAL__ -undef -D__GNUC__=2 -D__GNUC_MINOR__=95 -D__GPC__=2 -D__GPC_MINOR__=0 -D__GPC_RELEASE__=20000725 -D__BITS_LITTLE_ENDIAN__=1 -D__BYTES_LITTLE_ENDIAN__=1 -D__WORDS_LITTLE_ENDIAN__=1 -Dunix -Di386 -DGO32 -DDJGPP=2 -DMSDOS -D__OS_DOS__=1 -D__unix__ -D__i386__ -D__GO32__ -D__DJGPP__=2 -D__MSDOS__ -D__OS_DOS__=1 -D__unix -D__i386 -D__GO32 -D__DJGPP=2 -D__MSDOS -Asystem(unix) -Asystem(msdos) -Acpu(i386) -Amachine(i386) -Acpu(i386) -Amachine(i386) -Di386 -D__i386 -D__i386__ -D__tune_pentium__ -imacros c:/gpc/lib/../include/sys/version.h -remap taste.pas c:/gpc/tmp\ccban0li.i GNU Pascal Compiler PreProcessor version 2.95.2 19991024 (release) (80386, BSD syntax) #include "..." search starts here: #include <...> search starts here: c:/gpc/lang/pascal c:/gpcinclude c:/gpc/contrib/grx20/include /usr/local/include JDIR/i586-pc-msdosdjgpp/include $DJDIR/lib/gcc-lib/djgpp/2.952/include $DJDIR/include End of search list. c:/gpc/lib/gcc-lib/djgpp/2.952/gpc1.exe c:/gpc/tmp\ccban0li.i -quiet -dumpbase taste.pas -version -famtmpfile=c:/gpc/tmp\ccaan0li -o c:/gpc/tmp\ccban0li.s GNU Pascal version 2.95.2 19991024 (release) (djgpp) compiled by GNU C version 2.95.2 19991024 (release). c:/gpc/bin/as.exe -o c:/gpc/tmp\ccban0li1.o c:/gpc/tmp\ccban0li.s c:/gpc/lib/gcc-lib/djgpp/2.952/collect2.exe -o taste.exe c:/gpc/lib/crt0.o -Lc:/gpc/lib -Lc:/gpc/lib/gcc-lib/djgpp/2.952 -Lc:/gpc/bin -Lc:/gpc/lib c:/gpc/tmp\ccban0li1.o -lgpc -lm -lgcc -lc -lgcc -Tdjgpp.djl c:/gpc/tmp\ccban0li1.o(.text+0x839):taste.pas: undefined reference to `GrBlack' c:/gpc/tmp\ccban0li1.o(.text+0x841):taste.pas: undefined reference to `GrWhite' c:/gpc/tmp\ccban0li1.o(.text+0x875):taste.pas: undefined reference to `GrTextXY' c:/gpc/tmp\ccban0li1.o(.text+0x904):taste.pas: undefined reference to `GrSetMode' c:/gpc/tmp\ccban0li1.o(.text+0x916):taste.pas: undefined reference to `GrBlack' c:/gpc/tmp\ccban0li1.o(.text+0x91e):taste.pas: undefined reference to `GrWhite' c:/gpc/tmp\ccban0li1.o(.text+0x92f):taste.pas: undefined reference to `GrTextXY' c:/gpc/tmp\ccban0li1.o(.text+0x937):taste.pas: undefined reference to `GrMouseDetect' c:/gpc/tmp\ccban0li1.o(.text+0x947):taste.pas: undefined reference to `GrMouseEventMode' c:/gpc/tmp\ccban0li1.o(.text+0x94f):taste.pas: undefined reference to `GrMouseInit' c:/gpc/tmp\ccban0li1.o(.text+0x954):taste.pas: undefined reference to `GrMouseDisplayCursor' c:/gpc/tmp\ccban0li1.o(.text+0x988):taste.pas: undefined reference to `GrMouseGetEvent' c:/gpc/tmp\ccban0li1.o(.text+0x9cb):taste.pas: undefined reference to `init_Grx20' collect2: ld returned 1 exit status
Robert P. Ewing wrote:
Using bash, I can capture the full output :-) I think bash and I are going to be friends.
That's a good idea, anyway :-), but just for the record...
But when I try to compile something that uses grx, I don't succeed. From the command line (and sorry, Frank, but redir simply doesn't work on my system: it creates the file, and puts nothing into it),
How did you call redir? You should write the command to be redirected after it (maybe I was unclear on this), e.g.:
redir -e logfile gpc foo.pas
Frank
OK, one last message and I have to run.
Just for good measure, I put a second copy of libgrx20.a in the regular library directory (lib/gcc-lib/djgpp/2.952). Then from the command line, I issued gpc --automake -v -o taste.exe taste.pas 2> progress.dat
progress.dat then has the following: Reading specs from c:/gpc/lib/gcc-lib/djgpp/2.952/specs gpc version 20000725, based on 2.95.2 19991024 (release) c:/gpc/lib/gcc-lib/djgpp/2.952/gpcpp.exe -lang-pascal -v -famtmpfile=c:/gpc/tmp\ccaqlmui -fautomake -fdelphi-comments -D__GNU_PASCAL__ -undef -D__GNUC__=2 -D__GNUC_MINOR__=95 -D__GPC__=2 -D__GPC_MINOR__=0 -D__GPC_RELEASE__=20000725 -D__BITS_LITTLE_ENDIAN__=1 -D__BYTES_LITTLE_ENDIAN__=1 -D__WORDS_LITTLE_ENDIAN__=1 -Dunix -Di386 -DGO32 -DDJGPP=2 -DMSDOS -D__OS_DOS__=1 -D__unix__ -D__i386__ -D__GO32__ -D__DJGPP__=2 -D__MSDOS__ -D__OS_DOS__=1 -D__unix -D__i386 -D__GO32 -D__DJGPP=2 -D__MSDOS -Asystem(unix) -Asystem(msdos) -Acpu(i386) -Amachine(i386) -Acpu(i386) -Amachine(i386) -Di386 -D__i386 -D__i386__ -D__tune_pentium__ -imacros c:/gpc/lib/../include/sys/version.h -remap taste.pas c:/gpc/tmp\ccbqlmui.i GNU Pascal Compiler PreProcessor version 2.95.2 19991024 (release) (80386, BSD syntax) #include "..." search starts here: #include <...> search starts here: c:/gpc/lang/pascal c:/gpcinclude c:/gpc/contrib/grx20/include /usr/local/include JDIR/i586-pc-msdosdjgpp/include $DJDIR/lib/gcc-lib/djgpp/2.952/include $DJDIR/include End of search list. c:/gpc/lib/gcc-lib/djgpp/2.952/gpc1.exe c:/gpc/tmp\ccbqlmui.i -quiet -dumpbase taste.pas -version -famtmpfile=c:/gpc/tmp\ccaqlmui -fautomake -o c:/gpc/tmp\ccbqlmui.s GNU Pascal version 2.95.2 19991024 (release) (djgpp) compiled by GNU C version 2.95.2 19991024 (release). Reading specs from c:/gpc/lib/gcc-lib/djgpp/2.952/specs gpc version 20000725, based on 2.95.2 19991024 (release) c:/gpc/lib/gcc-lib/djgpp/2.952/gpcpp.exe -lang-pascal -v -fautomake -famtmpfile=c:/gpc/tmp\ccaqlmui -fdelphi-comments -D__GNU_PASCAL__ -M -undef -D__GNUC__=2 -D__GNUC_MINOR__=95 -D__GPC__=2 -D__GPC_MINOR__=0 -D__GPC_RELEASE__=20000725 -D__BITS_LITTLE_ENDIAN__=1 -D__BYTES_LITTLE_ENDIAN__=1 -D__WORDS_LITTLE_ENDIAN__=1 -Dunix -Di386 -DGO32 -DDJGPP=2 -DMSDOS -D__OS_DOS__=1 -D__unix__ -D__i386__ -D__GO32__ -D__DJGPP__=2 -D__MSDOS__ -D__OS_DOS__=1 -D__unix -D__i386 -D__GO32 -D__DJGPP=2 -D__MSDOS -Asystem(unix) -Asystem(msdos) -Acpu(i386) -Amachine(i386) -Acpu(i386) -Amachine(i386) -Di386 -D__i386 -D__i386__ -D__tune_pentium__ -imacros c:/gpc/lib/../include/sys/version.h -remap grx20.pas -o c:/gpc/tmp\ccaaaaaa GNU Pascal Compiler PreProcessor version 2.95.2 19991024 (release) (80386, BSD syntax) #include "..." search starts here: #include <...> search starts here: c:/gpc/lang/pascal c:/gpcinclude c:/gpc/contrib/grx20/include /usr/local/include JDIR/i586-pc-msdosdjgpp/include $DJDIR/lib/gcc-lib/djgpp/2.952/include $DJDIR/include End of search list. c:/gpc/bin/as.exe -o c:/gpc/tmp\ccbqlmui1.o c:/gpc/tmp\ccbqlmui.s c:/gpc/lib/gcc-lib/djgpp/2.952/collect2.exe -o taste.exe c:/gpc/lib/crt0.o -Lc:/gpc/lib -Lc:/gpc/lib/gcc-lib/djgpp/2.952 -Lc:/gpc/bin -Lc:/gpc/lib grx20.o c:/gpc/tmp\ccbqlmui1.o -lgrx20 -lgpc -lm -lgcc -lc -lgcc -Tdjgpp.djl c:/gpc/bin/ld.exe: cannot find -lgrx20 collect2: ld returned 1 exit status
So the grx20 library is still lost in space, though it actually is in two places - contrib/grx232/lib/dj2, and lib/gcc-lib/djgpp/2.952, both of which are referenced as library locations.
Toby
"Robert P. Ewing" a écrit :
OK, one last message and I have to run.
Just for good measure, I put a second copy of libgrx20.a in the regular library directory (lib/gcc-lib/djgpp/2.952). Then from the command line, I issued gpc --automake -v -o taste.exe taste.pas 2> progress.dat
you need to type instead
gpc --automake -v -o taste.exe taste.pas -lgrx20 2> progress.dat ^^^^^^^ grx20 is not one of the gpc default libraries
within rhide you should click Option/Libraries add there grx20 and check [x] the corresponding line
Maurice
"Robert P. Ewing" a écrit :
OK, one last message and I have to run.
Just for good measure, I put a second copy of libgrx20.a in the regular library directory (lib/gcc-lib/djgpp/2.952). Then from the command line, I issued gpc --automake -v -o taste.exe taste.pas 2> progress.dat
progress.dat then has the following: Reading specs from c:/gpc/lib/gcc-lib/djgpp/2.952/specs gpc version 20000725, based on 2.95.2 19991024 (release) c:/gpc/lib/gcc-lib/djgpp/2.952/gpcpp.exe -lang-pascal -v -famtmpfile=c:/gpc/tmp\ccaqlmui -fautomake -fdelphi-comments -D__GNU_PASCAL__ -undef -D__GNUC__=2 -D__GNUC_MINOR__=95 -D__GPC__=2 -D__GPC_MINOR__=0 -D__GPC_RELEASE__=20000725 -D__BITS_LITTLE_ENDIAN__=1 -D__BYTES_LITTLE_ENDIAN__=1 -D__WORDS_LITTLE_ENDIAN__=1 -Dunix -Di386 -DGO32 -DDJGPP=2 -DMSDOS -D__OS_DOS__=1 -D__unix__ -D__i386__ -D__GO32__ -D__DJGPP__=2 -D__MSDOS__ -D__OS_DOS__=1 -D__unix -D__i386 -D__GO32 -D__DJGPP=2 -D__MSDOS -Asystem(unix) -Asystem(msdos) -Acpu(i386) -Amachine(i386) -Acpu(i386) -Amachine(i386) -Di386 -D__i386 -D__i386__ -D__tune_pentium__ -imacros c:/gpc/lib/../include/sys/version.h -remap taste.pas c:/gpc/tmp\ccbqlmui.i GNU Pascal Compiler PreProcessor version 2.95.2 19991024 (release) (80386, BSD syntax) #include "..." search starts here: #include <...> search starts here: c:/gpc/lang/pascal c:/gpcinclude c:/gpc/contrib/grx20/include /usr/local/include JDIR/i586-pc-msdosdjgpp/include $DJDIR/lib/gcc-lib/djgpp/2.952/include $DJDIR/include End of search list. c:/gpc/lib/gcc-lib/djgpp/2.952/gpc1.exe c:/gpc/tmp\ccbqlmui.i -quiet -dumpbase taste.pas -version -famtmpfile=c:/gpc/tmp\ccaqlmui -fautomake -o c:/gpc/tmp\ccbqlmui.s GNU Pascal version 2.95.2 19991024 (release) (djgpp) compiled by GNU C version 2.95.2 19991024 (release). Reading specs from c:/gpc/lib/gcc-lib/djgpp/2.952/specs gpc version 20000725, based on 2.95.2 19991024 (release) c:/gpc/lib/gcc-lib/djgpp/2.952/gpcpp.exe -lang-pascal -v -fautomake -famtmpfile=c:/gpc/tmp\ccaqlmui -fdelphi-comments -D__GNU_PASCAL__ -M -undef -D__GNUC__=2 -D__GNUC_MINOR__=95 -D__GPC__=2 -D__GPC_MINOR__=0 -D__GPC_RELEASE__=20000725 -D__BITS_LITTLE_ENDIAN__=1 -D__BYTES_LITTLE_ENDIAN__=1 -D__WORDS_LITTLE_ENDIAN__=1 -Dunix -Di386 -DGO32 -DDJGPP=2 -DMSDOS -D__OS_DOS__=1 -D__unix__ -D__i386__ -D__GO32__ -D__DJGPP__=2 -D__MSDOS__ -D__OS_DOS__=1 -D__unix -D__i386 -D__GO32 -D__DJGPP=2 -D__MSDOS -Asystem(unix) -Asystem(msdos) -Acpu(i386) -Amachine(i386) -Acpu(i386) -Amachine(i386) -Di386 -D__i386 -D__i386__ -D__tune_pentium__ -imacros c:/gpc/lib/../include/sys/version.h -remap grx20.pas -o c:/gpc/tmp\ccaaaaaa GNU Pascal Compiler PreProcessor version 2.95.2 19991024 (release) (80386, BSD syntax) #include "..." search starts here: #include <...> search starts here: c:/gpc/lang/pascal c:/gpcinclude c:/gpc/contrib/grx20/include /usr/local/include JDIR/i586-pc-msdosdjgpp/include $DJDIR/lib/gcc-lib/djgpp/2.952/include $DJDIR/include End of search list. c:/gpc/bin/as.exe -o c:/gpc/tmp\ccbqlmui1.o c:/gpc/tmp\ccbqlmui.s c:/gpc/lib/gcc-lib/djgpp/2.952/collect2.exe -o taste.exe c:/gpc/lib/crt0.o -Lc:/gpc/lib -Lc:/gpc/lib/gcc-lib/djgpp/2.952 -Lc:/gpc/bin -Lc:/gpc/lib grx20.o c:/gpc/tmp\ccbqlmui1.o -lgrx20 -lgpc -lm -lgcc -lc -lgcc -Tdjgpp.djl c:/gpc/bin/ld.exe: cannot find -lgrx20 collect2: ld returned 1 exit status
So the grx20 library is still lost in space, though it actually is in two places - contrib/grx232/lib/dj2, and lib/gcc-lib/djgpp/2.952, both of which are referenced as library locations.
With exactly the same command (under bash 2.03) I get
Reading specs from c:/djgpp/lib/gcc-lib/djgpp/2.952/specs gpc version 20000727, based on 2.95.2 19991024 (release) c:/djgpp/lib/gcc-lib/djgpp/2.952/gpcpp.exe -lang-pascal -v -famtmpfile=c:/djgpp/tmp\ccaq50vh -fautomake -fdelphi-comments -D__GNU_PASCAL__ -undef -D__GNUC__=2 -D__GNUC_MINOR__=95 -D__GPC__=2 -D__GPC_MINOR__=0 -D__GPC_RELEASE__=20000727 -D__BITS_LITTLE_ENDIAN__=1 -D__BYTES_LITTLE_ENDIAN__=1 -D__WORDS_LITTLE_ENDIAN__=1 -Dunix -Di386 -DGO32 -DDJGPP=2 -DMSDOS -D__OS_DOS__=1 -D__unix__ -D__i386__ -D__GO32__ -D__DJGPP__=2 -D__MSDOS__ -D__OS_DOS__=1 -D__unix -D__i386 -D__GO32 -D__DJGPP=2 -D__MSDOS -Asystem(unix) -Asystem(msdos) -Acpu(i386) -Amachine(i386) -Acpu(i386) -Amachine(i386) -Di386 -D__i386 -D__i386__ -D__tune_pentium__ -imacros c:/djgpp/lib/../include/sys/version.h -remap taste.pas c:/djgpp/tmp\ccbq50vh.i GNU Pascal Compiler PreProcessor version 2.95.2 19991024 (release) (80386, BSD syntax) #include "..." search starts here: #include <...> search starts here: c:/djgpp/lang/pascal c:/djgpp/include c:/djgpp/contrib/grx232/include /usr/local/include JDIR/i586-pc-msdosdjgpp/include $DJDIR/lib/gcc-lib/djgpp/2.952/include $DJDIR/include End of search list. c:/djgpp/lib/gcc-lib/djgpp/2.952/gpc1.exe c:/djgpp/tmp\ccbq50vh.i -quiet -dumpbase taste.pas -version -famtmpfile=c:/djgpp/tmp\ccaq50vh -fautomake -o c:/djgpp/tmp\ccbq50vh.s GNU Pascal version 2.95.2 19991024 (release) (djgpp) compiled by GNU C version 2.95.2 19991024 (release). Reading specs from c:/djgpp/lib/gcc-lib/djgpp/2.952/specs gpc version 20000727, based on 2.95.2 19991024 (release) c:/djgpp/lib/gcc-lib/djgpp/2.952/gpcpp.exe -lang-pascal -v -fautomake -famtmpfile=c:/djgpp/tmp\ccaq50vh -fdelphi-comments -D__GNU_PASCAL__ -M -undef -D__GNUC__=2 -D__GNUC_MINOR__=95 -D__GPC__=2 -D__GPC_MINOR__=0 -D__GPC_RELEASE__=20000727 -D__BITS_LITTLE_ENDIAN__=1 -D__BYTES_LITTLE_ENDIAN__=1 -D__WORDS_LITTLE_ENDIAN__=1 -Dunix -Di386 -DGO32 -DDJGPP=2 -DMSDOS -D__OS_DOS__=1 -D__unix__ -D__i386__ -D__GO32__ -D__DJGPP__=2 -D__MSDOS__ -D__OS_DOS__=1 -D__unix -D__i386 -D__GO32 -D__DJGPP=2 -D__MSDOS -Asystem(unix) -Asystem(msdos) -Acpu(i386) -Amachine(i386) -Acpu(i386) -Amachine(i386) -Di386 -D__i386 -D__i386__ -D__tune_pentium__ -imacros c:/djgpp/lib/../include/sys/version.h -remap grx20.pas -o c:/djgpp/tmp\ccaaaaaa GNU Pascal Compiler PreProcessor version 2.95.2 19991024 (release) (80386, BSD syntax) #include "..." search starts here: #include <...> search starts here: c:/djgpp/lang/pascal c:/djgpp/include c:/djgpp/contrib/grx232/include /usr/local/include JDIR/i586-pc-msdosdjgpp/include $DJDIR/lib/gcc-lib/djgpp/2.952/include $DJDIR/include End of search list. c:/djgpp/bin/as.exe -o c:/djgpp/tmp\ccbq50vh1.o c:/djgpp/tmp\ccbq50vh.s c:/djgpp/lib/gcc-lib/djgpp/2.952/collect2.exe -o taste.exe c:/djgpp/lib/crt0.o -Lc:/djgpp/lib -Lc:/djgpp/contrib/grx232/lib/dj2 -Lc:/djgpp/lib/gcc-lib/djgpp/2.952 -Lc:/djgpp/bin -Lc:/djgpp/lib grx20.o c:/djgpp/tmp\ccbq50vh1.o -lgrx20 -lgpc -lm -lgcc -lc -lgcc -Tdjgpp.djl c:/djgpp/bin/stubify.exe -v taste.exe
So it works. The only difference I see is the -Lc:/djgpp/contrib/grx232/lib/dj2 in the last stage which is missing in yours.
So probably there something wrong in your djgpp.env , not entirely wrong because the include list contains c:/djgpp/contrib/grx232/include
But I see no difference of mine with yours. I give mine as an attachment (to avoid line cutting as when it is in the message itself). Try to use it
Maurice
In rereading I see that you have also in your include list c:/gpcinclude instead of c:/gpc/include. This also points to a corrupted djgpp.env file.