[fpc-devel]Having FPC linker errors saved to a file

Marco van de Voort marcov at stack.nl
Thu Jan 8 13:29:56 CET 2004


> Is there a way to have the linker errors saved to a file (under Win32, 1.9.1)
> instead of just listed in the DOS box?
> 
> The -Fe catches compilation errors and messages, but linker issues
> (such "undefined reference to SomeSymbol") are listed only in the DOS Box.
> I've tried to redirect output to a file via a "> errorfile.log" appended at
> the end of the command line, but that doesn't have any effect... only the
> "Error while linking" message goes to the file.
> Any ideas or is it a limitation of ld.exe?

It goes to stderr, and you also have to pipe stderr.

Under dos I believe &> is used to pipe both stderr and stdout to file, under
unix it is >&.  






More information about the fpc-devel mailing list