[Ktechlab-devel] error compiling

David Saxton david at bluehaze.org
Wed Oct 19 13:10:05 UTC 2005


Interesting bug (doesn't happen with gcc 4.0.2).

I can't commit an update to subversion at the moment (should be able to in
a few hours though...), so to make it compile, in src/picitem.cpp, on
lines 259 and 267, you can replace "int(x())" with "int(this->x())".

> I get the following compiling error with GCC 3.3.5 and KTechLab revision
> 502:
>
>
>
> picitem.cpp: In constructor `PicItem::PicItem(ICNDocument*, bool, const
> char*,
>    MicroSettings*)':
> picitem.cpp:259: error: syntax error before `+' token
> picitem.cpp:262: error: no matching function for call to
> `PinItem::PinItem(
>    FlowCodeDocument*, QPoint (&)(...), bool, PinSettings*&)'
> picitem.h:25: error: candidates are: PinItem::PinItem(const PinItem&)
> picitem.cpp:37: error:                 PinItem::PinItem(FlowCodeDocument*,
>    QPoint, bool, PinSettings*)
> picitem.cpp:267: error: syntax error before `+' token
> picitem.cpp:270: error: no matching function for call to
> `PinItem::PinItem(
>    FlowCodeDocument*, QPoint (&)(...), bool, PinSettings*&)'
> picitem.h:25: error: candidates are: PinItem::PinItem(const PinItem&)
> picitem.cpp:37: error:                 PinItem::PinItem(FlowCodeDocument*,
>    QPoint, bool, PinSettings*)
> make[3]: *** [picitem.o] Error 1
>
>





More information about the Ktechlab-devel mailing list