News:

The new Release 25.03 is out! You can download binaries for Windows and many major Linux distros here .

Main Menu

Link error with wxWidget 3.1.0

Started by Rinaldo, April 23, 2017, 08:35:17 PM

Previous topic - Next topic

Rinaldo

I am running Code::Blocks version 16.01 on windows 10 creators
When I ...
Build and run in release mode.
Build log:

-------------- Build: Release in help2 (compiler: GNU GCC Compiler)---------------

C:\wxWidgets-3.1.0\include/wx/window.h:1917:13: note: declared here
inline void wxWindowBase::SetInitialBestSize(const wxSize& size)
             ^
D:\GCC\help2\help2App.cpp:34:1: warning: 'virtual void wxWindowBase::SetInitialBestSize(const wxSize&)' is deprecated: use SetInitialSize() instead. [-Wdeprecated-declarations]
}
^
In file included from C:\wxWidgets-3.1.0\include/wx/msw/private.h:21:0,
                 from C:\wxWidgets-3.1.0\include/wx/wxprec.h:33,
                 from ./wx_pch.h:14,
                 from <command-line>:0:
C:\wxWidgets-3.1.0\include/wx/window.h:1917:13: note: declared here
inline void wxWindowBase::SetInitialBestSize(const wxSize& size)
             ^
D:\GCC\help2\help2App.cpp:34:1: warning: 'virtual void wxWindowBase::SetInitialBestSize(const wxSize&)' is deprecated: use SetInitialSize() instead. [-Wdeprecated-declarations]
}
^
In file included from C:\wxWidgets-3.1.0\include/wx/msw/private.h:21:0,
                 from C:\wxWidgets-3.1.0\include/wx/wxprec.h:33,
                 from ./wx_pch.h:14,
                 from <command-line>:0:
C:\wxWidgets-3.1.0\include/wx/window.h:1917:13: note: declared here
inline void wxWindowBase::SetInitialBestSize(const wxSize& size)
             ^
D:\GCC\help2\help2App.cpp:34:1: warning: 'virtual void wxWindowBase::SetInitialBestSize(const wxSize&)' is deprecated: use SetInitialSize() instead. [-Wdeprecated-declarations]
}
^
In file included from C:\wxWidgets-3.1.0\include/wx/msw/private.h:21:0,
                 from C:\wxWidgets-3.1.0\include/wx/wxprec.h:33,
                 from ./wx_pch.h:14,
                 from <command-line>:0:
C:\wxWidgets-3.1.0\include/wx/window.h:1917:13: note: declared here
inline void wxWindowBase::SetInitialBestSize(const wxSize& size)
             ^
D:\GCC\help2\help2App.cpp:34:1: warning: 'virtual void wxWindowBase::SetInitialBestSize(const wxSize&)' is deprecated: use SetInitialSize() instead. [-Wdeprecated-declarations]
}
^
In file included from C:\wxWidgets-3.1.0\include/wx/msw/private.h:21:0,
                 from C:\wxWidgets-3.1.0\include/wx/wxprec.h:33,
                 from ./wx_pch.h:14,
                 from <command-line>:0:
C:\wxWidgets-3.1.0\include/wx/window.h:1917:13: note: declared here
inline void wxWindowBase::SetInitialBestSize(const wxSize& size)
             ^
D:\GCC\help2\help2App.cpp:34:1: warning: 'virtual void wxWindowBase::SetInitialBestSize(const wxSize&)' is deprecated: use SetInitialSize() instead. [-Wdeprecated-declarations]
}
^
In file included from C:\wxWidgets-3.1.0\include/wx/msw/private.h:21:0,
                 from C:\wxWidgets-3.1.0\include/wx/wxprec.h:33,
                 from ./wx_pch.h:14,
                 from <command-line>:0:
C:\wxWidgets-3.1.0\include/wx/window.h:1917:13: note: declared here
inline void wxWindowBase::SetInitialBestSize(const wxSize& size)
             ^
D:\GCC\help2\help2App.cpp:34:1: warning: 'virtual void wxWindowBase::SetInitialBestSize(const wxSize&)' is deprecated: use SetInitialSize() instead. [-Wdeprecated-declarations]
}
^
In file included from C:\wxWidgets-3.1.0\include/wx/msw/private.h:21:0,
                 from C:\wxWidgets-3.1.0\include/wx/wxprec.h:33,
                 from ./wx_pch.h:14,
                 from <command-line>:0:
C:\wxWidgets-3.1.0\include/wx/window.h:1917:13: note: declared here
inline void wxWindowBase::SetInitialBestSize(const wxSize& size)
             ^
D:\GCC\help2\help2App.cpp:34:1: warning: 'virtual void wxWindowBase::SetInitialBestSize(const wxSize&)' is deprecated: use SetInitialSize() instead. [-Wdeprecated-declarations]
}
^
In file included from C:\wxWidgets-3.1.0\include/wx/msw/private.h:21:0,
                 from C:\wxWidgets-3.1.0\include/wx/wxprec.h:33,
                 from ./wx_pch.h:14,
                 from <command-line>:0:
C:\wxWidgets-3.1.0\include/wx/window.h:1917:13: note: declared here
inline void wxWindowBase::SetInitialBestSize(const wxSize& size)
             ^
D:\GCC\help2\help2App.cpp:34:1: warning: 'virtual void wxWindowBase::SetInitialBestSize(const wxSize&)' is deprecated: use SetInitialSize() instead. [-Wdeprecated-declarations]
}
^
In file included from C:\wxWidgets-3.1.0\include/wx/msw/private.h:21:0,
                 from C:\wxWidgets-3.1.0\include/wx/wxprec.h:33,
                 from ./wx_pch.h:14,
                 from <command-line>:0:
C:\wxWidgets-3.1.0\include/wx/window.h:1917:13: note: declared here
inline void wxWindowBase::SetInitialBestSize(const wxSize& size)
             ^
D:\GCC\help2\help2App.cpp:34:1: warning: 'virtual void wxWindowBase::SetInitialBestSize(const wxSize&)' is deprecated: use SetInitialSize() instead. [-Wdeprecated-declarations]
}
^
In file included from C:\wxWidgets-3.1.0\include/wx/msw/private.h:21:0,
                 from C:\wxWidgets-3.1.0\include/wx/wxprec.h:33,
                 from ./wx_pch.h:14,
                 from <command-line>:0:
C:\wxWidgets-3.1.0\include/wx/window.h:1917:13: note: declared here
inline void wxWindowBase::SetInitialBestSize(const wxSize& size)
             ^
D:\GCC\help2\help2App.cpp:34:1: warning: 'virtual void wxWindowBase::SetInitialBestSize(const wxSize&)' is deprecated: use SetInitialSize() instead. [-Wdeprecated-declarations]
}
^
In file included from C:\wxWidgets-3.1.0\include/wx/msw/private.h:21:0,
                 from C:\wxWidgets-3.1.0\include/wx/wxprec.h:33,
                 from ./wx_pch.h:14,
                 from <command-line>:0:
C:\wxWidgets-3.1.0\include/wx/window.h:1917:13: note: declared here
inline void wxWindowBase::SetInitialBestSize(const wxSize& size)
             ^
x86_64-w64-mingw32-g++.exe -pipe -mthreads -D__GNUWIN32__ -D__WXMSW__ -DWXUSINGDLL -DwxUSE_UNICODE -Winvalid-pch -include wx_pch.h -DWX_PRECOMP -Wall -O2 -std=c++11 -IC:\wxWidgets-3.1.0\include -IC:\wxWidgets-3.1.0\lib\gcc_dll\mswu -c D:\GCC\help2\help2Main.cpp -o obj\Release\help2Main.o
D:\GCC\help2\help2Main.cpp:103:1: warning: 'virtual void wxWindowBase::SetInitialBestSize(const wxSize&)' is deprecated: use SetInitialSize() instead. [-Wdeprecated-declarations]
}
^
In file included from C:\wxWidgets-3.1.0\include/wx/msw/private.h:21:0,
                 from C:\wxWidgets-3.1.0\include/wx/wxprec.h:33,
                 from ./wx_pch.h:14,
                 from <command-line>:0:
C:\wxWidgets-3.1.0\include/wx/window.h:1917:13: note: declared here
inline void wxWindowBase::SetInitialBestSize(const wxSize& size)
             ^
D:\GCC\help2\help2Main.cpp:103:1: warning: 'virtual void wxWindowBase::SetInitialBestSize(const wxSize&)' is deprecated: use SetInitialSize() instead. [-Wdeprecated-declarations]
}
^
In file included from C:\wxWidgets-3.1.0\include/wx/msw/private.h:21:0,
                 from C:\wxWidgets-3.1.0\include/wx/wxprec.h:33,
                 from ./wx_pch.h:14,
                 from <command-line>:0:
C:\wxWidgets-3.1.0\include/wx/window.h:1917:13: note: declared here
inline void wxWindowBase::SetInitialBestSize(const wxSize& size)
             ^
D:\GCC\help2\help2Main.cpp:103:1: warning: 'virtual void wxWindowBase::SetInitialBestSize(const wxSize&)' is deprecated: use SetInitialSize() instead. [-Wdeprecated-declarations]
}
^
In file included from C:\wxWidgets-3.1.0\include/wx/msw/private.h:21:0,
                 from C:\wxWidgets-3.1.0\include/wx/wxprec.h:33,
                 from ./wx_pch.h:14,
                 from <command-line>:0:
C:\wxWidgets-3.1.0\include/wx/window.h:1917:13: note: declared here
inline void wxWindowBase::SetInitialBestSize(const wxSize& size)
             ^
D:\GCC\help2\help2Main.cpp:103:1: warning: 'virtual void wxWindowBase::SetInitialBestSize(const wxSize&)' is deprecated: use SetInitialSize() instead. [-Wdeprecated-declarations]
}
^
In file included from C:\wxWidgets-3.1.0\include/wx/msw/private.h:21:0,
                 from C:\wxWidgets-3.1.0\include/wx/wxprec.h:33,
                 from ./wx_pch.h:14,
                 from <command-line>:0:
C:\wxWidgets-3.1.0\include/wx/window.h:1917:13: note: declared here
inline void wxWindowBase::SetInitialBestSize(const wxSize& size)
             ^
D:\GCC\help2\help2Main.cpp:103:1: warning: 'virtual void wxWindowBase::SetInitialBestSize(const wxSize&)' is deprecated: use SetInitialSize() instead. [-Wdeprecated-declarations]
}
^
In file included from C:\wxWidgets-3.1.0\include/wx/msw/private.h:21:0,
                 from C:\wxWidgets-3.1.0\include/wx/wxprec.h:33,
                 from ./wx_pch.h:14,
                 from <command-line>:0:
C:\wxWidgets-3.1.0\include/wx/window.h:1917:13: note: declared here
inline void wxWindowBase::SetInitialBestSize(const wxSize& size)
             ^
D:\GCC\help2\help2Main.cpp:103:1: warning: 'virtual void wxWindowBase::SetInitialBestSize(const wxSize&)' is deprecated: use SetInitialSize() instead. [-Wdeprecated-declarations]
}
^
In file included from C:\wxWidgets-3.1.0\include/wx/msw/private.h:21:0,
                 from C:\wxWidgets-3.1.0\include/wx/wxprec.h:33,
                 from ./wx_pch.h:14,
                 from <command-line>:0:
C:\wxWidgets-3.1.0\include/wx/window.h:1917:13: note: declared here
inline void wxWindowBase::SetInitialBestSize(const wxSize& size)
             ^
D:\GCC\help2\help2Main.cpp:103:1: warning: 'virtual void wxWindowBase::SetInitialBestSize(const wxSize&)' is deprecated: use SetInitialSize() instead. [-Wdeprecated-declarations]
}
^
In file included from C:\wxWidgets-3.1.0\include/wx/msw/private.h:21:0,
                 from C:\wxWidgets-3.1.0\include/wx/wxprec.h:33,
                 from ./wx_pch.h:14,
                 from <command-line>:0:
C:\wxWidgets-3.1.0\include/wx/window.h:1917:13: note: declared here
inline void wxWindowBase::SetInitialBestSize(const wxSize& size)
             ^
D:\GCC\help2\help2Main.cpp:103:1: warning: 'virtual void wxWindowBase::SetInitialBestSize(const wxSize&)' is deprecated: use SetInitialSize() instead. [-Wdeprecated-declarations]
}
^
In file included from C:\wxWidgets-3.1.0\include/wx/msw/private.h:21:0,
                 from C:\wxWidgets-3.1.0\include/wx/wxprec.h:33,
                 from ./wx_pch.h:14,
                 from <command-line>:0:
C:\wxWidgets-3.1.0\include/wx/window.h:1917:13: note: declared here
inline void wxWindowBase::SetInitialBestSize(const wxSize& size)
             ^
D:\GCC\help2\help2Main.cpp:103:1: warning: 'virtual void wxWindowBase::SetInitialBestSize(const wxSize&)' is deprecated: use SetInitialSize() instead. [-Wdeprecated-declarations]
}
^
In file included from C:\wxWidgets-3.1.0\include/wx/msw/private.h:21:0,
                 from C:\wxWidgets-3.1.0\include/wx/wxprec.h:33,
                 from ./wx_pch.h:14,
                 from <command-line>:0:
C:\wxWidgets-3.1.0\include/wx/window.h:1917:13: note: declared here
inline void wxWindowBase::SetInitialBestSize(const wxSize& size)
             ^
D:\GCC\help2\help2Main.cpp:103:1: warning: 'virtual void wxWindowBase::SetInitialBestSize(const wxSize&)' is deprecated: use SetInitialSize() instead. [-Wdeprecated-declarations]
}
^
In file included from C:\wxWidgets-3.1.0\include/wx/msw/private.h:21:0,
                 from C:\wxWidgets-3.1.0\include/wx/wxprec.h:33,
                 from ./wx_pch.h:14,
                 from <command-line>:0:
C:\wxWidgets-3.1.0\include/wx/window.h:1917:13: note: declared here
inline void wxWindowBase::SetInitialBestSize(const wxSize& size)
             ^
D:\GCC\help2\help2Main.cpp:103:1: warning: 'virtual void wxWindowBase::SetInitialBestSize(const wxSize&)' is deprecated: use SetInitialSize() instead. [-Wdeprecated-declarations]
}
^
In file included from C:\wxWidgets-3.1.0\include/wx/msw/private.h:21:0,
                 from C:\wxWidgets-3.1.0\include/wx/wxprec.h:33,
                 from ./wx_pch.h:14,
                 from <command-line>:0:
C:\wxWidgets-3.1.0\include/wx/window.h:1917:13: note: declared here
inline void wxWindowBase::SetInitialBestSize(const wxSize& size)
             ^
D:\GCC\help2\help2Main.cpp:103:1: warning: 'virtual void wxWindowBase::SetInitialBestSize(const wxSize&)' is deprecated: use SetInitialSize() instead. [-Wdeprecated-declarations]
}
^
In file included from C:\wxWidgets-3.1.0\include/wx/msw/private.h:21:0,
                 from C:\wxWidgets-3.1.0\include/wx/wxprec.h:33,
                 from ./wx_pch.h:14,
                 from <command-line>:0:
C:\wxWidgets-3.1.0\include/wx/window.h:1917:13: note: declared here
inline void wxWindowBase::SetInitialBestSize(const wxSize& size)
             ^
D:\GCC\help2\help2Main.cpp:103:1: warning: 'virtual void wxWindowBase::SetInitialBestSize(const wxSize&)' is deprecated: use SetInitialSize() instead. [-Wdeprecated-declarations]
}
^
In file included from C:\wxWidgets-3.1.0\include/wx/msw/private.h:21:0,
                 from C:\wxWidgets-3.1.0\include/wx/wxprec.h:33,
                 from ./wx_pch.h:14,
                 from <command-line>:0:
C:\wxWidgets-3.1.0\include/wx/window.h:1917:13: note: declared here
inline void wxWindowBase::SetInitialBestSize(const wxSize& size)
             ^
D:\GCC\help2\help2Main.cpp:103:1: warning: 'virtual void wxWindowBase::SetInitialBestSize(const wxSize&)' is deprecated: use SetInitialSize() instead. [-Wdeprecated-declarations]
}
^
In file included from C:\wxWidgets-3.1.0\include/wx/msw/private.h:21:0,
                 from C:\wxWidgets-3.1.0\include/wx/wxprec.h:33,
                 from ./wx_pch.h:14,
                 from <command-line>:0:
C:\wxWidgets-3.1.0\include/wx/window.h:1917:13: note: declared here
inline void wxWindowBase::SetInitialBestSize(const wxSize& size)
             ^
D:\GCC\help2\help2Main.cpp:103:1: warning: 'virtual void wxWindowBase::SetInitialBestSize(const wxSize&)' is deprecated: use SetInitialSize() instead. [-Wdeprecated-declarations]
}
^
In file included from C:\wxWidgets-3.1.0\include/wx/msw/private.h:21:0,
                 from C:\wxWidgets-3.1.0\include/wx/wxprec.h:33,
                 from ./wx_pch.h:14,
                 from <command-line>:0:
C:\wxWidgets-3.1.0\include/wx/window.h:1917:13: note: declared here
inline void wxWindowBase::SetInitialBestSize(const wxSize& size)
             ^
D:\GCC\help2\help2Main.cpp:103:1: warning: 'virtual void wxWindowBase::SetInitialBestSize(const wxSize&)' is deprecated: use SetInitialSize() instead. [-Wdeprecated-declarations]
}
^
In file included from C:\wxWidgets-3.1.0\include/wx/msw/private.h:21:0,
                 from C:\wxWidgets-3.1.0\include/wx/wxprec.h:33,
                 from ./wx_pch.h:14,
                 from <command-line>:0:
C:\wxWidgets-3.1.0\include/wx/window.h:1917:13: note: declared here
inline void wxWindowBase::SetInitialBestSize(const wxSize& size)
             ^
D:\GCC\help2\help2Main.cpp:103:1: warning: 'virtual void wxWindowBase::SetInitialBestSize(const wxSize&)' is deprecated: use SetInitialSize() instead. [-Wdeprecated-declarations]
}
^
In file included from C:\wxWidgets-3.1.0\include/wx/msw/private.h:21:0,
                 from C:\wxWidgets-3.1.0\include/wx/wxprec.h:33,
                 from ./wx_pch.h:14,
                 from <command-line>:0:
C:\wxWidgets-3.1.0\include/wx/window.h:1917:13: note: declared here
inline void wxWindowBase::SetInitialBestSize(const wxSize& size)
             ^
D:\GCC\help2\help2Main.cpp:103:1: warning: 'virtual void wxWindowBase::SetInitialBestSize(const wxSize&)' is deprecated: use SetInitialSize() instead. [-Wdeprecated-declarations]
}
^
In file included from C:\wxWidgets-3.1.0\include/wx/msw/private.h:21:0,
                 from C:\wxWidgets-3.1.0\include/wx/wxprec.h:33,
                 from ./wx_pch.h:14,
                 from <command-line>:0:
C:\wxWidgets-3.1.0\include/wx/window.h:1917:13: note: declared here
inline void wxWindowBase::SetInitialBestSize(const wxSize& size)
             ^
D:\GCC\help2\help2Main.cpp:103:1: warning: 'virtual void wxWindowBase::SetInitialBestSize(const wxSize&)' is deprecated: use SetInitialSize() instead. [-Wdeprecated-declarations]
}
^
In file included from C:\wxWidgets-3.1.0\include/wx/msw/private.h:21:0,
                 from C:\wxWidgets-3.1.0\include/wx/wxprec.h:33,
                 from ./wx_pch.h:14,
                 from <command-line>:0:
C:\wxWidgets-3.1.0\include/wx/window.h:1917:13: note: declared here
inline void wxWindowBase::SetInitialBestSize(const wxSize& size)
             ^
D:\GCC\help2\help2Main.cpp:103:1: warning: 'virtual void wxWindowBase::SetInitialBestSize(const wxSize&)' is deprecated: use SetInitialSize() instead. [-Wdeprecated-declarations]
}
^
In file included from C:\wxWidgets-3.1.0\include/wx/msw/private.h:21:0,
                 from C:\wxWidgets-3.1.0\include/wx/wxprec.h:33,
                 from ./wx_pch.h:14,
                 from <command-line>:0:
C:\wxWidgets-3.1.0\include/wx/window.h:1917:13: note: declared here
inline void wxWindowBase::SetInitialBestSize(const wxSize& size)
             ^
windres.exe -IC:\wxWidgets-3.1.0\include -IC:\wxWidgets-3.1.0\lib\gcc_dll\mswu  -J rc -O coff -i D:\GCC\help2\resource.rc -o obj\Release\resource.res
x86_64-w64-mingw32-g++.exe -LC:\wxWidgets-3.1.0\lib\gcc_dll -LC:\wxWidgets-3.1.0\lib\gcc_dll\mswu\wx\msw -o bin\Release\help2.exe obj\Release\help2App.o obj\Release\help2Main.o  obj\Release\resource.res -s -mthreads  -lwxmsw30u C:\wxWidgets-3.1.0\lib\gcc_dll\libwxmsw31u.a
D:/TDM/bin/../lib/gcc/x86_64-w64-mingw32/5.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find -lwxmsw30u <---------- should be 31u
collect2.exe: error: ld returned 1 exit status
Process terminated with status 1 (0 minute(s), 7 second(s))
2 error(s), 39 warning(s) (0 minute(s), 7 second(s))


Look in the wizard script and can't modify

BlueHazzard

thank you for the build log
You can set the library name under Project->build options->linker settings->libraries

you have to set the target on the right

Rinaldo

I did it already but no results, still searching for version 3.0.x

Regards Rinaldo

BlueHazzard

You have to look at the left site and click trought all targets and set the library right

Rinaldo