[fpc-pascal] How to use string defines ?

2013-05-11 Thread Geoffray Levasseur-Brandin
Hi everybody, I'm trying to make an application that need to be FHS compliant. For that I want be abble to pass some strings as compile time parameters (eg. the famous $PREFIX). I tryed this : // installation paths defines {$if undefined(PREFIX)} {$DEFINE PREFIX:='/usr/local'} {$endif}

Re: [fpc-pascal] How to use string defines ?

2013-05-11 Thread patspiper
Turn macros on http://www.freepascal.org/docs-html/prog/progse4.html Stephano On 11/05/13 15:14, Geoffray Levasseur-Brandin wrote: Hi everybody, I'm trying to make an application that need to be FHS compliant. For that I want be abble to pass some strings as compile time parameters (eg. the

Re: [fpc-pascal] How to use string defines ?

2013-05-11 Thread patspiper
On 11/05/13 15:31, patspiper wrote: Turn macros on http://www.freepascal.org/docs-html/prog/progse4.html and use not defined instead of undefined Stephano ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org