Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2011-02

error building bigide from svn

3 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

John Stoneham

There is an error building bigide from svn, and I've notice it for all revisions past 29368. Here's the error:

    tagraph.pas(412,17) Error: Call by var for arg no. 2 has to match
exactly: Got "TChart" expected "TComponent"
    lresources.pp(914,11) Hint: Found declaration:
ReadComponentFromBinaryStream(TStream,

var TComponent,TFindComponentClassEvent,TComponent="nil",TComponent="nil",TComponent="nil"); tagraph.pas(1371) Fatal: There were 1 errors compiling module, stopping Fatal: Compilation aborted

That line in tagraph.pas is:
ReadComponentFromBinaryStream(

      ms, Result, @FindComponentClass, Owner, Parent, Owner);

Casting TComponent fixes the compile error:
ReadComponentFromBinaryStream(

      ms, TComponent(Result), @FindComponentClass, Owner, Parent, Owner);

I'm not sure if this fix causes any side effects (I haven't run into any yet), but at least it compiles now.

John -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20110205/1aca854e/attachment-0001.html>

Reply by email

John Stoneham
to John Stoneham

I didn't mention that I'm using fcp 2.5.1 svn to compile. Not sure if that makes a difference.

John Stoneham wrote 26 lines
There is an error building bigide from svn, and I've notice it for all revisions past 29368. Here's the error: tagraph.pas(412,17) Error: Call by var for arg no. 2 has to match exactly: Got "TChart" expected "TComponent" lresources.pp(914,11) Hint: Found declaration: ReadComponentFromBinaryStream(TStream, var TComponent,TFindComponentClassEvent,TComponent="nil",TComponent="nil",TComponent="nil"); tagraph.pas(1371) Fatal: There were 1 errors compiling module, stopping Fatal: Compilation aborted That line in tagraph.pas is: ReadComponentFromBinaryStream( ms, Result, @FindComponentClass, Owner, Parent, Owner); Casting TComponent fixes the compile error: ReadComponentFromBinaryStream( ms, TComponent(Result), @FindComponentClass, Owner, Parent, Owner); I'm not sure if this fix causes any side effects (I haven't run into any yet), but at least it compiles now. -- John
John -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20110205/ca7f7f31/attachment.html>

Reply by email

Juha Manninen
to John Stoneham

John Stoneham kirjoitti lauantai 05 helmikuu 2011 19:13:20:

I didn't mention that I'm using fcp 2.5.1 svn to compile. Not sure if that makes a difference.

Yes it makes the difference. fcp 2.5.1 is stricter with parameters. However I think the problem is fixed, I can compile and install TAChartLazarusPkg.

Juha

Reply by email