According to Bill Currie:
function DecToBin( DecInput : string ) : wrkstring; [...] trunkuti.pas: In function `Dectobin': trunkuti.pas:332: prior parameter's size depends on `Decinput' make.exe: *** [trunkuti.o] Error 1
Sorry, but I cannot reproduce the bug here. Please try to isolate the bug in a short, useless test program you can post here.
Thanks for your cooperation,
Peter
Dipl.-Phys. Peter Gerwinski, Essen, Germany, free physicist and programmer peter.gerwinski@uni-essen.de - http://home.pages.de/~peter.gerwinski/ [970201] maintainer GNU Pascal [970624] - http://home.pages.de/~gnu-pascal/ [970125]
Peter Gerwinski wrote:
According to Bill Currie:
function DecToBin( DecInput : string ) : wrkstring; [...] trunkuti.pas: In function `Dectobin': trunkuti.pas:332: prior parameter's size depends on `Decinput' make.exe: *** [trunkuti.o] Error 1
Sorry, but I cannot reproduce the bug here. Please try to isolate the bug in a short, useless test program you can post here.
I TRIED, but it went away. I suspect it might have something to do with the other units used, I was more hoping for an explanation of what the message meant so I could figure out what to look for.
Thanks for your cooperation,
I'll keep trying to reproduce the error in a smaller file.
Bill
Bill Currie wrote:
Peter Gerwinski wrote:
According to Bill Currie:
function DecToBin( DecInput : string ) : wrkstring; [...] trunkuti.pas: In function `Dectobin': trunkuti.pas:332: prior parameter's size depends on `Decinput' make.exe: *** [trunkuti.o] Error 1
I'll keep trying to reproduce the error in a smaller file.
Right, Success!! I've managed to reproduce the error in a smaller file. If I comment out the parameters (or the body of the function) in the implementation section, the error disapears. In the real file, the ReadStr causes an abort when the implementation paramteters are commented out (interface decl same as always).
I have not yet been able to reproduce the abort.
The command line used is:
gpc -O2 -c -o foo.o foo.pas
Bill
Quick update: commenting out the ReadStr line causes the error to go away.