[fpc-pascal] Implementing AggPas with PtcGraph

James Richters james at productionautomation.net
Thu Jun 15 12:37:41 CEST 2017


>True. I'll include a 64-bit version too.

That would be great, because I don't have a clue where this 64bit version I found came from, what version it is, and things like that.  
Maybe include Freetype32.dll and Freetype64.dll to make it very clear.

>That is why I said you must put it in your Project's Compiler Settings instead using your IDE of choice 
>(or via the command line when calling fpc.exe binary). That way the define is active for all units of your project.

I see, thanks for explaining.   For some reason, I was thinking it was optional to put it in the compiler, but I could also put it in the program.
Is there no way to set a global define in each program so I could have several programs defined differently and randomly compile them without changing any settings?  
It seems some method of doing that would be very useful... but maybe not easy to implement... I suppose it probably compiles all the units first then the main program, so putting anything in the main program wouldn't be seen until it was too late.

James


-----Original Message-----
From: fpc-pascal [mailto:fpc-pascal-bounces at lists.freepascal.org] On Behalf Of Graeme Geldenhuys
Sent: Thursday, June 15, 2017 3:19 AM
To: fpc-pascal at lists.freepascal.org
Subject: Re: [fpc-pascal] Implementing AggPas with PtcGraph

On 2017-06-15 02:40, James Richters wrote:
> That is what I thought should happen, but I put {$DEFINE 
> AGG2D_USE_FREETYPE}
>
> I don't know why the define isn't making it to the unit.  Do I need to 
> do something else?

Compiler defines defined with the $DEFINE directive is per unit only.

That is why I said you must put it in your Project's Compiler Settings instead using your IDE of choice (or via the command line when calling fpc.exe binary). That way the define is active for all units of your project.


Regards,
   Graeme

--
fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal http://fpgui.sourceforge.net/

My public PGP key:  http://tinyurl.com/graeme-pgp _______________________________________________
fpc-pascal maillist  -  fpc-pascal at lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal




More information about the fpc-pascal mailing list