Subj : CPP + fpc = Fun times To : All From : Deavmi Date : Mon Apr 03 2017 17:32:00 So maybe you want to use C's pre-processor directives in FPC? Well son, I have the answer for you. Let's take thia Pascal code and do some CPP directives within it. #define progName HelloWorld #define msg 'Hello world' program progName; begin writeln(msg); end. Now we can take this file and type it in as standard input to the `cat` program and once you are done you flush that data out with a Ctrl+D. So here is the command set: cat | cpp > file.pas ; fpc file.pas Now this should work (provided fpc doesn't interpret the #'s that cpp outputs). +----+----+----+----+----+----+----+----+----+----+ Tristan B. Kildaire (deavmi@kk4qbn.synchro.net) Info: `finger deavmi@kk4qbn.synchro.net` +----+----+----+----+----+----+----+----+----+----+ --- þ Synchronet þ KK4QBN + (706)-422-9538 + kk4qbn.synchro.net + 24/7/365 .