[fpc-pascal] Is $fpctarget defined on all targets?

Jonas Maebe jonas.maebe at elis.ugent.be
Sun Dec 6 17:13:19 CET 2009

On 06 Dec 2009, at 17:01, Aleksa Todorovic wrote:

> I've just started porting an application from Java to FPC (current
> targets are Win32 and Linux). I can successfully compile and run
> initial tests on both targets. The problem I have is with -FU
> parameter. When I execute
> fpc -FUunits/$fpctarget test_client
> on Windows, it correctly outputs .o, .ppu, .a and other generated
> files to units/i386-win32 (btw, I need to create directory i386-win32
> manually).

On Unix platforms, $x is used in shells to denote the contents of shell variable x. If x is undefined, it's considered to be empty.

You therefore have to escape the $: fpc -FUunits/\$fpctarget test_client


More information about the fpc-pascal mailing list