[fpc-pascal] how to use macros on linux?
wkitty42 at windstream.net
Mon Apr 14 18:29:00 CEST 2014
when i try to compile a program on my non-GUI linux, it tells me that it can't
find the programs... hunh?
fpc -FUlib/$(TargetCPU)-$(TargetOS) foo.pas
fpc is trunk installed via fpcup...
user at machine:~/development/projects/misc$ ~/fpc -FUlib/$(TargetCPU)-$(TargetOS)
TargetCPU: command not found
TargetOS: command not found
Free Pascal Compiler version 2.6.5 [2014/04/08] for i386
Copyright (c) 1993-2012 by Florian Klaempfl and others
Target OS: Linux for i386
foo.pas(23,1) Error: Can't create object file: lib/-/project1.o
foo.pas(23,1) Fatal: Can't create object lib/-/project1.o
Fatal: Compilation aborted
Error: /home/user/development/fpc/bin/i386-linux/ppc386 returned an error
exitcode (normal if you did not specify a source file to be compiled)
user at machine:~/development/projects/misc$
so how do i use macros to tell fpc where to place the unit libraries on linux
like i do for winwhatever??
NOTE: No off-list assistance is given without prior approval.
Please keep mailing list traffic on the list unless
private contact is specifically requested and granted.
More information about the fpc-pascal