lmi
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Re[2]: [lmi] Failure linking sample programs: wx-2.6.2 with MinGW gc


From: Evgeniy Tarassov
Subject: Re: Re[2]: [lmi] Failure linking sample programs: wx-2.6.2 with MinGW gcc-3.2.3 [Was: wx segfault iterating on GetChildren()]
Date: Thu, 23 Mar 2006 01:00:46 +0100

>  Just in case this wasn't clear from the original message: we're still
> continuing to work on this and we should be able to fix it at least in cvs
> HEAD although, unfortunately, maybe not in 2.6 as the fix I currently have
> in mind might not be binary backwards compatible.

The bug (one of the bugs?) that prevents gcc3.2.3 from compiling the
wx samples shows itself in that code snippet (its a piece from dll.h
header file that defines class Foo that goes into a dll and is used
from the code outside of dll, Foo::Bar corresponds to
wxMenuItemList::DeleteFunction):

struct WXDLLEXPORT Foo
{
    static void Bar();
    struct SomeInnerClass // if you extract that class from within the
Foo class, the program will link
    {
      friend class Foo; // if you remove that the program will link
    };
    ~Foo()
    {
        Bar();
    }
};

The Foo::Bar function defined in cpp file that goes into dll does not
get exported and could not be picked up by the code that uses Foo
class. A workaround could be to move that Foo::Bar static function
into an external (vis-a-vis Foo) empty class.

As soon as the patch is ready and tested (and approved by Vadim :-) of
course) it will appear in HEAD.

Eugene




reply via email to

[Prev in Thread] Current Thread [Next in Thread]