Toby
Robert P. Ewing a écrit:
I tried, as you suggested, doing a redir -oe -o ....... I got nothing -- Nothing! -- in the test1.out (redirected output) file, lots of stuff on the screen.
The reason is that you must type redir -o out.lst -eo ... in that order (redir output to out.lst and then error to output) I had made the mistake in my previous mail.
To compare I have done this on my system, and out.lst is attached.
redir -o out.lst -eo gpc -g -v --automake="-g" -o blt_test.exe blt_test.pas -lgrx20
Notice the parameter ="-g" to automake. With no parameter I got a SIGSEGV error if the unit grx20.pas had indeed to be recompiled (probably only in that case gpc looks for parameters to automake). This seems a new bug in gpc. But I may have not noticed it before because I usually give always some parameters to automake.
So I made notes about where the original files were, made backup copies, and traded in your files, being sure to move specs to c:\gpc\lib\gcc-lib\djgpp\2.81. (I put djgpp.djl in c:\gpc\lib.
no djgpp.djl belongs also to c:\gpc\lib\gcc-lib\djgpp\2.81 in addition by looking to the attached out.lst I have noticed that an other file crtf.o is needed in that directory (and not contained in the djgpp binary distribution). I give it also to you in attachment.
Those two files djgpp.djl and crtf.o should be included in future betas, to avoid troubles for people like you who work only in pascal (all this stuff otherwise comes with gcc).
The relevant parts are, from gpc -g -v --automake -o blt_test.exe c:\gpc\pascal\blt_test.pas -lgrx20 are:
you should first cd \gpc\pascal and then from there issue the command: the path is no more necesary
reading specs from c:\gpc\lib\gcc-lib\djgpp\2.81\specs gpc version 19980830, based on gcc 2.8.1 {then there's a 6-line translated command line...} #include "..." search starts here: #include <...> search starts here: /usr/local/include $DJDIR/djgpp/include $DJDIR/lib/gcc-lib/djgpp/2.81/include /usr/include end of search list c:\gpc\lib\gcc-lib\djgpp\2.81\gpc1.exe c:/gpc/tmp\ccbaaaa -quiet -dumpbase blt _test.pas -g -version -famtmpfile=blttest.gpc -fautomake -o c:/gpc/tmp\cccaaaa
GNU Pascal version 2.8.1 (djgpp) compiled by GNU C version 2.8.1 c:\gpc\pascal\blt_test.pas:3: module '*' could not be compiled
where, on the last line, the * is ascii 5, the "club" from playing cards.
Well you should really compile from within the directory c:\gpc\pascal I do not like this syntax c:\gpc\pascal\blt_test.pas:3, even if it is logical \ have to be escaped in unix shells: gpc obviously reads wrongly the file.
Good luck