Linker error with wxMac 2.6.2

Deepak deepakar at gmail.com
Fri Jun 1 03:58:29 PDT 2007


I've built wxWidgets 2.6.2 on Mac OS 10.4 as one single dylib (with
RTTI enabled).
Now when I try to use the following code I see the following behaviour
1. If I DISABLE RTTI, then the build succeeds.
2. If I enable RTTI, then I get the following linker error
undefined typeinfo wxThread

Since I'm using dynamic casts in another program , I need to be able
to use wxThread with RTTI enabled. Any idea what I'm missing here?

#include <wx/thread.h>
struct MyThread : public wxThread
{
            virtual ExitCode Entry()
            {
                        return NULL;
            }
};

int main (int argc, char * const argv[]) {
MyThread m;
    return 0;
}







More information about the wx-users mailing list