[fpc-pascal]PPAS.BAT and directory paths with spaces in them

Thomas Schatzl tom_at_work at yline.com
Fri May 4 20:23:30 CEST 2001

> Can anyone enlighten me as to the origin of PPAS.BAT ?

This file is generated by the compiler and calls the external assembler and
linker to create an executable out of the object code FPC creates.
If this process fails, this file is left on the HD to be called by the user
to complete the linking process.

In your case the linker fails because of the whitespace character in your
path (this is partially the fault of the command shell). If you put
quotation marks in front and after the '-o' parameter it should work fine.

d:\pp\bin\win32\ldw.exe  -s   -b base.$$$ -o "d:\memos\rich
pasco\gentable.exe" link.res

Probably the compiler could be changed to do this automatically. Both the
call to the linker (ldw) and the actual call to the linker should be put in
quotation marks (so that fpc can be installed in directory with whitespaces
in its name too).


More information about the fpc-pascal mailing list