On Mon, 26 May 2014, Mattias Gaertner wrote:

Hi all,

When I compile a program with a duplicate $R
directive fpc (2.6.4) gives an error. Unlike other error messages this
error is written to stderr (under Linux and OS X).
Running fpc in a shell seems to always work. The output/stdout and
stderr are both written nicely together.
But when the stderr is redirected (e.g. fpc test.pas 2> errors.txt)
then errors.txt is empty and the stderr error message is lost. And
depending on the quantity of output/stdout some output bytes in front
of the error are missing too.
The same happens when running fpc via TProcess (with or without
poStdErrToOutput).

Is it a bug in fpc or in ppcx64 or in fpcres?

fpcres, I think, because the compiler does not use stderr, to my knowledge...

Michael.
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Reply via email to