frameworks, dynamic_cast and gcc 4.0
frameworks, dynamic_cast and gcc 4.0
- Subject: frameworks, dynamic_cast and gcc 4.0
- From: Stephan Huber <email@hidden>
- Date: Mon, 22 Aug 2005 14:42:41 +0200
Hi all,
I switched with my code to XCode 2.1 and gcc 4.0. Now most of my
dynamic_casts are failing (they worked fine before XCode 2.1). And I
don't know why, my knowledge of the inners of the compiler etc is limited.
To be precise: the dynamic_casts are working in the scope of the
application, but If I call a method/function inside my custom framework
which does a dynamic_cast, this dynamic_cast fails
To be more specific:
I declare a class inside my framework
class Foo : public osg::Object {...}
I create some objects inside the application and attach them to other
objects (they have a property osg::Object (which is declared in another
framework)) After a while I need to process the objects inside my
custom framework and there the dynamic_cast to Foo fails.
I found the following message in the archives
<http://lists.apple.com/archives/Xcode-users/2005/May/msg00315.html>
which describes my problem in a more complicated way, doing some
searches in the archives reveils some posts about similar problems, the
solution was to *export* the class-definition, but I can't find any
information how to do this, but maybe I'm dumb ;)
P.S. My code worked very well and reliable under gc 3.x and Panther...
Any help is greatly appreciated,
thanks in advance,
Stephan
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden