dontpanic92 / wxGo

Golang wxWidgets Wrapper
Other
403 stars 51 forks source link

Reference issues when compiling during Go Get #27

Closed PaluMacil closed 6 years ago

PaluMacil commented 7 years ago

I ran go get github.com/dontpanic92/wxGo/wx on Windows 10 with 64 bit Go 1.8.1 and GCC version 6.2.0 (x86_64-posix-sjlj-rev1, Built by MinGW-W64 project) which results in the attached error.

Error output

dontpanic92 commented 7 years ago

It seems that libstdc++ is not linked. I will have a check on it

PaluMacil commented 7 years ago

I'm not terribly familiar with compiling C, but could this be related to my choice of sjlj instead of seh when I installed mingw-64? I only ask because I noticed seh in mentioned in the error log, but I'm not familiar with how you easily determine which exception handling you need to compile something (or if you actually need to match your gcc binary with what the library is using--and if you do, how you switch between them for different projects that require each besides changing your path back and forth a lot). Or does all cgo assume a specific exception handling method?

dontpanic92 commented 7 years ago

It is highly possible that sjlj/seh issue is the reason. I compiled the wx libs using tdm-gcc-64 and by default it uses SEH to handle exceptions.

By the way cgo doesn't require any specific exception handling method - exceptions only exist in C++, not in C.

PaluMacil commented 7 years ago

trying with 7.1.0 gcc seh from mingw-64 gave me...

# github.com/dontpanic92/wxGo/wx
C:\Source\Go\src\github.com\dontpanic92\wxGo\wx\wx_wrap_windows.cxx: In function 'void _wrap_SVGFileDC_SetClippingRegion
__SWIG_3_wx_d5626d6e57cb98ce(wxSVGFileDC*, wxRegion*)':
C:\Source\Go\src\github.com\dontpanic92\wxGo\wx\wx_wrap_windows.cxx:28801:52: warning: 'void wxDC::SetClippingRegion(con
st wxRegion&)' is deprecated [-Wdeprecated-declarations]
   (arg1)->SetClippingRegion((wxRegion const &)*arg2);
                                                    ^
In file included from C:/Source/Go/src/github.com/dontpanic92/wxGo/wxWidgets/wxWidgets-3.1.0/include/wx/wx.h:14:0,
                 from C:\Source\Go\src\github.com\dontpanic92\wxGo\wx\wx_wrap_windows.cxx:254:
C:/Source/Go/src/github.com/dontpanic92/wxGo/wxWidgets/wxWidgets-3.1.0/include/wx/dc.h:949:30: note: declared here
     wxDEPRECATED_INLINE(void SetClippingRegion(const wxRegion& region),
                              ^
C:/Source/Go/src/github.com/dontpanic92/wxGo/wxWidgets/wxWidgets-3.1.0/include/wx/defs.h:642:43: note: in definition of
macro 'wxDEPRECATED'
 #define wxDEPRECATED(x) wxDEPRECATED_DECL x
                                           ^
C:/Source/Go/src/github.com/dontpanic92/wxGo/wxWidgets/wxWidgets-3.1.0/include/wx/dc.h:949:5: note: in expansion of macr
o 'wxDEPRECATED_INLINE'
     wxDEPRECATED_INLINE(void SetClippingRegion(const wxRegion& region),
     ^
C:\Source\Go\src\github.com\dontpanic92\wxGo\wx\wx_wrap_windows.cxx: In function 'bool _wrap_DataViewCustomRenderer_Left
Click_wx_d5626d6e57cb98ce(wxDataViewCustomRenderer*, wxPoint*, wxRect*, wxDataViewModel*, wxDataViewItem*, intgo)':
C:\Source\Go\src\github.com\dontpanic92\wxGo\wx\wx_wrap_windows.cxx:69708:85: warning: 'virtual bool wxDataViewCustomRen
dererBase::LeftClick(wxPoint, wxRect, wxDataViewModel*, const wxDataViewItem&, unsigned int)' is deprecated [-Wdeprecate
d-declarations]
   result = (bool)(arg1)->LeftClick(arg2,arg3,arg4,(wxDataViewItem const &)*arg5,arg6);
                                                                                     ^
In file included from C:/Source/Go/src/github.com/dontpanic92/wxGo/wxWidgets/wxWidgets-3.1.0/include/wx/wx.h:14:0,
                 from C:\Source\Go\src\github.com\dontpanic92\wxGo\wx\wx_wrap_windows.cxx:254:
C:/Source/Go/src/github.com/dontpanic92/wxGo/wxWidgets/wxWidgets-3.1.0/include/wx/dvrenderers.h:284:22: note: declared h
ere
         virtual bool LeftClick(wxPoint WXUNUSED(cursor),
                      ^
C:/Source/Go/src/github.com/dontpanic92/wxGo/wxWidgets/wxWidgets-3.1.0/include/wx/defs.h:642:43: note: in definition of
macro 'wxDEPRECATED'
 #define wxDEPRECATED(x) wxDEPRECATED_DECL x
                                           ^
C:/Source/Go/src/github.com/dontpanic92/wxGo/wxWidgets/wxWidgets-3.1.0/include/wx/dvrenderers.h:283:5: note: in expansio
n of macro 'wxDEPRECATED_BUT_USED_INTERNALLY_INLINE'
     wxDEPRECATED_BUT_USED_INTERNALLY_INLINE(
     ^
C:\Source\Go\src\github.com\dontpanic92\wxGo\wx\wx_wrap_windows.cxx: In function 'bool _wrap_DataViewCustomRenderer_Acti
vate_wx_d5626d6e57cb98ce(wxDataViewCustomRenderer*, wxRect*, wxDataViewModel*, wxDataViewItem*, intgo)':
C:\Source\Go\src\github.com\dontpanic92\wxGo\wx\wx_wrap_windows.cxx:69736:79: warning: 'virtual bool wxDataViewCustomRen
dererBase::Activate(wxRect, wxDataViewModel*, const wxDataViewItem&, unsigned int)' is deprecated [-Wdeprecated-declarat
ions]
   result = (bool)(arg1)->Activate(arg2,arg3,(wxDataViewItem const &)*arg4,arg5);
                                                                               ^
In file included from C:/Source/Go/src/github.com/dontpanic92/wxGo/wxWidgets/wxWidgets-3.1.0/include/wx/wx.h:14:0,
                 from C:\Source\Go\src\github.com\dontpanic92\wxGo\wx\wx_wrap_windows.cxx:254:
C:/Source/Go/src/github.com/dontpanic92/wxGo/wxWidgets/wxWidgets-3.1.0/include/wx/dvrenderers.h:276:22: note: declared h
ere
         virtual bool Activate(wxRect WXUNUSED(cell),
                      ^
C:/Source/Go/src/github.com/dontpanic92/wxGo/wxWidgets/wxWidgets-3.1.0/include/wx/defs.h:642:43: note: in definition of
macro 'wxDEPRECATED'
 #define wxDEPRECATED(x) wxDEPRECATED_DECL x
                                           ^
C:/Source/Go/src/github.com/dontpanic92/wxGo/wxWidgets/wxWidgets-3.1.0/include/wx/dvrenderers.h:275:5: note: in expansio
n of macro 'wxDEPRECATED_BUT_USED_INTERNALLY_INLINE'
     wxDEPRECATED_BUT_USED_INTERNALLY_INLINE(
     ^
C:\Source\Go\src\github.com\dontpanic92\wxGo\wx\wx_wrap_windows.cxx: In function 'intgo _wrap_PGProperty_GetFlags_wx_d56
26d6e57cb98ce(wxPGProperty*)':
C:\Source\Go\src\github.com\dontpanic92\wxGo\wx\wx_wrap_windows.cxx:261039:75: warning: 'wxPGProperty::FlagType wxPGProp
erty::GetFlags() const' is deprecated: Use HasFlag or HasFlagsExact functions instead. [-Wdeprecated-declarations]
   result = (wxPGProperty::FlagType)((wxPGProperty const *)arg1)->GetFlags();
                                                                           ^
In file included from C:/Source/Go/src/github.com/dontpanic92/wxGo/wxWidgets/wxWidgets-3.1.0/include/wx/propgrid/propgri
diface.h:18:0,
                 from C:\Source\Go\src\github.com\dontpanic92\wxGo\wx\wx_wrap_windows.cxx:769:
C:/Source/Go/src/github.com/dontpanic92/wxGo/wxWidgets/wxWidgets-3.1.0/include/wx/propgrid/property.h:1794:14: note: dec
lared here
     FlagType GetFlags() const
              ^~~~~~~~
# github.com/dontpanic92/wxGo/wx
C:/Program Files/mingw-w64/x86_64-7.1.0-posix-seh-rt_v5-rev0/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/7.1.0/../../../..
/x86_64-w64-mingw32/lib/../lib/libuuid.a(lib64_libuuid_a-uuid.o):uuid.c:(.rdata+0x90): multiple definition of `CLSID_Std
URLMoniker'
C:/Program Files/mingw-w64/x86_64-7.1.0-posix-seh-rt_v5-rev0/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/7.1.0/../../../..
/x86_64-w64-mingw32/lib/../lib/libuuid.a(lib64_libuuid_a-extras-uuid.o):extras-uuid.c:(.rdata$CLSID_StdURLMoniker[CLSID_
StdURLMoniker]+0x0): first defined here
C:/Program Files/mingw-w64/x86_64-7.1.0-posix-seh-rt_v5-rev0/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/7.1.0/../../../..
/x86_64-w64-mingw32/lib/../lib/libuuid.a(lib64_libuuid_a-uuid.o):uuid.c:(.rdata+0xa0): multiple definition of `CLSID_MkP
rotocol'
C:/Program Files/mingw-w64/x86_64-7.1.0-posix-seh-rt_v5-rev0/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/7.1.0/../../../..
/x86_64-w64-mingw32/lib/../lib/libuuid.a(lib64_libuuid_a-extras-uuid.o):extras-uuid.c:(.rdata$CLSID_MkProtocol[CLSID_MkP
rotocol]+0x0): first defined here
C:/Program Files/mingw-w64/x86_64-7.1.0-posix-seh-rt_v5-rev0/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/7.1.0/../../../..
/x86_64-w64-mingw32/lib/../lib/libuuid.a(lib64_libuuid_a-uuid.o):uuid.c:(.rdata+0xb0): multiple definition of `CLSID_Htt
pSProtocol'
C:/Program Files/mingw-w64/x86_64-7.1.0-posix-seh-rt_v5-rev0/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/7.1.0/../../../..
/x86_64-w64-mingw32/lib/../lib/libuuid.a(lib64_libuuid_a-extras-uuid.o):extras-uuid.c:(.rdata$CLSID_HttpSProtocol[CLSID_
HttpSProtocol]+0x0): first defined here
C:/Program Files/mingw-w64/x86_64-7.1.0-posix-seh-rt_v5-rev0/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/7.1.0/../../../..
/x86_64-w64-mingw32/lib/../lib/libuuid.a(lib64_libuuid_a-uuid.o):uuid.c:(.rdata+0xc0): multiple definition of `CLSID_Htt
pProtocol'
C:/Program Files/mingw-w64/x86_64-7.1.0-posix-seh-rt_v5-rev0/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/7.1.0/../../../..
/x86_64-w64-mingw32/lib/../lib/libuuid.a(lib64_libuuid_a-extras-uuid.o):extras-uuid.c:(.rdata$CLSID_HttpProtocol[CLSID_H
ttpProtocol]+0x0): first defined here
C:/Program Files/mingw-w64/x86_64-7.1.0-posix-seh-rt_v5-rev0/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/7.1.0/../../../..
/x86_64-w64-mingw32/lib/../lib/libuuid.a(lib64_libuuid_a-uuid.o):uuid.c:(.rdata+0xd0): multiple definition of `CLSID_Gop
herProtocol'
C:/Program Files/mingw-w64/x86_64-7.1.0-posix-seh-rt_v5-rev0/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/7.1.0/../../../..
/x86_64-w64-mingw32/lib/../lib/libuuid.a(lib64_libuuid_a-extras-uuid.o):extras-uuid.c:(.rdata$CLSID_GopherProtocol[CLSID
_GopherProtocol]+0x0): first defined here
C:/Program Files/mingw-w64/x86_64-7.1.0-posix-seh-rt_v5-rev0/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/7.1.0/../../../..
/x86_64-w64-mingw32/lib/../lib/libuuid.a(lib64_libuuid_a-uuid.o):uuid.c:(.rdata+0xe0): multiple definition of `CLSID_Ftp
Protocol'
C:/Program Files/mingw-w64/x86_64-7.1.0-posix-seh-rt_v5-rev0/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/7.1.0/../../../..
/x86_64-w64-mingw32/lib/../lib/libuuid.a(lib64_libuuid_a-extras-uuid.o):extras-uuid.c:(.rdata$CLSID_FtpProtocol[CLSID_Ft
pProtocol]+0x0): first defined here
C:/Program Files/mingw-w64/x86_64-7.1.0-posix-seh-rt_v5-rev0/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/7.1.0/../../../..
/x86_64-w64-mingw32/lib/../lib/libuuid.a(lib64_libuuid_a-uuid.o):uuid.c:(.rdata+0xf0): multiple definition of `CLSID_Fil
eProtocol'
C:/Program Files/mingw-w64/x86_64-7.1.0-posix-seh-rt_v5-rev0/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/7.1.0/../../../..
/x86_64-w64-mingw32/lib/../lib/libuuid.a(lib64_libuuid_a-extras-uuid.o):extras-uuid.c:(.rdata$CLSID_FileProtocol[CLSID_F
ileProtocol]+0x0): first defined here
collect2.exe: error: ld returned 1 exit status

since the end mentions uuid, I'll try the mingw allow-multiple-definitions fix in case it also applies to mingw-64 as well

PaluMacil commented 7 years ago

Previously I used 6.2.0 gcc sjlj and now tried 7.1.0. However, the GCC install you linked to from TDM is gcc 5.1.0. Both of the later two tries (using seh) resulted in a 4 hour wait before I killed the process and a 30 minute wait before I killed the go get github.com/dontpanic92/wxGo/wx process. TDM result:

# github.com/dontpanic92/wxGo/wx
C:\Source\Go\src\github.com\dontpanic92\wxGo\wx\wx_wrap_windows.cxx: In constructor 'wxGoApp::wxGoApp()':
C:\Source\Go\src\github.com\dontpanic92\wxGo\wx\wx_wrap_windows.cxx:328:29: warning: delegating constructors only availa
ble with -std=c++11 or -std=gnu++11
   wxGoApp() : wxGoApp("wxGo") {
                             ^
C:\Source\Go\src\github.com\dontpanic92\wxGo\wx\wx_wrap_windows.cxx: In function 'void _wrap_SVGFileDC_SetClippingRegion
__SWIG_3_wx_d5626d6e57cb98ce(wxSVGFileDC*, wxRegion*)':
C:\Source\Go\src\github.com\dontpanic92\wxGo\wx\wx_wrap_windows.cxx:28801:52: warning: 'void wxDC::SetClippingRegion(con
st wxRegion&)' is deprecated [-Wdeprecated-declarations]
   (arg1)->SetClippingRegion((wxRegion const &)*arg2);
                                                    ^
In file included from C:/Source/Go/src/github.com/dontpanic92/wxGo/wxWidgets/wxWidgets-3.1.0/include/wx/wx.h:14:0,
                 from C:\Source\Go\src\github.com\dontpanic92\wxGo\wx\wx_wrap_windows.cxx:254:
C:/Source/Go/src/github.com/dontpanic92/wxGo/wxWidgets/wxWidgets-3.1.0/include/wx/dc.h:949:30: note: declared here
     wxDEPRECATED_INLINE(void SetClippingRegion(const wxRegion& region),
                              ^
C:/Source/Go/src/github.com/dontpanic92/wxGo/wxWidgets/wxWidgets-3.1.0/include/wx/defs.h:642:43: note: in definition of
macro 'wxDEPRECATED'
 #define wxDEPRECATED(x) wxDEPRECATED_DECL x
                                           ^
C:/Source/Go/src/github.com/dontpanic92/wxGo/wxWidgets/wxWidgets-3.1.0/include/wx/dc.h:949:5: note: in expansion of macr
o 'wxDEPRECATED_INLINE'
     wxDEPRECATED_INLINE(void SetClippingRegion(const wxRegion& region),
     ^
C:\Source\Go\src\github.com\dontpanic92\wxGo\wx\wx_wrap_windows.cxx: In function 'bool _wrap_DataViewCustomRenderer_Left
Click_wx_d5626d6e57cb98ce(wxDataViewCustomRenderer*, wxPoint*, wxRect*, wxDataViewModel*, wxDataViewItem*, intgo)':
C:\Source\Go\src\github.com\dontpanic92\wxGo\wx\wx_wrap_windows.cxx:69708:85: warning: 'virtual bool wxDataViewCustomRen
dererBase::LeftClick(wxPoint, wxRect, wxDataViewModel*, const wxDataViewItem&, unsigned int)' is deprecated [-Wdeprecate
d-declarations]
   result = (bool)(arg1)->LeftClick(arg2,arg3,arg4,(wxDataViewItem const &)*arg5,arg6);
                                                                                     ^
In file included from C:/Source/Go/src/github.com/dontpanic92/wxGo/wxWidgets/wxWidgets-3.1.0/include/wx/wx.h:14:0,
                 from C:\Source\Go\src\github.com\dontpanic92\wxGo\wx\wx_wrap_windows.cxx:254:
C:/Source/Go/src/github.com/dontpanic92/wxGo/wxWidgets/wxWidgets-3.1.0/include/wx/dvrenderers.h:284:22: note: declared h
ere
         virtual bool LeftClick(wxPoint WXUNUSED(cursor),
                      ^
C:/Source/Go/src/github.com/dontpanic92/wxGo/wxWidgets/wxWidgets-3.1.0/include/wx/defs.h:642:43: note: in definition of
macro 'wxDEPRECATED'
 #define wxDEPRECATED(x) wxDEPRECATED_DECL x
                                           ^
C:/Source/Go/src/github.com/dontpanic92/wxGo/wxWidgets/wxWidgets-3.1.0/include/wx/dvrenderers.h:283:5: note: in expansio
n of macro 'wxDEPRECATED_BUT_USED_INTERNALLY_INLINE'
     wxDEPRECATED_BUT_USED_INTERNALLY_INLINE(
     ^
C:\Source\Go\src\github.com\dontpanic92\wxGo\wx\wx_wrap_windows.cxx: In function 'bool _wrap_DataViewCustomRenderer_Acti
vate_wx_d5626d6e57cb98ce(wxDataViewCustomRenderer*, wxRect*, wxDataViewModel*, wxDataViewItem*, intgo)':
C:\Source\Go\src\github.com\dontpanic92\wxGo\wx\wx_wrap_windows.cxx:69736:79: warning: 'virtual bool wxDataViewCustomRen
dererBase::Activate(wxRect, wxDataViewModel*, const wxDataViewItem&, unsigned int)' is deprecated [-Wdeprecated-declarat
ions]
   result = (bool)(arg1)->Activate(arg2,arg3,(wxDataViewItem const &)*arg4,arg5);
                                                                               ^
In file included from C:/Source/Go/src/github.com/dontpanic92/wxGo/wxWidgets/wxWidgets-3.1.0/include/wx/wx.h:14:0,
                 from C:\Source\Go\src\github.com\dontpanic92\wxGo\wx\wx_wrap_windows.cxx:254:
C:/Source/Go/src/github.com/dontpanic92/wxGo/wxWidgets/wxWidgets-3.1.0/include/wx/dvrenderers.h:276:22: note: declared h
ere
         virtual bool Activate(wxRect WXUNUSED(cell),
                      ^
C:/Source/Go/src/github.com/dontpanic92/wxGo/wxWidgets/wxWidgets-3.1.0/include/wx/defs.h:642:43: note: in definition of
macro 'wxDEPRECATED'
 #define wxDEPRECATED(x) wxDEPRECATED_DECL x
                                           ^
C:/Source/Go/src/github.com/dontpanic92/wxGo/wxWidgets/wxWidgets-3.1.0/include/wx/dvrenderers.h:275:5: note: in expansio
n of macro 'wxDEPRECATED_BUT_USED_INTERNALLY_INLINE'
     wxDEPRECATED_BUT_USED_INTERNALLY_INLINE(
     ^
C:\Source\Go\src\github.com\dontpanic92\wxGo\wx\wx_wrap_windows.cxx: In function 'intgo _wrap_PGProperty_GetFlags_wx_d56
26d6e57cb98ce(wxPGProperty*)':
C:\Source\Go\src\github.com\dontpanic92\wxGo\wx\wx_wrap_windows.cxx:261039:75: warning: 'wxPGProperty::FlagType wxPGProp
erty::GetFlags() const' is deprecated: Use HasFlag or HasFlagsExact functions instead. [-Wdeprecated-declarations]
   result = (wxPGProperty::FlagType)((wxPGProperty const *)arg1)->GetFlags();
                                                                           ^
In file included from C:/Source/Go/src/github.com/dontpanic92/wxGo/wxWidgets/wxWidgets-3.1.0/include/wx/propgrid/propgri
diface.h:18:0,
                 from C:\Source\Go\src\github.com\dontpanic92\wxGo\wx\wx_wrap_windows.cxx:769:
C:/Source/Go/src/github.com/dontpanic92/wxGo/wxWidgets/wxWidgets-3.1.0/include/wx/propgrid/property.h:1794:14: note: dec
lared here
     FlagType GetFlags() const
              ^
C:\Source\Go\src\github.com\dontpanic92\wxGo\wx\wx_wrap_windows.cxx: At global scope:
C:\Source\Go\src\github.com\dontpanic92\wxGo\wx\wx_wrap_windows.cxx:268214:1: warning: 'virtual void wxWindowBase::SetIn
itialBestSize(const wxSize&)' is deprecated: use SetInitialSize() instead. [-Wdeprecated-declarations]
 }
 ^
In file included from C:/Source/Go/src/github.com/dontpanic92/wxGo/wxWidgets/wxWidgets-3.1.0/include/wx/wx.h:38:0,
                 from C:\Source\Go\src\github.com\dontpanic92\wxGo\wx\wx_wrap_windows.cxx:254:
C:/Source/Go/src/github.com/dontpanic92/wxGo/wxWidgets/wxWidgets-3.1.0/include/wx/window.h:1917:13: note: declared here
 inline void wxWindowBase::SetInitialBestSize(const wxSize& size)
             ^
C:\Source\Go\src\github.com\dontpanic92\wxGo\wx\wx_wrap_windows.cxx:268214:1: warning: 'virtual void wxWindowBase::SetIn
itialBestSize(const wxSize&)' is deprecated: use SetInitialSize() instead. [-Wdeprecated-declarations]
 }
 ^
In file included from C:/Source/Go/src/github.com/dontpanic92/wxGo/wxWidgets/wxWidgets-3.1.0/include/wx/wx.h:38:0,
                 from C:\Source\Go\src\github.com\dontpanic92\wxGo\wx\wx_wrap_windows.cxx:254:
C:/Source/Go/src/github.com/dontpanic92/wxGo/wxWidgets/wxWidgets-3.1.0/include/wx/window.h:1917:13: note: declared here
 inline void wxWindowBase::SetInitialBestSize(const wxSize& size)
             ^
C:\Source\Go\src\github.com\dontpanic92\wxGo\wx\wx_wrap_windows.cxx:268214:1: warning: 'virtual void wxWindowBase::SetIn
itialBestSize(const wxSize&)' is deprecated: use SetInitialSize() instead. [-Wdeprecated-declarations]
 }
 ^
In file included from C:/Source/Go/src/github.com/dontpanic92/wxGo/wxWidgets/wxWidgets-3.1.0/include/wx/wx.h:38:0,
                 from C:\Source\Go\src\github.com\dontpanic92\wxGo\wx\wx_wrap_windows.cxx:254:
C:/Source/Go/src/github.com/dontpanic92/wxGo/wxWidgets/wxWidgets-3.1.0/include/wx/window.h:1917:13: note: declared here
 inline void wxWindowBase::SetInitialBestSize(const wxSize& size)
             ^
C:\Source\Go\src\github.com\dontpanic92\wxGo\wx\wx_wrap_windows.cxx:268214:1: warning: 'virtual void wxWindowBase::SetIn
itialBestSize(const wxSize&)' is deprecated: use SetInitialSize() instead. [-Wdeprecated-declarations]
 }
 ^
In file included from C:/Source/Go/src/github.com/dontpanic92/wxGo/wxWidgets/wxWidgets-3.1.0/include/wx/wx.h:38:0,
                 from C:\Source\Go\src\github.com\dontpanic92\wxGo\wx\wx_wrap_windows.cxx:254:
C:/Source/Go/src/github.com/dontpanic92/wxGo/wxWidgets/wxWidgets-3.1.0/include/wx/window.h:1917:13: note: declared here
 inline void wxWindowBase::SetInitialBestSize(const wxSize& size)
             ^
C:\Source\Go\src\github.com\dontpanic92\wxGo\wx\wx_wrap_windows.cxx:268214:1: warning: 'virtual void wxWindowBase::SetIn
itialBestSize(const wxSize&)' is deprecated: use SetInitialSize() instead. [-Wdeprecated-declarations]
 }
 ^
In file included from C:/Source/Go/src/github.com/dontpanic92/wxGo/wxWidgets/wxWidgets-3.1.0/include/wx/wx.h:38:0,
                 from C:\Source\Go\src\github.com\dontpanic92\wxGo\wx\wx_wrap_windows.cxx:254:
C:/Source/Go/src/github.com/dontpanic92/wxGo/wxWidgets/wxWidgets-3.1.0/include/wx/window.h:1917:13: note: declared here
 inline void wxWindowBase::SetInitialBestSize(const wxSize& size)
             ^
C:\Source\Go\src\github.com\dontpanic92\wxGo\wx\wx_wrap_windows.cxx:268214:1: warning: 'virtual void wxWindowBase::SetIn
itialBestSize(const wxSize&)' is deprecated: use SetInitialSize() instead. [-Wdeprecated-declarations]
 }
 ^
In file included from C:/Source/Go/src/github.com/dontpanic92/wxGo/wxWidgets/wxWidgets-3.1.0/include/wx/wx.h:38:0,
                 from C:\Source\Go\src\github.com\dontpanic92\wxGo\wx\wx_wrap_windows.cxx:254:
C:/Source/Go/src/github.com/dontpanic92/wxGo/wxWidgets/wxWidgets-3.1.0/include/wx/window.h:1917:13: note: declared here
 inline void wxWindowBase::SetInitialBestSize(const wxSize& size)
             ^
C:\Source\Go\src\github.com\dontpanic92\wxGo\wx\wx_wrap_windows.cxx:268214:1: warning: 'virtual void wxWindowBase::SetIn
itialBestSize(const wxSize&)' is deprecated: use SetInitialSize() instead. [-Wdeprecated-declarations]
 }
 ^
In file included from C:/Source/Go/src/github.com/dontpanic92/wxGo/wxWidgets/wxWidgets-3.1.0/include/wx/wx.h:38:0,
                 from C:\Source\Go\src\github.com\dontpanic92\wxGo\wx\wx_wrap_windows.cxx:254:
C:/Source/Go/src/github.com/dontpanic92/wxGo/wxWidgets/wxWidgets-3.1.0/include/wx/window.h:1917:13: note: declared here
 inline void wxWindowBase::SetInitialBestSize(const wxSize& size)
             ^
C:\Source\Go\src\github.com\dontpanic92\wxGo\wx\wx_wrap_windows.cxx:268214:1: warning: 'virtual void wxWindowBase::SetIn
itialBestSize(const wxSize&)' is deprecated: use SetInitialSize() instead. [-Wdeprecated-declarations]
 }
 ^
In file included from C:/Source/Go/src/github.com/dontpanic92/wxGo/wxWidgets/wxWidgets-3.1.0/include/wx/wx.h:38:0,
                 from C:\Source\Go\src\github.com\dontpanic92\wxGo\wx\wx_wrap_windows.cxx:254:
C:/Source/Go/src/github.com/dontpanic92/wxGo/wxWidgets/wxWidgets-3.1.0/include/wx/window.h:1917:13: note: declared here
 inline void wxWindowBase::SetInitialBestSize(const wxSize& size)
             ^
C:\Source\Go\src\github.com\dontpanic92\wxGo\wx\wx_wrap_windows.cxx:268214:1: warning: 'virtual void wxWindowBase::SetIn
itialBestSize(const wxSize&)' is deprecated: use SetInitialSize() instead. [-Wdeprecated-declarations]
 }
 ^
In file included from C:/Source/Go/src/github.com/dontpanic92/wxGo/wxWidgets/wxWidgets-3.1.0/include/wx/wx.h:38:0,
                 from C:\Source\Go\src\github.com\dontpanic92\wxGo\wx\wx_wrap_windows.cxx:254:
C:/Source/Go/src/github.com/dontpanic92/wxGo/wxWidgets/wxWidgets-3.1.0/include/wx/window.h:1917:13: note: declared here
 inline void wxWindowBase::SetInitialBestSize(const wxSize& size)
             ^
C:\Source\Go\src\github.com\dontpanic92\wxGo\wx\wx_wrap_windows.cxx:268214:1: warning: 'virtual void wxWindowBase::SetIn
itialBestSize(const wxSize&)' is deprecated: use SetInitialSize() instead. [-Wdeprecated-declarations]
 }
 ^
In file included from C:/Source/Go/src/github.com/dontpanic92/wxGo/wxWidgets/wxWidgets-3.1.0/include/wx/wx.h:38:0,
                 from C:\Source\Go\src\github.com\dontpanic92\wxGo\wx\wx_wrap_windows.cxx:254:
C:/Source/Go/src/github.com/dontpanic92/wxGo/wxWidgets/wxWidgets-3.1.0/include/wx/window.h:1917:13: note: declared here
 inline void wxWindowBase::SetInitialBestSize(const wxSize& size)
             ^
C:\Source\Go\src\github.com\dontpanic92\wxGo\wx\wx_wrap_windows.cxx:268214:1: warning: 'virtual void wxWindowBase::SetIn
itialBestSize(const wxSize&)' is deprecated: use SetInitialSize() instead. [-Wdeprecated-declarations]
 }
 ^
In file included from C:/Source/Go/src/github.com/dontpanic92/wxGo/wxWidgets/wxWidgets-3.1.0/include/wx/wx.h:38:0,
                 from C:\Source\Go\src\github.com\dontpanic92\wxGo\wx\wx_wrap_windows.cxx:254:
C:/Source/Go/src/github.com/dontpanic92/wxGo/wxWidgets/wxWidgets-3.1.0/include/wx/window.h:1917:13: note: declared here
 inline void wxWindowBase::SetInitialBestSize(const wxSize& size)
             ^
C:\Source\Go\src\github.com\dontpanic92\wxGo\wx\wx_wrap_windows.cxx:268214:1: warning: 'virtual void wxWindowBase::SetIn
itialBestSize(const wxSize&)' is deprecated: use SetInitialSize() instead. [-Wdeprecated-declarations]
 }
 ^
In file included from C:/Source/Go/src/github.com/dontpanic92/wxGo/wxWidgets/wxWidgets-3.1.0/include/wx/wx.h:38:0,
                 from C:\Source\Go\src\github.com\dontpanic92\wxGo\wx\wx_wrap_windows.cxx:254:
C:/Source/Go/src/github.com/dontpanic92/wxGo/wxWidgets/wxWidgets-3.1.0/include/wx/window.h:1917:13: note: declared here
 inline void wxWindowBase::SetInitialBestSize(const wxSize& size)
             ^
C:\Source\Go\src\github.com\dontpanic92\wxGo\wx\wx_wrap_windows.cxx:268214:1: warning: 'virtual void wxWindowBase::SetIn
itialBestSize(const wxSize&)' is deprecated: use SetInitialSize() instead. [-Wdeprecated-declarations]
 }
 ^
In file included from C:/Source/Go/src/github.com/dontpanic92/wxGo/wxWidgets/wxWidgets-3.1.0/include/wx/wx.h:38:0,
                 from C:\Source\Go\src\github.com\dontpanic92\wxGo\wx\wx_wrap_windows.cxx:254:
C:/Source/Go/src/github.com/dontpanic92/wxGo/wxWidgets/wxWidgets-3.1.0/include/wx/window.h:1917:13: note: declared here
 inline void wxWindowBase::SetInitialBestSize(const wxSize& size)
             ^
C:\Source\Go\src\github.com\dontpanic92\wxGo\wx\wx_wrap_windows.cxx:268214:1: warning: 'virtual void wxWindowBase::SetIn
itialBestSize(const wxSize&)' is deprecated: use SetInitialSize() instead. [-Wdeprecated-declarations]
 }
 ^
In file included from C:/Source/Go/src/github.com/dontpanic92/wxGo/wxWidgets/wxWidgets-3.1.0/include/wx/wx.h:38:0,
                 from C:\Source\Go\src\github.com\dontpanic92\wxGo\wx\wx_wrap_windows.cxx:254:
C:/Source/Go/src/github.com/dontpanic92/wxGo/wxWidgets/wxWidgets-3.1.0/include/wx/window.h:1917:13: note: declared here
 inline void wxWindowBase::SetInitialBestSize(const wxSize& size)
             ^
C:\Source\Go\src\github.com\dontpanic92\wxGo\wx\wx_wrap_windows.cxx:268214:1: warning: 'virtual void wxWindowBase::SetIn
itialBestSize(const wxSize&)' is deprecated: use SetInitialSize() instead. [-Wdeprecated-declarations]
 }
 ^
In file included from C:/Source/Go/src/github.com/dontpanic92/wxGo/wxWidgets/wxWidgets-3.1.0/include/wx/wx.h:38:0,
                 from C:\Source\Go\src\github.com\dontpanic92\wxGo\wx\wx_wrap_windows.cxx:254:
C:/Source/Go/src/github.com/dontpanic92/wxGo/wxWidgets/wxWidgets-3.1.0/include/wx/window.h:1917:13: note: declared here
 inline void wxWindowBase::SetInitialBestSize(const wxSize& size)
             ^
C:\Source\Go\src\github.com\dontpanic92\wxGo\wx\wx_wrap_windows.cxx:268214:1: warning: 'virtual void wxWindowBase::SetIn
itialBestSize(const wxSize&)' is deprecated: use SetInitialSize() instead. [-Wdeprecated-declarations]
 }
 ^
In file included from C:/Source/Go/src/github.com/dontpanic92/wxGo/wxWidgets/wxWidgets-3.1.0/include/wx/wx.h:38:0,
                 from C:\Source\Go\src\github.com\dontpanic92\wxGo\wx\wx_wrap_windows.cxx:254:
C:/Source/Go/src/github.com/dontpanic92/wxGo/wxWidgets/wxWidgets-3.1.0/include/wx/window.h:1917:13: note: declared here
 inline void wxWindowBase::SetInitialBestSize(const wxSize& size)
             ^
C:\Source\Go\src\github.com\dontpanic92\wxGo\wx\wx_wrap_windows.cxx:268214:1: warning: 'virtual void wxWindowBase::SetIn
itialBestSize(const wxSize&)' is deprecated: use SetInitialSize() instead. [-Wdeprecated-declarations]
 }
 ^
In file included from C:/Source/Go/src/github.com/dontpanic92/wxGo/wxWidgets/wxWidgets-3.1.0/include/wx/wx.h:38:0,
                 from C:\Source\Go\src\github.com\dontpanic92\wxGo\wx\wx_wrap_windows.cxx:254:
C:/Source/Go/src/github.com/dontpanic92/wxGo/wxWidgets/wxWidgets-3.1.0/include/wx/window.h:1917:13: note: declared here
 inline void wxWindowBase::SetInitialBestSize(const wxSize& size)
             ^
C:\Source\Go\src\github.com\dontpanic92\wxGo\wx\wx_wrap_windows.cxx:268214:1: warning: 'virtual void wxWindowBase::SetIn
itialBestSize(const wxSize&)' is deprecated: use SetInitialSize() instead. [-Wdeprecated-declarations]
 }
 ^
In file included from C:/Source/Go/src/github.com/dontpanic92/wxGo/wxWidgets/wxWidgets-3.1.0/include/wx/wx.h:38:0,
                 from C:\Source\Go\src\github.com\dontpanic92\wxGo\wx\wx_wrap_windows.cxx:254:
C:/Source/Go/src/github.com/dontpanic92/wxGo/wxWidgets/wxWidgets-3.1.0/include/wx/window.h:1917:13: note: declared here
 inline void wxWindowBase::SetInitialBestSize(const wxSize& size)
             ^
C:\Source\Go\src\github.com\dontpanic92\wxGo\wx\wx_wrap_windows.cxx:268214:1: warning: 'virtual void wxWindowBase::SetIn
itialBestSize(const wxSize&)' is deprecated: use SetInitialSize() instead. [-Wdeprecated-declarations]
 }
 ^
In file included from C:/Source/Go/src/github.com/dontpanic92/wxGo/wxWidgets/wxWidgets-3.1.0/include/wx/wx.h:38:0,
                 from C:\Source\Go\src\github.com\dontpanic92\wxGo\wx\wx_wrap_windows.cxx:254:
C:/Source/Go/src/github.com/dontpanic92/wxGo/wxWidgets/wxWidgets-3.1.0/include/wx/window.h:1917:13: note: declared here
 inline void wxWindowBase::SetInitialBestSize(const wxSize& size)
             ^
C:\Source\Go\src\github.com\dontpanic92\wxGo\wx\wx_wrap_windows.cxx:268214:1: warning: 'virtual void wxWindowBase::SetIn
itialBestSize(const wxSize&)' is deprecated: use SetInitialSize() instead. [-Wdeprecated-declarations]
 }
 ^
In file included from C:/Source/Go/src/github.com/dontpanic92/wxGo/wxWidgets/wxWidgets-3.1.0/include/wx/wx.h:38:0,
                 from C:\Source\Go\src\github.com\dontpanic92\wxGo\wx\wx_wrap_windows.cxx:254:
C:/Source/Go/src/github.com/dontpanic92/wxGo/wxWidgets/wxWidgets-3.1.0/include/wx/window.h:1917:13: note: declared here
 inline void wxWindowBase::SetInitialBestSize(const wxSize& size)
             ^
C:\Source\Go\src\github.com\dontpanic92\wxGo\wx\wx_wrap_windows.cxx:268214:1: warning: 'virtual void wxWindowBase::SetIn
itialBestSize(const wxSize&)' is deprecated: use SetInitialSize() instead. [-Wdeprecated-declarations]
 }
 ^
In file included from C:/Source/Go/src/github.com/dontpanic92/wxGo/wxWidgets/wxWidgets-3.1.0/include/wx/wx.h:38:0,
                 from C:\Source\Go\src\github.com\dontpanic92\wxGo\wx\wx_wrap_windows.cxx:254:
C:/Source/Go/src/github.com/dontpanic92/wxGo/wxWidgets/wxWidgets-3.1.0/include/wx/window.h:1917:13: note: declared here
 inline void wxWindowBase::SetInitialBestSize(const wxSize& size)
             ^
C:\Source\Go\src\github.com\dontpanic92\wxGo\wx\wx_wrap_windows.cxx:268214:1: warning: 'virtual void wxWindowBase::SetIn
itialBestSize(const wxSize&)' is deprecated: use SetInitialSize() instead. [-Wdeprecated-declarations]
 }
 ^
In file included from C:/Source/Go/src/github.com/dontpanic92/wxGo/wxWidgets/wxWidgets-3.1.0/include/wx/wx.h:38:0,
                 from C:\Source\Go\src\github.com\dontpanic92\wxGo\wx\wx_wrap_windows.cxx:254:
C:/Source/Go/src/github.com/dontpanic92/wxGo/wxWidgets/wxWidgets-3.1.0/include/wx/window.h:1917:13: note: declared here
 inline void wxWindowBase::SetInitialBestSize(const wxSize& size)
             ^
C:\Source\Go\src\github.com\dontpanic92\wxGo\wx\wx_wrap_windows.cxx:268214:1: warning: 'virtual void wxWindowBase::SetIn
itialBestSize(const wxSize&)' is deprecated: use SetInitialSize() instead. [-Wdeprecated-declarations]
 }
 ^
In file included from C:/Source/Go/src/github.com/dontpanic92/wxGo/wxWidgets/wxWidgets-3.1.0/include/wx/wx.h:38:0,
                 from C:\Source\Go\src\github.com\dontpanic92\wxGo\wx\wx_wrap_windows.cxx:254:
C:/Source/Go/src/github.com/dontpanic92/wxGo/wxWidgets/wxWidgets-3.1.0/include/wx/window.h:1917:13: note: declared here
 inline void wxWindowBase::SetInitialBestSize(const wxSize& size)
             ^
C:\Source\Go\src\github.com\dontpanic92\wxGo\wx\wx_wrap_windows.cxx:268214:1: warning: 'virtual void wxWindowBase::SetIn
itialBestSize(const wxSize&)' is deprecated: use SetInitialSize() instead. [-Wdeprecated-declarations]
 }
 ^
In file included from C:/Source/Go/src/github.com/dontpanic92/wxGo/wxWidgets/wxWidgets-3.1.0/include/wx/wx.h:38:0,
                 from C:\Source\Go\src\github.com\dontpanic92\wxGo\wx\wx_wrap_windows.cxx:254:
C:/Source/Go/src/github.com/dontpanic92/wxGo/wxWidgets/wxWidgets-3.1.0/include/wx/window.h:1917:13: note: declared here
 inline void wxWindowBase::SetInitialBestSize(const wxSize& size)
             ^
C:\Source\Go\src\github.com\dontpanic92\wxGo\wx\wx_wrap_windows.cxx:268214:1: warning: 'virtual void wxWindowBase::SetIn
itialBestSize(const wxSize&)' is deprecated: use SetInitialSize() instead. [-Wdeprecated-declarations]
 }
 ^
In file included from C:/Source/Go/src/github.com/dontpanic92/wxGo/wxWidgets/wxWidgets-3.1.0/include/wx/wx.h:38:0,
                 from C:\Source\Go\src\github.com\dontpanic92\wxGo\wx\wx_wrap_windows.cxx:254:
C:/Source/Go/src/github.com/dontpanic92/wxGo/wxWidgets/wxWidgets-3.1.0/include/wx/window.h:1917:13: note: declared here
 inline void wxWindowBase::SetInitialBestSize(const wxSize& size)
             ^
C:\Source\Go\src\github.com\dontpanic92\wxGo\wx\wx_wrap_windows.cxx:268214:1: warning: 'virtual void wxWindowBase::SetIn
itialBestSize(const wxSize&)' is deprecated: use SetInitialSize() instead. [-Wdeprecated-declarations]
 }
 ^
In file included from C:/Source/Go/src/github.com/dontpanic92/wxGo/wxWidgets/wxWidgets-3.1.0/include/wx/wx.h:38:0,
                 from C:\Source\Go\src\github.com\dontpanic92\wxGo\wx\wx_wrap_windows.cxx:254:
C:/Source/Go/src/github.com/dontpanic92/wxGo/wxWidgets/wxWidgets-3.1.0/include/wx/window.h:1917:13: note: declared here
 inline void wxWindowBase::SetInitialBestSize(const wxSize& size)
             ^
C:\Source\Go\src\github.com\dontpanic92\wxGo\wx\wx_wrap_windows.cxx:268214:1: warning: 'virtual void wxWindowBase::SetIn
itialBestSize(const wxSize&)' is deprecated: use SetInitialSize() instead. [-Wdeprecated-declarations]
 }
 ^
In file included from C:/Source/Go/src/github.com/dontpanic92/wxGo/wxWidgets/wxWidgets-3.1.0/include/wx/wx.h:38:0,
                 from C:\Source\Go\src\github.com\dontpanic92\wxGo\wx\wx_wrap_windows.cxx:254:
C:/Source/Go/src/github.com/dontpanic92/wxGo/wxWidgets/wxWidgets-3.1.0/include/wx/window.h:1917:13: note: declared here
 inline void wxWindowBase::SetInitialBestSize(const wxSize& size)
             ^
C:\Source\Go\src\github.com\dontpanic92\wxGo\wx\wx_wrap_windows.cxx:268214:1: warning: 'virtual void wxWindowBase::SetIn
itialBestSize(const wxSize&)' is deprecated: use SetInitialSize() instead. [-Wdeprecated-declarations]
 }
 ^
In file included from C:/Source/Go/src/github.com/dontpanic92/wxGo/wxWidgets/wxWidgets-3.1.0/include/wx/wx.h:38:0,
                 from C:\Source\Go\src\github.com\dontpanic92\wxGo\wx\wx_wrap_windows.cxx:254:
C:/Source/Go/src/github.com/dontpanic92/wxGo/wxWidgets/wxWidgets-3.1.0/include/wx/window.h:1917:13: note: declared here
 inline void wxWindowBase::SetInitialBestSize(const wxSize& size)
             ^
C:\Source\Go\src\github.com\dontpanic92\wxGo\wx\wx_wrap_windows.cxx:268214:1: warning: 'virtual void wxWindowBase::SetIn
itialBestSize(const wxSize&)' is deprecated: use SetInitialSize() instead. [-Wdeprecated-declarations]
 }
 ^
In file included from C:/Source/Go/src/github.com/dontpanic92/wxGo/wxWidgets/wxWidgets-3.1.0/include/wx/wx.h:38:0,
                 from C:\Source\Go\src\github.com\dontpanic92\wxGo\wx\wx_wrap_windows.cxx:254:
C:/Source/Go/src/github.com/dontpanic92/wxGo/wxWidgets/wxWidgets-3.1.0/include/wx/window.h:1917:13: note: declared here
 inline void wxWindowBase::SetInitialBestSize(const wxSize& size)
             ^
C:\Source\Go\src\github.com\dontpanic92\wxGo\wx\wx_wrap_windows.cxx:268214:1: warning: 'virtual void wxWindowBase::SetIn
itialBestSize(const wxSize&)' is deprecated: use SetInitialSize() instead. [-Wdeprecated-declarations]
 }
 ^
In file included from C:/Source/Go/src/github.com/dontpanic92/wxGo/wxWidgets/wxWidgets-3.1.0/include/wx/wx.h:38:0,
                 from C:\Source\Go\src\github.com\dontpanic92\wxGo\wx\wx_wrap_windows.cxx:254:
C:/Source/Go/src/github.com/dontpanic92/wxGo/wxWidgets/wxWidgets-3.1.0/include/wx/window.h:1917:13: note: declared here
 inline void wxWindowBase::SetInitialBestSize(const wxSize& size)
             ^
C:\Source\Go\src\github.com\dontpanic92\wxGo\wx\wx_wrap_windows.cxx:268214:1: warning: 'virtual void wxWindowBase::SetIn
itialBestSize(const wxSize&)' is deprecated: use SetInitialSize() instead. [-Wdeprecated-declarations]
 }
 ^
In file included from C:/Source/Go/src/github.com/dontpanic92/wxGo/wxWidgets/wxWidgets-3.1.0/include/wx/wx.h:38:0,
                 from C:\Source\Go\src\github.com\dontpanic92\wxGo\wx\wx_wrap_windows.cxx:254:
C:/Source/Go/src/github.com/dontpanic92/wxGo/wxWidgets/wxWidgets-3.1.0/include/wx/window.h:1917:13: note: declared here
 inline void wxWindowBase::SetInitialBestSize(const wxSize& size)
             ^
C:\Source\Go\src\github.com\dontpanic92\wxGo\wx\wx_wrap_windows.cxx:268214:1: warning: 'virtual void wxWindowBase::SetIn
itialBestSize(const wxSize&)' is deprecated: use SetInitialSize() instead. [-Wdeprecated-declarations]
 }
 ^
In file included from C:/Source/Go/src/github.com/dontpanic92/wxGo/wxWidgets/wxWidgets-3.1.0/include/wx/wx.h:38:0,
                 from C:\Source\Go\src\github.com\dontpanic92\wxGo\wx\wx_wrap_windows.cxx:254:
C:/Source/Go/src/github.com/dontpanic92/wxGo/wxWidgets/wxWidgets-3.1.0/include/wx/window.h:1917:13: note: declared here
 inline void wxWindowBase::SetInitialBestSize(const wxSize& size)
             ^
C:\Source\Go\src\github.com\dontpanic92\wxGo\wx\wx_wrap_windows.cxx:268214:1: warning: 'virtual void wxWindowBase::SetIn
itialBestSize(const wxSize&)' is deprecated: use SetInitialSize() instead. [-Wdeprecated-declarations]
 }
 ^
In file included from C:/Source/Go/src/github.com/dontpanic92/wxGo/wxWidgets/wxWidgets-3.1.0/include/wx/wx.h:38:0,
                 from C:\Source\Go\src\github.com\dontpanic92\wxGo\wx\wx_wrap_windows.cxx:254:
C:/Source/Go/src/github.com/dontpanic92/wxGo/wxWidgets/wxWidgets-3.1.0/include/wx/window.h:1917:13: note: declared here
 inline void wxWindowBase::SetInitialBestSize(const wxSize& size)
             ^
C:\Source\Go\src\github.com\dontpanic92\wxGo\wx\wx_wrap_windows.cxx:268214:1: warning: 'virtual void wxWindowBase::SetIn
itialBestSize(const wxSize&)' is deprecated: use SetInitialSize() instead. [-Wdeprecated-declarations]
 }
 ^
In file included from C:/Source/Go/src/github.com/dontpanic92/wxGo/wxWidgets/wxWidgets-3.1.0/include/wx/wx.h:38:0,
                 from C:\Source\Go\src\github.com\dontpanic92\wxGo\wx\wx_wrap_windows.cxx:254:
C:/Source/Go/src/github.com/dontpanic92/wxGo/wxWidgets/wxWidgets-3.1.0/include/wx/window.h:1917:13: note: declared here
 inline void wxWindowBase::SetInitialBestSize(const wxSize& size)
             ^
C:\Source\Go\src\github.com\dontpanic92\wxGo\wx\wx_wrap_windows.cxx:268214:1: warning: 'virtual void wxWindowBase::SetIn
itialBestSize(const wxSize&)' is deprecated: use SetInitialSize() instead. [-Wdeprecated-declarations]
 }
 ^
In file included from C:/Source/Go/src/github.com/dontpanic92/wxGo/wxWidgets/wxWidgets-3.1.0/include/wx/wx.h:38:0,
                 from C:\Source\Go\src\github.com\dontpanic92\wxGo\wx\wx_wrap_windows.cxx:254:
C:/Source/Go/src/github.com/dontpanic92/wxGo/wxWidgets/wxWidgets-3.1.0/include/wx/window.h:1917:13: note: declared here
 inline void wxWindowBase::SetInitialBestSize(const wxSize& size)
             ^
C:\Source\Go\src\github.com\dontpanic92\wxGo\wx\wx_wrap_windows.cxx:268214:1: warning: 'virtual void wxWindowBase::SetIn
itialBestSize(const wxSize&)' is deprecated: use SetInitialSize() instead. [-Wdeprecated-declarations]
 }
 ^
In file included from C:/Source/Go/src/github.com/dontpanic92/wxGo/wxWidgets/wxWidgets-3.1.0/include/wx/wx.h:38:0,
                 from C:\Source\Go\src\github.com\dontpanic92\wxGo\wx\wx_wrap_windows.cxx:254:
C:/Source/Go/src/github.com/dontpanic92/wxGo/wxWidgets/wxWidgets-3.1.0/include/wx/window.h:1917:13: note: declared here
 inline void wxWindowBase::SetInitialBestSize(const wxSize& size)
             ^
C:\Source\Go\src\github.com\dontpanic92\wxGo\wx\wx_wrap_windows.cxx:268214:1: warning: 'virtual void wxWindowBase::SetIn
itialBestSize(const wxSize&)' is deprecated: use SetInitialSize() instead. [-Wdeprecated-declarations]
 }
 ^
In file included from C:/Source/Go/src/github.com/dontpanic92/wxGo/wxWidgets/wxWidgets-3.1.0/include/wx/wx.h:38:0,
                 from C:\Source\Go\src\github.com\dontpanic92\wxGo\wx\wx_wrap_windows.cxx:254:
C:/Source/Go/src/github.com/dontpanic92/wxGo/wxWidgets/wxWidgets-3.1.0/include/wx/window.h:1917:13: note: declared here
 inline void wxWindowBase::SetInitialBestSize(const wxSize& size)
             ^
C:\Source\Go\src\github.com\dontpanic92\wxGo\wx\wx_wrap_windows.cxx:268214:1: warning: 'virtual void wxWindowBase::SetIn
itialBestSize(const wxSize&)' is deprecated: use SetInitialSize() instead. [-Wdeprecated-declarations]
 }
 ^
In file included from C:/Source/Go/src/github.com/dontpanic92/wxGo/wxWidgets/wxWidgets-3.1.0/include/wx/wx.h:38:0,
                 from C:\Source\Go\src\github.com\dontpanic92\wxGo\wx\wx_wrap_windows.cxx:254:
C:/Source/Go/src/github.com/dontpanic92/wxGo/wxWidgets/wxWidgets-3.1.0/include/wx/window.h:1917:13: note: declared here
 inline void wxWindowBase::SetInitialBestSize(const wxSize& size)
             ^
C:\Source\Go\src\github.com\dontpanic92\wxGo\wx\wx_wrap_windows.cxx:268214:1: warning: 'virtual void wxWindowBase::SetIn
itialBestSize(const wxSize&)' is deprecated: use SetInitialSize() instead. [-Wdeprecated-declarations]
 }
 ^
In file included from C:/Source/Go/src/github.com/dontpanic92/wxGo/wxWidgets/wxWidgets-3.1.0/include/wx/wx.h:38:0,
                 from C:\Source\Go\src\github.com\dontpanic92\wxGo\wx\wx_wrap_windows.cxx:254:
C:/Source/Go/src/github.com/dontpanic92/wxGo/wxWidgets/wxWidgets-3.1.0/include/wx/window.h:1917:13: note: declared here
 inline void wxWindowBase::SetInitialBestSize(const wxSize& size)
             ^
C:\Source\Go\src\github.com\dontpanic92\wxGo\wx\wx_wrap_windows.cxx:268214:1: warning: 'virtual void wxWindowBase::SetIn
itialBestSize(const wxSize&)' is deprecated: use SetInitialSize() instead. [-Wdeprecated-declarations]
 }
 ^
In file included from C:/Source/Go/src/github.com/dontpanic92/wxGo/wxWidgets/wxWidgets-3.1.0/include/wx/wx.h:38:0,
                 from C:\Source\Go\src\github.com\dontpanic92\wxGo\wx\wx_wrap_windows.cxx:254:
C:/Source/Go/src/github.com/dontpanic92/wxGo/wxWidgets/wxWidgets-3.1.0/include/wx/window.h:1917:13: note: declared here
 inline void wxWindowBase::SetInitialBestSize(const wxSize& size)
             ^
C:\Source\Go\src\github.com\dontpanic92\wxGo\wx\wx_wrap_windows.cxx:268214:1: warning: 'virtual void wxWindowBase::SetIn
itialBestSize(const wxSize&)' is deprecated: use SetInitialSize() instead. [-Wdeprecated-declarations]
 }
 ^
In file included from C:/Source/Go/src/github.com/dontpanic92/wxGo/wxWidgets/wxWidgets-3.1.0/include/wx/wx.h:38:0,
                 from C:\Source\Go\src\github.com\dontpanic92\wxGo\wx\wx_wrap_windows.cxx:254:
C:/Source/Go/src/github.com/dontpanic92/wxGo/wxWidgets/wxWidgets-3.1.0/include/wx/window.h:1917:13: note: declared here
 inline void wxWindowBase::SetInitialBestSize(const wxSize& size)
             ^
C:\Source\Go\src\github.com\dontpanic92\wxGo\wx\wx_wrap_windows.cxx:268214:1: warning: 'virtual void wxWindowBase::SetIn
itialBestSize(const wxSize&)' is deprecated: use SetInitialSize() instead. [-Wdeprecated-declarations]
 }
 ^
In file included from C:/Source/Go/src/github.com/dontpanic92/wxGo/wxWidgets/wxWidgets-3.1.0/include/wx/wx.h:38:0,
                 from C:\Source\Go\src\github.com\dontpanic92\wxGo\wx\wx_wrap_windows.cxx:254:
C:/Source/Go/src/github.com/dontpanic92/wxGo/wxWidgets/wxWidgets-3.1.0/include/wx/window.h:1917:13: note: declared here
 inline void wxWindowBase::SetInitialBestSize(const wxSize& size)
             ^
C:\Source\Go\src\github.com\dontpanic92\wxGo\wx\wx_wrap_windows.cxx:268214:1: warning: 'virtual void wxWindowBase::SetIn
itialBestSize(const wxSize&)' is deprecated: use SetInitialSize() instead. [-Wdeprecated-declarations]
 }
 ^
In file included from C:/Source/Go/src/github.com/dontpanic92/wxGo/wxWidgets/wxWidgets-3.1.0/include/wx/wx.h:38:0,
                 from C:\Source\Go\src\github.com\dontpanic92\wxGo\wx\wx_wrap_windows.cxx:254:
C:/Source/Go/src/github.com/dontpanic92/wxGo/wxWidgets/wxWidgets-3.1.0/include/wx/window.h:1917:13: note: declared here
 inline void wxWindowBase::SetInitialBestSize(const wxSize& size)
             ^
C:\Source\Go\src\github.com\dontpanic92\wxGo\wx\wx_wrap_windows.cxx:268214:1: warning: 'virtual void wxWindowBase::SetIn
itialBestSize(const wxSize&)' is deprecated: use SetInitialSize() instead. [-Wdeprecated-declarations]
 }
 ^
In file included from C:/Source/Go/src/github.com/dontpanic92/wxGo/wxWidgets/wxWidgets-3.1.0/include/wx/wx.h:38:0,
                 from C:\Source\Go\src\github.com\dontpanic92\wxGo\wx\wx_wrap_windows.cxx:254:
C:/Source/Go/src/github.com/dontpanic92/wxGo/wxWidgets/wxWidgets-3.1.0/include/wx/window.h:1917:13: note: declared here
 inline void wxWindowBase::SetInitialBestSize(const wxSize& size)
             ^
C:\Source\Go\src\github.com\dontpanic92\wxGo\wx\wx_wrap_windows.cxx:268214:1: warning: 'virtual void wxWindowBase::SetIn
itialBestSize(const wxSize&)' is deprecated: use SetInitialSize() instead. [-Wdeprecated-declarations]
 }
 ^
In file included from C:/Source/Go/src/github.com/dontpanic92/wxGo/wxWidgets/wxWidgets-3.1.0/include/wx/wx.h:38:0,
                 from C:\Source\Go\src\github.com\dontpanic92\wxGo\wx\wx_wrap_windows.cxx:254:
C:/Source/Go/src/github.com/dontpanic92/wxGo/wxWidgets/wxWidgets-3.1.0/include/wx/window.h:1917:13: note: declared here
 inline void wxWindowBase::SetInitialBestSize(const wxSize& size)
             ^
C:\Source\Go\src\github.com\dontpanic92\wxGo\wx\wx_wrap_windows.cxx:268214:1: warning: 'virtual void wxWindowBase::SetIn
itialBestSize(const wxSize&)' is deprecated: use SetInitialSize() instead. [-Wdeprecated-declarations]
 }
 ^
In file included from C:/Source/Go/src/github.com/dontpanic92/wxGo/wxWidgets/wxWidgets-3.1.0/include/wx/wx.h:38:0,
                 from C:\Source\Go\src\github.com\dontpanic92\wxGo\wx\wx_wrap_windows.cxx:254:
C:/Source/Go/src/github.com/dontpanic92/wxGo/wxWidgets/wxWidgets-3.1.0/include/wx/window.h:1917:13: note: declared here
 inline void wxWindowBase::SetInitialBestSize(const wxSize& size)
             ^
C:\Source\Go\src\github.com\dontpanic92\wxGo\wx\wx_wrap_windows.cxx:268214:1: warning: 'virtual void wxWindowBase::SetIn
itialBestSize(const wxSize&)' is deprecated: use SetInitialSize() instead. [-Wdeprecated-declarations]
 }
 ^
In file included from C:/Source/Go/src/github.com/dontpanic92/wxGo/wxWidgets/wxWidgets-3.1.0/include/wx/wx.h:38:0,
                 from C:\Source\Go\src\github.com\dontpanic92\wxGo\wx\wx_wrap_windows.cxx:254:
C:/Source/Go/src/github.com/dontpanic92/wxGo/wxWidgets/wxWidgets-3.1.0/include/wx/window.h:1917:13: note: declared here
 inline void wxWindowBase::SetInitialBestSize(const wxSize& size)
             ^
C:\Source\Go\src\github.com\dontpanic92\wxGo\wx\wx_wrap_windows.cxx:268214:1: warning: 'virtual void wxWindowBase::SetIn
itialBestSize(const wxSize&)' is deprecated: use SetInitialSize() instead. [-Wdeprecated-declarations]
 }
 ^
In file included from C:/Source/Go/src/github.com/dontpanic92/wxGo/wxWidgets/wxWidgets-3.1.0/include/wx/wx.h:38:0,
                 from C:\Source\Go\src\github.com\dontpanic92\wxGo\wx\wx_wrap_windows.cxx:254:
C:/Source/Go/src/github.com/dontpanic92/wxGo/wxWidgets/wxWidgets-3.1.0/include/wx/window.h:1917:13: note: declared here
 inline void wxWindowBase::SetInitialBestSize(const wxSize& size)
             ^
C:\Source\Go\src\github.com\dontpanic92\wxGo\wx\wx_wrap_windows.cxx:268214:1: warning: 'virtual void wxWindowBase::SetIn
itialBestSize(const wxSize&)' is deprecated: use SetInitialSize() instead. [-Wdeprecated-declarations]
 }
 ^
In file included from C:/Source/Go/src/github.com/dontpanic92/wxGo/wxWidgets/wxWidgets-3.1.0/include/wx/wx.h:38:0,
                 from C:\Source\Go\src\github.com\dontpanic92\wxGo\wx\wx_wrap_windows.cxx:254:
C:/Source/Go/src/github.com/dontpanic92/wxGo/wxWidgets/wxWidgets-3.1.0/include/wx/window.h:1917:13: note: declared here
 inline void wxWindowBase::SetInitialBestSize(const wxSize& size)
             ^
C:\Source\Go\src\github.com\dontpanic92\wxGo\wx\wx_wrap_windows.cxx:268214:1: warning: 'virtual void wxWindowBase::SetIn
itialBestSize(const wxSize&)' is deprecated: use SetInitialSize() instead. [-Wdeprecated-declarations]
 }
 ^
In file included from C:/Source/Go/src/github.com/dontpanic92/wxGo/wxWidgets/wxWidgets-3.1.0/include/wx/wx.h:38:0,
                 from C:\Source\Go\src\github.com\dontpanic92\wxGo\wx\wx_wrap_windows.cxx:254:
C:/Source/Go/src/github.com/dontpanic92/wxGo/wxWidgets/wxWidgets-3.1.0/include/wx/window.h:1917:13: note: declared here
 inline void wxWindowBase::SetInitialBestSize(const wxSize& size)
             ^
C:\Source\Go\src\github.com\dontpanic92\wxGo\wx\wx_wrap_windows.cxx:268214:1: warning: 'virtual void wxWindowBase::SetIn
itialBestSize(const wxSize&)' is deprecated: use SetInitialSize() instead. [-Wdeprecated-declarations]
 }
 ^
In file included from C:/Source/Go/src/github.com/dontpanic92/wxGo/wxWidgets/wxWidgets-3.1.0/include/wx/wx.h:38:0,
                 from C:\Source\Go\src\github.com\dontpanic92\wxGo\wx\wx_wrap_windows.cxx:254:
C:/Source/Go/src/github.com/dontpanic92/wxGo/wxWidgets/wxWidgets-3.1.0/include/wx/window.h:1917:13: note: declared here
 inline void wxWindowBase::SetInitialBestSize(const wxSize& size)
             ^
C:\Source\Go\src\github.com\dontpanic92\wxGo\wx\wx_wrap_windows.cxx:268214:1: warning: 'virtual void wxWindowBase::SetIn
itialBestSize(const wxSize&)' is deprecated: use SetInitialSize() instead. [-Wdeprecated-declarations]
 }
 ^
In file included from C:/Source/Go/src/github.com/dontpanic92/wxGo/wxWidgets/wxWidgets-3.1.0/include/wx/wx.h:38:0,
                 from C:\Source\Go\src\github.com\dontpanic92\wxGo\wx\wx_wrap_windows.cxx:254:
C:/Source/Go/src/github.com/dontpanic92/wxGo/wxWidgets/wxWidgets-3.1.0/include/wx/window.h:1917:13: note: declared here
 inline void wxWindowBase::SetInitialBestSize(const wxSize& size)
             ^
C:\Source\Go\src\github.com\dontpanic92\wxGo\wx\wx_wrap_windows.cxx:268214:1: warning: 'virtual void wxWindowBase::SetIn
itialBestSize(const wxSize&)' is deprecated: use SetInitialSize() instead. [-Wdeprecated-declarations]
 }
 ^
In file included from C:/Source/Go/src/github.com/dontpanic92/wxGo/wxWidgets/wxWidgets-3.1.0/include/wx/wx.h:38:0,
                 from C:\Source\Go\src\github.com\dontpanic92\wxGo\wx\wx_wrap_windows.cxx:254:
C:/Source/Go/src/github.com/dontpanic92/wxGo/wxWidgets/wxWidgets-3.1.0/include/wx/window.h:1917:13: note: declared here
 inline void wxWindowBase::SetInitialBestSize(const wxSize& size)
             ^
C:\Source\Go\src\github.com\dontpanic92\wxGo\wx\wx_wrap_windows.cxx:268214:1: warning: 'virtual void wxWindowBase::SetIn
itialBestSize(const wxSize&)' is deprecated: use SetInitialSize() instead. [-Wdeprecated-declarations]
 }
 ^
In file included from C:/Source/Go/src/github.com/dontpanic92/wxGo/wxWidgets/wxWidgets-3.1.0/include/wx/wx.h:38:0,
                 from C:\Source\Go\src\github.com\dontpanic92\wxGo\wx\wx_wrap_windows.cxx:254:
C:/Source/Go/src/github.com/dontpanic92/wxGo/wxWidgets/wxWidgets-3.1.0/include/wx/window.h:1917:13: note: declared here
 inline void wxWindowBase::SetInitialBestSize(const wxSize& size)
             ^
C:\Source\Go\src\github.com\dontpanic92\wxGo\wx\wx_wrap_windows.cxx:268214:1: warning: 'virtual void wxWindowBase::SetIn
itialBestSize(const wxSize&)' is deprecated: use SetInitialSize() instead. [-Wdeprecated-declarations]
 }
 ^
In file included from C:/Source/Go/src/github.com/dontpanic92/wxGo/wxWidgets/wxWidgets-3.1.0/include/wx/wx.h:38:0,
                 from C:\Source\Go\src\github.com\dontpanic92\wxGo\wx\wx_wrap_windows.cxx:254:
C:/Source/Go/src/github.com/dontpanic92/wxGo/wxWidgets/wxWidgets-3.1.0/include/wx/window.h:1917:13: note: declared here
 inline void wxWindowBase::SetInitialBestSize(const wxSize& size)
             ^
dontpanic92 commented 7 years ago

I encountered the same issue in Linux with gcc 7.1.1. gcc seemed stucked for quite a long time when called by cgo which is absolutely abnormal. When I changed the compiler from gcc 7.1 to clang/gcc6.3, the issue was solved. So I guess that there are some problems between cgo and gcc 7.1.

dontpanic92 commented 7 years ago

A little update about gcc 7.1 issue:

After investigating, I found that during the cgo process, C Compilers (whatever you use) will print tons of error messages. When using clang, the printing is very fast; however, gcc 7.1 is very slow. That's why it seems stuck - it is just printing lots of messages. Actually wxGo will be successfully built finally.

PaluMacil commented 7 years ago

It's been a while, so I don't remember if I originally cancelled out and just assumed it failed. I appreciate the followup and will try it again with Go 1.9 since I just updated.

When you say slow, do you mean 2 minutes? 20 minutes? more?

dontpanic92 commented 7 years ago

It is just a guess, that the bottleneck is the printing - more investigation is needed.

I have tested on Linux. It will consume about 30 mins to finish printing. I can't tell how long it will take on Windows, due to different IO performance - maybe much longer.

If you are interested in seeing the printing: When the go get -x .... stucks (typically on executing CGO_LDFAGS="..." /path/to/cgo ...), open Task Manager, find the cc1 process and copy it's CommandLine. Manually execute the command and then you can see the error messages.

Menelion commented 6 years ago

Same here. As I use Windows 32 bit, I can't (as per Readme) compile WXGo, so I grabbed the latest release in binary form (*.a package).
I tried tdm-gcc, but it gave me tons of errors with linking. After googling and stackoverflowing (I'm not very good at C/C++, so to say), I got an answer that those errors were there because of different version of MinGW.
I installed a standard MinGW-w64, and now it gives me those "First defined here" errors when I try to build the tapedon example from the repo.
@PaluMacil, Go 1.9 seems not to be supported, at least, if building apps with a released WXGo (see #37).

PaluMacil commented 6 years ago

I tried compiling with mingw-64 7.1.0 on Win 10 via go install -tags mingw_workaround github.com/dontpanic92/wxGo/wx using Go 1.8.3 and it worked. I'm not sure how long it took. I went to bed, and despite all the error messages, it was just fine. I guess I can close this. The keys were using the tag for mingw and also learning that the tags aren't passed into the dependencies when I did go build on my project but hadn't done the install yet.