--===============1568818975== Content-Type: multipart/signed; boundary="nextPart1676984.RNWrZJuvUk"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit --nextPart1676984.RNWrZJuvUk Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On Thursday 27 April 2006 20:35, Amr Ramadan wrote: > Trying to compile the following application: > http://developer.kde.org/~larrosa/tutorial/p4.html > > > Using: > g++ -c -I/opt/kde3/include/ -I/usr/lib/qt3/include -fno-rtti main.cpp *snip* > #4 0x408ebe7d in __dynamic_cast () from /usr/lib/libstdc++.so.6 See the dynamic_cast error? dynamic_cast relies on the C++ runtime type=20 identification system. You disabled that with the -fno-rtti flag to g++.=20 Recompile all of the object code without that flag (and never bring it near= =20 your C++ code again. ;) Another thing, if you get errors about redefinitions of class MainWindow, i= t's=20 because the tutorial forgot to put the C++ header guards in the p4.h listed= =20 on the tutorial page. e.g. #ifndef TUT_P4_H #define TUT_P4_H // rest of p4.h #endif Regards, - Michael Pyne --nextPart1676984.RNWrZJuvUk Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2.2 (GNU/Linux) iD8DBQBEUWf+qjQYp5Omm0oRAhSmAKCGoiUXkOXrC1wqaIcD0Lfpr7hh1ACg05T5 SDh7GpwU0KaJvLaXh18XztI= =V4TW -----END PGP SIGNATURE----- --nextPart1676984.RNWrZJuvUk-- --===============1568818975== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline >> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe << --===============1568818975==--