FW: RE: [lazarus] Probelm with TComponent.Notification

Michael Van Canneyt Michael.VanCanneyt at wisa.be
Fri Apr 16 03:56:22 EDT 1999




On Thu, 15 Apr 1999, Shane Miller wrote:

> OK, as I stated I was going to get fpc 0.99.11 and try it.
> Well I had trouble so now I'm on version 0.99.10 again and when
> I try to compile I get further than I did with fpc-0.99.11.
> I have both installed so I simply enter the path to each before
> compiling so I run the correct one and I don't see TEXT.INC being
> compiled in the 0.99.10 version but in the 0.99.11 version
> I get the "text.inc(27,1) Error: Duplicate Identifier VAL" error.  
> It seems to work with version 0.99.10

Hmmm. What is in your /etc/ppc386.cfg file ?

I have something like

-------------- 8< ----------------
#IFDEF VER0_99_10
-Fu/usr/lib/fpc/0.99.10/linuxunits
#ENDIF
#IFDEF VER0_99_11
-Fu/usr/lib/fpc/0.99.11/linuxunits
#ENDIF
-------------- 8< ----------------

You should have something like this to make sure
that each compiler finds the correct units.

You also may want to mke separate links for each compiler.
In /usr/bin do the following:

ln -sf /usr/lib/fpc/0.99.10/ppc386 ppc386-0.99.10
ln -sf /usr/lib/fpc/0.99.11/ppc386 ppc386-0.99.11
ln -sf /usr/lib/fpc/0.99.11/ppc386

( I assume you installed in /usr/lib/fpc/0.99.XX )
This is what I have on my machine.
(plus some additional ones, of course)

Now, compiling is simply a matter of
  ppc386-0.99.xx  file.pp
if you want version 0.99.xx, and you can do a
  ppc386 file.pp
to compile with the default version. (0.99.11, in the above case)


Michael.






More information about the Lazarus mailing list