Hi, Jonathan Haws ha scritto: > I am having troubles compiling my application that makes use of > wxCustomButton in wxThings. A build log is included. > > I had this error once before and it was due to some interesting compiler > directives. I found that those are included in wxCustomButton: > > #if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) > #pragma implementation "toggle.h" > #endif > > What do those lines do? these lines can be removed; more precisily, it would be _better_ to remove them. They can only cause troubles nowadays; they were once used to obtain compile time gains...
> Would they be causing this undefined reference to vtable for wxCustomButton? yes; that's a possible cause > If not, what would and how can I resolve it? another reason could be that the makefile is not linking the EXE to the object file for wxCustomButton... > > Note that I did try commenting out those lines in the code and recompiling. > That did not help. hmmm, strange. Did you recompile from scratch (i.e. removing any *.o of the old compile process)? Can you compile&link the wxThings samples? If you can, then the problem seems to rely in your sources (or in your makefile)... Francesco ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ wxCode-users mailing list wxCode-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wxcode-users