[Lazarus] error building bigide from svn

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

[Lazarus] error building bigide from svn

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

--
_______________________________________________
Lazarus mailing list
[hidden email]
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Reply | Threaded
Open this post in threaded view
|

Re: [Lazarus] error building bigide from svn

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

On Sat, Feb 5, 2011 at 11:12 AM, John Stoneham <[hidden email]> wrote:
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

--
_______________________________________________
Lazarus mailing list
[hidden email]
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Reply | Threaded
Open this post in threaded view
|

Re: [Lazarus] error building bigide from svn

Juha Manninen
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

--
_______________________________________________
Lazarus mailing list
[hidden email]
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus