[Lazarus] Humour
Anybody who thinks there should never be any reference made to Hitler and/or the Third Reich, please hit 'delete' now. Anybody still reading might find this amusing... I'd not seen it before. >https://www.youtube.com/watch?v=CDeG4S-mJts=RDMhllo1xQer8=4 Brian. -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] where do I put project wide conditional define?
On 2016-04-19 12:17, Dennis wrote: > > so that when I rebuild the project, fpc will see USE_XYZ is defined. You have multiple options. Depending on your Lazarus version... In older versions of Lazarus IDE you have to define then in "Project Options -> Compiler Options -> Other" and enter them in the "Custom options" memo box. If you don't always compile you project with Lazarus IDE, or switch to other IDE's on occasion, you can also use include file in the header of each of your units in your project. eg: == program mytestapp; {$I mydefines.inc} uses == == unit mytestunit; {$I mydefines.inc} interface uses == The mydefines.inc file will contain things like {$mode objfpc} {$define SomeDefine} {.$define release} // this one is disabled for now {$define debug} etc. 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 -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] where do I put project wide conditional define?
> "-d" is the fpc flag for a define. See "fpc -h". Thanks, Ara -- http://www.fastmail.com - Access all of your messages and folders wherever you are -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Lazarus Digest, Vol 99, Issue 32
On Fri, Apr 15, 2016 at 03:37:37PM +0200, Michael Schnell wrote: > On 04/15/2016 03:29 PM, Marco van de Voort wrote: > >> As said: I (unsuccessfully) tried. > > So you can't operate a text editor? > > > I unsuccessfully tried to create an environment that lets me see the > modified help text (we already did discuss this some years ago). True, but that is not the same as not being able to contribute. You can submit the textual patch just fine. -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] where do I put project wide conditional define?
On Tue, Apr 19, 2016 at 2:17 PM, Denniswrote: > Where do I put > {$DEFINE USE_XYZ} > > so that when I rebuild the project, fpc will see USE_XYZ is defined. In Project Options: Compiler Options -> Custom Options - > Defines ... Juha -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] where do I put project wide conditional define?
> Add -dUse_XYZ to Project / Project Options / Compiler Options / > Custom Options Curiosity : Why a "d" in the beginning? Regards, Ara -- http://www.fastmail.com - A no graphics, no pop-ups email service -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] where do I put project wide conditional define?
On Tue, 19 Apr 2016 19:17:05 +0800 Denniswrote: > I some of my units, I have : > > uses classes, > {$IFDEF USE_XYZ} > certain_unitXYZ > {$ENDIF}; > > > Where do I put > {$DEFINE USE_XYZ} > > so that when I rebuild the project, fpc will see USE_XYZ is defined. > > Putting in in the project .lpr does not work Add -dUse_XYZ to Project / Project Options / Compiler Options / Custom Options Mattias -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
[Lazarus] where do I put project wide conditional define?
I some of my units, I have : uses classes, {$IFDEF USE_XYZ} certain_unitXYZ {$ENDIF}; Where do I put {$DEFINE USE_XYZ} so that when I rebuild the project, fpc will see USE_XYZ is defined. Putting in in the project .lpr does not work Thanks in advance. Dennis -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Using libjpeg
Hi, Thanks for explanation Sandro. I checked your demo and even other demos and I can say they are interesting, I wish I had the source specially JPEG demo so I can check your results. Regards, Ara -- http://www.fastmail.com - Does exactly what it says on the tin -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus