Re: [fpc-pascal] Hints on getting FPDocs to work on Linux

2011-09-18 Thread Reinier Olislagers
On 18-9-2011 23:27, Graeme Geldenhuys wrote: > On 18/09/2011, Reinier Olislagers wrote: > >I never install binary releases of the various distro packages - they >are always out of date. LazUpdater ftw ;) (When I have it working on Linux) >> Your post did remind me to check whether git is instal

Re: [fpc-pascal] Hints on getting FPDocs to work on Linux

2011-09-18 Thread Graeme Geldenhuys
On 18/09/2011, Reinier Olislagers wrote: > PS: aptitude install lazarus fpc fpc-source isn't too difficult to get > FPC/Lazarus going in Debian either ;) I never install binary releases of the various distro packages - they are always out of date. Installing from source and wanting to compile, yo

Re: [fpc-pascal] Hints on getting FPDocs to work on Linux

2011-09-18 Thread Reinier Olislagers
On 18-9-2011 19:56, Graeme Geldenhuys wrote: > On 18/09/2011, Reinier Olislagers wrote: >> >> Any hints on which packages to install on Debian Squeeze (current >> stable) or which files are required so I can try generating some FPDocs >> content? Thanks Marco & Graeme for replying. > Tip #1: > Ins

Re: [fpc-pascal] Hints on getting FPDocs to work on Linux

2011-09-18 Thread Graeme Geldenhuys
On 18/09/2011, Reinier Olislagers wrote: > > Any hints on which packages to install on Debian Squeeze (current > stable) or which files are required so I can try generating some FPDocs > content? Tip #1: Install a distro geared for programmers. ;-) Slackware includes everything a developer needs o

Re: [fpc-pascal] Hints on getting FPDocs to work on Linux

2011-09-18 Thread Marco van de Voort
In our previous episode, Reinier Olislagers said: > > > Any hints on which packages to install on Debian Squeeze (current > stable) or which files are required so I can try generating some FPDocs > content? > > Something like > aptitude install texlive tex4ht python-plastex hevea dvi2tty > perha

[fpc-pascal] Hints on getting FPDocs to work on Linux

2011-09-18 Thread Reinier Olislagers
Hi gang, Any hints on which packages to install on Debian Squeeze (current stable) or which files are required so I can try generating some FPDocs content? Something like aptitude install texlive tex4ht python-plastex hevea dvi2tty perhaps? (Looking into writing some documentation on the db ex

Re: [fpc-pascal] How to do conditional compilation with macros

2011-09-18 Thread Flávio Etrusco
On Sun, Sep 18, 2011 at 9:19 AM, Marco van de Voort wrote: > In our previous episode, Fl?vio Etrusco said: >> > http://delphi.wikia.com/wiki/FreePascal_detection_and_versioning >> > >> > a typical usage: >> > >> > {$if FPC_FULLVERSION> 20204} >> > ? // means greater than 2.2.4 here >> > ?{$ifndef}

Re: [fpc-pascal] How to do conditional compilation with macros

2011-09-18 Thread Marco van de Voort
In our previous episode, Fl?vio Etrusco said: > > http://delphi.wikia.com/wiki/FreePascal_detection_and_versioning > > > > a typical usage: > > > > {$if FPC_FULLVERSION> 20204} > > ? // means greater than 2.2.4 here > > ?{$ifndef} > > > > Not wanting to hijack the thread but, why isn't there a way

Re: [fpc-pascal] How to do conditional compilation with macros

2011-09-18 Thread Flávio Etrusco
On Sun, Sep 18, 2011 at 8:35 AM, Marco van de Voort wrote: > In our previous episode, Reinier Olislagers said: >> >> Have got FPC version 2.7.1 [2011/09/17] for i386 on Windows. >> >> What am I doing wrong? > > Not reading manuals?  :-) > > http://www.freepascal.org/docs-html/prog/progse5.html#x12

Re: [fpc-pascal] How to do conditional compilation with macros

2011-09-18 Thread Reinier Olislagers
On 18-9-2011 13:41, Sven Barth wrote: > On 18.09.2011 13:29, Reinier Olislagers wrote: >> What am I doing wrong? > > Additionally to what Marco wrote: > > You must not use the "$" as prefix for the "variable" if you reference > such a compiler define inside an $if or $ifdef. > > Regards, > Sven

Re: [fpc-pascal] How to do conditional compilation with macros

2011-09-18 Thread Sven Barth
On 18.09.2011 13:29, Reinier Olislagers wrote: What am I doing wrong? Additionally to what Marco wrote: You must not use the "$" as prefix for the "variable" if you reference such a compiler define inside an $if or $ifdef. Regards, Sven ___ fpc-p

Re: [fpc-pascal] How to do conditional compilation with macros

2011-09-18 Thread Marco van de Voort
In our previous episode, Reinier Olislagers said: > > Have got FPC version 2.7.1 [2011/09/17] for i386 on Windows. > > What am I doing wrong? Not reading manuals? :-) http://www.freepascal.org/docs-html/prog/progse5.html#x121-1210002.2 so it is FPC_FULLVERSION, not FPCFULLVERSION from http:

[fpc-pascal] How to do conditional compilation with macros

2011-09-18 Thread Reinier Olislagers
Trying to test for a certain minimum version of FPC. Have got FPC version 2.7.1 [2011/09/17] for i386 on Windows. What am I doing wrong? program conditional; {$mode objfpc}{$H+} uses {$IFDEF UNIX}{$IFDEF UseCThreads} cthreads, {$ENDIF}{$ENDIF} Classes; begin //How should I use FPCVU