[Lazarus] Can't compile Lazarus anymore

Erwin van den Bosch erwin at deseine.nl
Sat Apr 17 22:02:33 CEST 2010


That helped a bit.
But also look at synhighlighterdiff.pas line 731. Same there.
After that it compiles ok!

"Typecasting pointers is such fun in object pascal! Why don't we go back
to c++?" ;-)

Groetjes,
Erwin


Op 17-04-10 21:12, Martin schreef:
> On 17/04/2010 20:01, Erwin van den Bosch wrote:
>> I can't compile Lazarus anymore. (current svn trunk revision 24680)
>>
>> I use>  make clean all bigide
>> On opensuse 11.1 X86_64 and I use gtk2 widgets, fpc 2.4.0
>>
>> This is the error output:
>>
>> Compiling synhighlighterlfm.pas
>> synhighlighterlfm.pas(720,13) Error: Illegal type conversion: "^untyped"
>> to "<enumeration type>"
>> synhighlighterlfm.pas(740) Fatal: There were 1 errors compiling module,
>> stopping
>> Fatal: Compilation aborted
>> make[2]: *** [allsyneditunits.ppu] Fout 1
>> make[2]: Map '/home/erwin/fpc/lazarus/components/synedit' wordt verlaten
>> make[1]: *** [synedit_all] Fout 2
>> make[1]: Map '/home/erwin/fpc/lazarus/components' wordt verlaten
>> make: *** [components] Fout 2
>>
>>
>> Revision 24621 compiles fine. Revision 24622 and above gives this error.
>>    
>
> The line
>   Result := TLfmCodeFoldBlockType(p);
>
> should probably be:
>   Result := TLfmCodeFoldBlockType(PtrUInt(p));
>
> but it is interesting that neithe 2.4.0. nor 2.5.1 say anything about
> it here. Not even a a warning. Makes it hard to spot those
> oversights.....
>
>
> -- 
> _______________________________________________
> Lazarus mailing list
> Lazarus at lists.lazarus.freepascal.org
> http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus





More information about the Lazarus mailing list