I want to build CB in Cygwin environment.
In particular I use latest x86_64 Cygwin.
I installed gcc, g++, make in Cygwin.
Also I installed x11 libraries and installed local X11 server on my Windows host.
So, many GUI X11 programs work fine in my Cygwin environment (like git gui, gitk, text editors etc.)
I want to run in the same manner CB.
First, CB requires wxWidgets.
Cygwin does not have wxWidgets from the box.
I downloaded the latest 2.8.12 version of wxWidgets sources and build it:
./configure --build=x86_64-pc-cygwin --without-msw --without-gtk --with-x11
which means that I want to build wxWidgets by using X11 libraries (instead of MSW by default).
Then I type, "make", "make install".
Here was a small compilation error, I fixed it, and wxWidgets libraries were installed successfully into my Cygwin env.
Second step is to build CB.
I downloaded "codeblocks-12.11release8629" sources.
./configure steps passed fine.
Then I type "make" and give the following error  (not just immediately after start, error becomes after some long time of compilation):
/bin/sh ../../../libtool  --tag=CXX   --mode=compile g++ -DHAVE_CONFIG_H -I. -I.                                                        ./../../src/include -I/usr/local/lib/wx/include/x11univ-ansi-release-2.8 -I/usr/                                                        local/include/wx-2.8 -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -DWXUSINGDLL -D__WXUN                                                        IVERSAL__ -D__WXX11__  -I./include -I./src/scintilla/include -I./src/scintilla/l                                                        exlib -I./src/scintilla/src -DSCI_LEXER -DLINK_LEXERS -DGTK -D__WX__ -Ulinux -Uu                                                        nix  -O2 -ffast-math -DCB_AUTOCONF  -DCB_PRECOMP -Winvalid-pch -fPIC -DPIC -fexc                                                        eptions -w -MT wxscintilla.lo -MD -MP -MF .deps/wxscintilla.Tpo -c -o wxscintill                                                        a.lo `test -f 'src/wxscintilla.cpp' || echo './'`src/wxscintilla.cpp
libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I../../../src/include -I/usr/local/l                                                        ib/wx/include/x11univ-ansi-release-2.8 -I/usr/local/include/wx-2.8 -D_FILE_OFFSE                                                        T_BITS=64 -D_LARGE_FILES -DWXUSINGDLL -D__WXUNIVERSAL__ -D__WXX11__ -I./include                                                         -I./src/scintilla/include -I./src/scintilla/lexlib -I./src/scintilla/src -DSCI_L                                                        EXER -DLINK_LEXERS -DGTK -D__WX__ -Ulinux -Uunix -O2 -ffast-math -DCB_AUTOCONF -                                                        DCB_PRECOMP -Winvalid-pch -fPIC -DPIC -fexceptions -w -MT wxscintilla.lo -MD -MP                                                         -MF .deps/wxscintilla.Tpo -c src/wxscintilla.cpp  -DDLL_EXPORT -DPIC -o .libs/w                                                        xscintilla.o
In file included from /usr/local/include/wx-2.8/wx/window.h:1537:0,
                 from /usr/local/include/wx-2.8/wx/wx.h:36,
                 from src/ScintillaWX.h:51,
                 from src/wxscintilla.cpp:44:
/usr/local/include/wx-2.8/wx/univ/window.h:19:19: note: attribute for 'class wxControlRenderer' must follow the 'class' keyword
 class WXDLLEXPORT wxControlRenderer;
                   ^
In file included from /usr/local/include/wx-2.8/wx/wx.h:25:0,
                 from src/ScintillaWX.h:51,
                 from src/wxscintilla.cpp:44:
src/wxscintilla.cpp:141:19: error: definition of static data member 'wxScintilla::sm_eventTable' of dllimport'd class
 BEGIN_EVENT_TABLE(wxScintilla, wxControl)
                   ^/usr/local/include/wx-2.8/wx/event.h:2721:24: note: in definition of macro 'BEGIN_EVENT_TABLE'
     const wxEventTable theClass::sm_eventTable = \
                        ^
src/wxscintilla.cpp:141:19: error: definition of static data member 'wxScintilla::sm_eventHashTable' of dllimport'd class
 BEGIN_EVENT_TABLE(wxScintilla, wxControl)
                   ^
Could advise how to fix this compilation error?