News:

When registered with our forums, feel free to send a "here I am" post here to differ human beings from SPAM bots.

Main Menu

error: definition of static data member 'X::sm_eventTable' of dllimport'd class

Started by definitelylion, December 23, 2011, 06:36:49 PM

Previous topic - Next topic

definitelylion

I'm trying to compile C::B SVN trunk with MinGW (gcc 4.6.3) from an MSYS command-line, using the standard method:

$ ./bootstrap
$ ./configure --with-contrib-plugins=all
$ make


What I first saw was this error: http://paste.pocoo.org/raw/524963

A little Googling brought me to this forum thread. Using those modifications I was able to get past the error, only to stumble on a similar one:

annoyingdialog.cpp:26:1: error: definition of static data member 'AnnoyingDialog::sm_eventTable' of dllimport'd class

What am I missing?

annoyingdialog.cpp

25. BEGIN_EVENT_TABLE(AnnoyingDialog, wxScrollingDialog)
26.    EVT_BUTTON(-1, AnnoyingDialog::OnButton)
27. END_EVENT_TABLE()


Thanks!

Alpha

If you are on Windows (which I assume from the use of MSYS), is there a reason you are not compiling Code::Blocks with Code::Blocks (a pre-built nightly)?  (Installing Code::Blocks from source on Windows)