From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kurt Garloff To: Bernhard Rosenkraenzer Cc: egcs@cygnus.com, beastium-list@desk.nl, kde-bugs@kde.org Subject: Re: egcs C++ compatibility problem Date: Mon, 09 Feb 1998 11:31:00 -0000 Message-id: References: X-SW-Source: 1998-02/msg00364.html On Mon, 9 Feb 1998, Bernhard Rosenkraenzer wrote: > g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/src/qt-1.32/include -g0 -O2 > -fomit-frame-pointer -Vegcs-2.91.06 -pipe -s -c -fPIC -DPIC > QwSpriteField.cpp > QwSpriteField.cpp:26: `remove<>' does not match any template declaration > QwSpriteField.cpp:26: no matching template for > `remove(QwSpriteFieldGraphic *, QwPublicList *&)' > found > make: *** [QwSpriteField.lo] Error 1 > > gcc 2.8.0 works fine. egcs is correct in finding the bug. Late egcs snapshots check the type of the return value better than gcc280 or older egcs versions. Add the * which was forgotten in the declaration of remove <> to make it work. (I don't have the KDE source on my computer right now, that's just what I remeber. I can look for it, if you're not able to fix it with this description.) +--------------------------------------------------------------+ | cand.phys. Kurt Garloff C1-O4-101 (Chemiegeb"aude) | |Lehrstuhl Hochfrequenztechnik (Fakult"at f"ur Elektrotechnik)| | Universit"at Dortmund D - 44221 Dortmund | | Tel.: (0231) 755-3947 Fax: (0231) 755-4631 | | garloff@hft.e-technik.uni-dortmund.de | | Public PGP key available ! | +--------------------------------------------------------------+