Author Topic: error: definition of static data member 'X::sm_eventTable' of dllimport'd class  (Read 10270 times)

definitelylion

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

Code
$ ./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:

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

What am I missing?

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

Thanks!

Offline Alpha

  • Developer
  • Lives here!
  • *****
  • Posts: 1513
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)