<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<p>Il 25/02/2018 21:33, Mark Morgan Lloyd ha scritto:<br>
</p>
<blockquote type="cite"
cite="mid:p6v6it$tql$1@pye-srv-01.telemetry.co.uk">Easily put in
the makefile </blockquote>
<br>
Well I wouldn't say "Easily"!<span class="moz-smiley-s15"><span>:'(</span></span><br>
<br>
I can live without parameter macros in Pascal like I did until now,
but just for personal satisfaction I tried to get the Gnu Pascal
Preprocessor.<br>
In order to get the preprocessor, you need to get a full GNU Pascal
installation.<br>
It turned out that:<br>
<ul>
<li>Gnu Pascal has stopped with gcc 3.x and is 32 bits only.</li>
<li>Configure doesn't recognize an x86_64 platform.</li>
<li>Once you've managed to tell configure to generate an i686 it
turns out that the 32 bit tools available on a 64 bit
environment aren't sufficient to compile gcc, which is a
prerequisite for compiling Pascal and its Preprocessor. A few
header files are either missing or incorrect.</li>
<li>Switch to a virtual 32 bit machine and restart.</li>
<li>Then you discover that the syntax used by gcc 3.x isn't
supported by gcc 4.x, which you try to use for compiling: gcc
4.x "enhancement" is to reject typecast on the left side of an
assignment which was not only accepted by gcc 3.x, but also used
in writing the compiler itself.</li>
<li>You need to install a "compatibility package" including a gcc
3.4</li>
<li>You manually edit the Makefile, to force the usage of the
compatibility compiler.</li>
<li>When you finally have managed to compile and install, you
don't find the Preprocessor in the generated binaries.</li>
<li>If you didn't give up long before, you'll finally find the
Preprocessor in the libraries folder.</li>
</ul>
I went through the full odyssey, and I got a 32 bit gpcpp which runs
also in a 64 bit environment where 32 bit libraries are present. It
appears to work, but it has still to be seen if it can be used in
practice.<br>
<br>
Should anybody else be eager to try it, I hope that my Calvary will
be of some help.<span class="moz-smiley-s10"><span>>:o</span></span><br>
<br>
Giuliano<br>
<br>
<br>
<br>
</body>
</html>