wxWidgets Application static linking fails

General questions regarding the usage of CodeLite
Netzschleicher
CodeLite Enthusiast
Posts: 19
Joined: Fri Aug 13, 2010 10:45 pm
Genuine User: Yes
IDE Question: C++
Contact:

wxWidgets Application static linking fails

Post by Netzschleicher » Sun Feb 02, 2020 8:55 pm

Hello everybody,

i setup a new Programming VM with Windows 7 64bit and CodeLite 13.0.8.
wxWidgets are compiled with following commands:

Code: Select all

set WXWIN=C:\wxWidgets_3.1.3
set MINGW=C:\mingw64_710_seh
set PATH=%PATH%;%MINGW%\bin
cd %WXWIN%\build\msw
mingw32-make -f makefile.gcc BUILD=release SHARED=1 MONOLITHIC=0 UNICODE=1 USE_OPENGL=1  VENDOR=73 CXXFLAGS="-std=gnu++11"
mingw32-make -f makefile.gcc BUILD=release SHARED=0 MONOLITHIC=0 UNICODE=1 USE_OPENGL=1 VENDOR=73 CXXFLAGS="-std=gnu++11"
if exist gcc_mswudll rmdir /S /Q gcc_mswudll
if exist gcc_mswulib rmdir /S /Q gcc_mswu
cd\
Environment Variable in CodeLite is:

Code: Select all

CodeLiteDir=C:\Program Files\CodeLite
MINGW=C:\mingw64_710_seh
WXWIN=C:\wxWidgets_3.1.3
When compiling a Testapplication dynamically with:

Code: Select all

$(shell wx-config --cflags)
everything works fine.
But, when compiling statically with:

Code: Select all

$(shell wx-config --cflags --static)
then, the linkes fails with a lot of undefined references to the wxWidgets static Librarys. The files themself are in the suitable path.

CodeLite and wxWidgets on a Linux 64bit VM compliles dynamically and statically without any errors.

Ist this an issue with the 64bit MinGW?

Please held me.

Grettings Netzschleicher

User avatar
eranif
CodeLite Plugin
Posts: 5982
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: wxWidgets Application static linking fails

Post by eranif » Sun Feb 02, 2020 9:13 pm

I don't know if this is a typo, but you should link with:

Code: Select all

$(shell wx-config --libs)
Can you paste the linker error you got ?
Make sure you have read the HOW TO POST thread

Netzschleicher
CodeLite Enthusiast
Posts: 19
Joined: Fri Aug 13, 2010 10:45 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: wxWidgets Application static linking fails

Post by Netzschleicher » Sun Feb 02, 2020 9:23 pm

Sorry,

Compiler options are:

Code: Select all

-g;-O0;-Wall;$(shell wx-config --cflags --static)
Linker options are:

Code: Select all

-mwindows;$(shell wx-config --libs --static)
Build Log:

Code: Select all

C:\Windows\system32\cmd.exe /C C:/mingw64_710_seh/bin/mingw32-make.exe -j2 SHELL=cmd.exe -e -f  Makefile
"----------Building project:[ MSW_Test_1 - Debug_MSW ]----------"
mingw32-make.exe[1]: Entering directory 'Z:/wxWidgets/Projekte/Tests/MSW_Test_1'
C:/mingw64_710_seh/bin/windres.exe -i "Z:/wxWidgets/Projekte/Tests/MSW_Test_1/win_resources.rc" --use-temp-file --define __WXMSW__ --define _UNICODE --include-dir C:/wxWidgets_3.1.3/lib/gcc_lib/mswu --include-dir C:/wxWidgets_3.1.3/include     -o ../build-Debug_MSW/MSW_Test_1/win_resources.rc.o
C:/mingw64_710_seh/bin/windres.exe: warning: 24: 1: 1033: duplicate value
C:/mingw64_710_seh/bin/g++.exe  -c  "Z:/wxWidgets/Projekte/Tests/MSW_Test_1/MainFrame.cpp" -g -O0 -std=gnu++11 -Wall -mthreads -DHAVE_W32API_H -D__WXMSW__ -DNDEBUG -D_UNICODE -IC:/wxWidgets_3.1.3/lib/gcc_lib/mswu -IC:/wxWidgets_3.1.3/include -Wno-ctor-dtor-privacy -pipe -fmessage-length=0  -std=gnu++11   -o ../build-Debug_MSW/MSW_Test_1/MainFrame.cpp.o -I. -I.
C:/mingw64_710_seh/bin/g++.exe  -c  "Z:/wxWidgets/Projekte/Tests/MSW_Test_1/main.cpp" -g -O0 -std=gnu++11 -Wall -mthreads -DHAVE_W32API_H -D__WXMSW__ -DNDEBUG -D_UNICODE -IC:/wxWidgets_3.1.3/lib/gcc_lib/mswu -IC:/wxWidgets_3.1.3/include -Wno-ctor-dtor-privacy -pipe -fmessage-length=0  -std=gnu++11   -o ../build-Debug_MSW/MSW_Test_1/main.cpp.o -I. -I.
C:/mingw64_710_seh/bin/g++.exe  -c  "Z:/wxWidgets/Projekte/Tests/MSW_Test_1/wxcrafter_bitmaps.cpp" -g -O0 -std=gnu++11 -Wall -mthreads -DHAVE_W32API_H -D__WXMSW__ -DNDEBUG -D_UNICODE -IC:/wxWidgets_3.1.3/lib/gcc_lib/mswu -IC:/wxWidgets_3.1.3/include -Wno-ctor-dtor-privacy -pipe -fmessage-length=0  -std=gnu++11   -o ../build-Debug_MSW/MSW_Test_1/wxcrafter_bitmaps.cpp.o -I. -I.
C:/mingw64_710_seh/bin/g++.exe  -c  "Z:/wxWidgets/Projekte/Tests/MSW_Test_1/wxcrafter.cpp" -g -O0 -std=gnu++11 -Wall -mthreads -DHAVE_W32API_H -D__WXMSW__ -DNDEBUG -D_UNICODE -IC:/wxWidgets_3.1.3/lib/gcc_lib/mswu -IC:/wxWidgets_3.1.3/include -Wno-ctor-dtor-privacy -pipe -fmessage-length=0  -std=gnu++11   -o ../build-Debug_MSW/MSW_Test_1/wxcrafter.cpp.o -I. -I.
C:/mingw64_710_seh/bin/g++.exe -o ..\build-Debug_MSW\bin\MSW_Test_1 @../build-Debug_MSW/MSW_Test_1/ObjectsList.txt -L.   -mwindows  -mthreads -LC:/wxWidgets_3.1.3/lib/gcc_lib -lwxmsw31u_richtext -lwxmsw31u_xrc -lwxmsw31u_aui -lwxmsw31u_html -lwxmsw31u_adv -lwxmsw31u_core -lwxbase31u_xml -lwxbase31u_net -lwxbase31u -lwxscintilla -lwxtiff -lwxjpeg -lwxpng -lwxzlib -lwxregexu -lwxexpat -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwxregexu -lwinspool -lwinmm -lshell32 -lcomctl32 -lversion -lshlwapi -lole32 -loleaut32 -luuid -lrpcrt4 -ladvapi32 -lwsock32
C:/wxWidgets_3.1.3/lib/gcc_lib/libwxmsw31u_core.a(corelib_window.o):window.cpp:(.text+0xd711): undefined reference to `__imp_OpenThemeData'
C:/wxWidgets_3.1.3/lib/gcc_lib/libwxmsw31u_core.a(corelib_window.o):window.cpp:(.text+0xd735): undefined reference to `__imp_GetThemeColor'
C:/wxWidgets_3.1.3/lib/gcc_lib/libwxmsw31u_core.a(corelib_window.o):window.cpp:(.text+0xd796): undefined reference to `__imp_CloseThemeData'
C:/wxWidgets_3.1.3/lib/gcc_lib/libwxmsw31u_core.a(corelib_window.o):window.cpp:(.text+0xd7fb): undefined reference to `__imp_CloseThemeData'
C:/wxWidgets_3.1.3/lib/gcc_lib/libwxmsw31u_core.a(corelib_window.o):window.cpp:(.text+0xdbee): undefined reference to `__imp_CloseThemeData'
C:/wxWidgets_3.1.3/lib/gcc_lib/libwxmsw31u_core.a(corelib_window.o):window.cpp:(.text+0x10104): undefined reference to `__imp_OpenThemeData'
C:/wxWidgets_3.1.3/lib/gcc_lib/libwxmsw31u_core.a(corelib_window.o):window.cpp:(.text+0x1019a): undefined reference to `__imp_GetThemeBackgroundContentRect'
C:/wxWidgets_3.1.3/lib/gcc_lib/libwxmsw31u_core.a(corelib_window.o):window.cpp:(.text+0x10210): undefined reference to `__imp_IsThemeBackgroundPartiallyTransparent'
C:/wxWidgets_3.1.3/lib/gcc_lib/libwxmsw31u_core.a(corelib_window.o):window.cpp:(.text+0x1022b): undefined reference to `__imp_DrawThemeParentBackground'
C:/wxWidgets_3.1.3/lib/gcc_lib/libwxmsw31u_core.a(corelib_window.o):window.cpp:(.text+0x10252): undefined reference to `__imp_DrawThemeBackground'
C:/wxWidgets_3.1.3/lib/gcc_lib/libwxmsw31u_core.a(corelib_window.o):window.cpp:(.text+0x1027f): undefined reference to `__imp_CloseThemeData'
C:/wxWidgets_3.1.3/lib/gcc_lib/libwxmsw31u_core.a(corelib_window.o):window.cpp:(.text+0x110dd): undefined reference to `__imp_OpenThemeData'
C:/wxWidgets_3.1.3/lib/gcc_lib/libwxmsw31u_core.a(corelib_window.o):window.cpp:(.text+0x11136): undefined reference to `__imp_GetThemeBackgroundContentRect'
C:/wxWidgets_3.1.3/lib/gcc_lib/libwxmsw31u_core.a(corelib_window.o):window.cpp:(.text+0x111b9): undefined reference to `__imp_CloseThemeData'
C:/wxWidgets_3.1.3/lib/gcc_lib/libwxmsw31u_core.a(corelib_window.o):window.cpp:(.text+0x11a68): undefined reference to `__imp_CloseThemeData'
C:/wxWidgets_3.1.3/lib/gcc_lib/libwxmsw31u_core.a(corelib_window.o):window.cpp:(.text+0x11a9d): undefined reference to `__imp_CloseThemeData'
C:/wxWidgets_3.1.3/lib/gcc_lib/libwxmsw31u_core.a(corelib_menuitem.o):menuitem.cpp:(.text+0x51e): undefined reference to `__imp_OpenThemeData'
C:/wxWidgets_3.1.3/lib/gcc_lib/libwxmsw31u_core.a(corelib_menuitem.o):menuitem.cpp:(.text+0x539): undefined reference to `__imp_GetThemeSysColor'
C:/wxWidgets_3.1.3/lib/gcc_lib/libwxmsw31u_core.a(corelib_menuitem.o):menuitem.cpp:(.text+0x571): undefined reference to `__imp_GetThemeSysColor'
C:/wxWidgets_3.1.3/lib/gcc_lib/libwxmsw31u_core.a(corelib_menuitem.o):menuitem.cpp:(.text+0x5b3): undefined reference to `__imp_CloseThemeData'
C:/wxWidgets_3.1.3/lib/gcc_lib/libwxmsw31u_core.a(corelib_menuitem.o):menuitem.cpp:(.text+0x658): undefined reference to `__imp_GetThemeSysColor'
C:/wxWidgets_3.1.3/lib/gcc_lib/libwxmsw31u_core.a(corelib_menuitem.o):menuitem.cpp:(.text+0x6d5): undefined reference to `__imp_GetThemeSysColor'
C:/wxWidgets_3.1.3/lib/gcc_lib/libwxmsw31u_core.a(corelib_menuitem.o):menuitem.cpp:(.text+0x757): undefined reference to `__imp_CloseThemeData'
C:/wxWidgets_3.1.3/lib/gcc_lib/libwxmsw31u_core.a(corelib_menuitem.o):menuitem.cpp:(.text+0x1f67): undefined reference to `__imp_OpenThemeData'
C:/wxWidgets_3.1.3/lib/gcc_lib/libwxmsw31u_core.a(corelib_menuitem.o):menuitem.cpp:(.text+0x1f95): undefined reference to `__imp_GetThemeMargins'
C:/wxWidgets_3.1.3/lib/gcc_lib/libwxmsw31u_core.a(corelib_menuitem.o):menuitem.cpp:(.text+0x204f): undefined reference to `__imp_GetThemePartSize'
C:/wxWidgets_3.1.3/lib/gcc_lib/libwxmsw31u_core.a(corelib_menuitem.o):menuitem.cpp:(.text+0x20e4): undefined reference to `__imp_GetThemeInt'
C:/wxWidgets_3.1.3/lib/gcc_lib/libwxmsw31u_core.a(corelib_menuitem.o):menuitem.cpp:(.text+0x210c): undefined reference to `__imp_GetThemeSysFont'
C:/wxWidgets_3.1.3/lib/gcc_lib/libwxmsw31u_core.a(corelib_menuitem.o):menuitem.cpp:(.text+0x2196): undefined reference to `__imp_CloseThemeData'
C:/wxWidgets_3.1.3/lib/gcc_lib/libwxmsw31u_core.a(corelib_menuitem.o):menuitem.cpp:(.text+0x2c3d): undefined reference to `__imp_CloseThemeData'
C:/wxWidgets_3.1.3/lib/gcc_lib/libwxmsw31u_core.a(corelib_menuitem.o):menuitem.cpp:(.text+0x35e3): undefined reference to `__imp_OpenThemeData'
C:/wxWidgets_3.1.3/lib/gcc_lib/libwxmsw31u_core.a(corelib_menuitem.o):menuitem.cpp:(.text+0x3663): undefined reference to `__imp_DrawThemeBackground'
C:/wxWidgets_3.1.3/lib/gcc_lib/libwxmsw31u_core.a(corelib_menuitem.o):menuitem.cpp:(.text+0x36fa): undefined reference to `__imp_CloseThemeData'
C:/wxWidgets_3.1.3/lib/gcc_lib/libwxmsw31u_core.a(corelib_menuitem.o):menuitem.cpp:(.text+0x3a55): undefined reference to `__imp_CloseThemeData'
C:/wxWidgets_3.1.3/lib/gcc_lib/libwxmsw31u_core.a(corelib_menuitem.o):menuitem.cpp:(.text+0x46d3): undefined reference to `__imp_OpenThemeData'
C:/wxWidgets_3.1.3/lib/gcc_lib/libwxmsw31u_core.a(corelib_menuitem.o):menuitem.cpp:(.text+0x46e7): undefined reference to `__imp_IsThemeBackgroundPartiallyTransparent'
C:/wxWidgets_3.1.3/lib/gcc_lib/libwxmsw31u_core.a(corelib_menuitem.o):menuitem.cpp:(.text+0x46f6): undefined reference to `__imp_DrawThemeBackground'
C:/wxWidgets_3.1.3/lib/gcc_lib/libwxmsw31u_core.a(corelib_menuitem.o):menuitem.cpp:(.text+0x4765): undefined reference to `__imp_CloseThemeData'
C:/wxWidgets_3.1.3/lib/gcc_lib/libwxmsw31u_core.a(corelib_menuitem.o):menuitem.cpp:(.text+0x4a5c): undefined reference to `__imp_DrawThemeBackground'
C:/wxWidgets_3.1.3/lib/gcc_lib/libwxmsw31u_core.a(corelib_menuitem.o):menuitem.cpp:(.text+0x4c27): undefined reference to `__imp_CloseThemeData'
C:/wxWidgets_3.1.3/lib/gcc_lib/libwxmsw31u_core.a(corelib_menuitem.o):menuitem.cpp:(.text+0x4e91): undefined reference to `__imp_CloseThemeData'
C:/wxWidgets_3.1.3/lib/gcc_lib/libwxmsw31u_core.a(corelib_msw_statbox.o):statbox.cpp:(.text+0x2dc0): undefined reference to `__imp_OpenThemeData'
C:/wxWidgets_3.1.3/lib/gcc_lib/libwxmsw31u_core.a(corelib_msw_statbox.o):statbox.cpp:(.text+0x2df1): undefined reference to `__imp_GetThemeFont'
C:/wxWidgets_3.1.3/lib/gcc_lib/libwxmsw31u_core.a(corelib_msw_statbox.o):statbox.cpp:(.text+0x2e17): undefined reference to `__imp_CloseThemeData'
C:/wxWidgets_3.1.3/lib/gcc_lib/libwxmsw31u_core.a(corelib_msw_statbox.o):statbox.cpp:(.text+0x2f32): undefined reference to `__imp_CloseThemeData'
C:/wxWidgets_3.1.3/lib/gcc_lib/libwxmsw31u_core.a(corelib_statusbar.o):statusbar.cpp:(.text+0x1420): undefined reference to `__imp_OpenThemeData'
C:/wxWidgets_3.1.3/lib/gcc_lib/libwxmsw31u_core.a(corelib_statusbar.o):statusbar.cpp:(.text+0x144e): undefined reference to `__imp_GetThemeBackgroundContentRect'
C:/wxWidgets_3.1.3/lib/gcc_lib/libwxmsw31u_core.a(corelib_statusbar.o):statusbar.cpp:(.text+0x1485): undefined reference to `__imp_CloseThemeData'
C:/wxWidgets_3.1.3/lib/gcc_lib/libwxmsw31u_core.a(corelib_statusbar.o):statusbar.cpp:(.text+0x1cef): undefined reference to `__imp_CloseThemeData'
C:/wxWidgets_3.1.3/lib/gcc_lib/libwxmsw31u_core.a(corelib_renderer.o):renderer.cpp:(.text+0x4a2): undefined reference to `__imp_OpenThemeData'
C:/wxWidgets_3.1.3/lib/gcc_lib/libwxmsw31u_core.a(corelib_renderer.o):renderer.cpp:(.text+0x4bb): undefined reference to `__imp_IsThemePartDefined'
C:/wxWidgets_3.1.3/lib/gcc_lib/libwxmsw31u_core.a(corelib_renderer.o):renderer.cpp:(.text+0x4e1): undefined reference to `__imp_CloseThemeData'
C:/wxWidgets_3.1.3/lib/gcc_lib/libwxmsw31u_core.a(corelib_renderer.o):renderer.cpp:(.text+0x573): undefined reference to `__imp_GetThemePartSize'
C:/wxWidgets_3.1.3/lib/gcc_lib/libwxmsw31u_core.a(corelib_renderer.o):renderer.cpp:(.text+0x5a3): undefined reference to `__imp_CloseThemeData'
C:/wxWidgets_3.1.3/lib/gcc_lib/libwxmsw31u_core.a(corelib_renderer.o):renderer.cpp:(.text+0x5e2): undefined reference to `__imp_OpenThemeData'
C:/wxWidgets_3.1.3/lib/gcc_lib/libwxmsw31u_core.a(corelib_renderer.o):renderer.cpp:(.text+0x5fb): undefined reference to `__imp_IsThemePartDefined'
C:/wxWidgets_3.1.3/lib/gcc_lib/libwxmsw31u_core.a(corelib_renderer.o):renderer.cpp:(.text+0x621): undefined reference to `__imp_CloseThemeData'
C:/wxWidgets_3.1.3/lib/gcc_lib/libwxmsw31u_core.a(corelib_renderer.o):renderer.cpp:(.text+0x6b3): undefined reference to `__imp_GetThemePartSize'
C:/wxWidgets_3.1.3/lib/gcc_lib/libwxmsw31u_core.a(corelib_renderer.o):renderer.cpp:(.text+0x6e3): undefined reference to `__imp_CloseThemeData'
C:/wxWidgets_3.1.3/lib/gcc_lib/libwxmsw31u_core.a(corelib_renderer.o):renderer.cpp:(.text+0x722): undefined reference to `__imp_OpenThemeData'
C:/wxWidgets_3.1.3/lib/gcc_lib/libwxmsw31u_core.a(corelib_renderer.o):renderer.cpp:(.text+0x73b): undefined reference to `__imp_IsThemePartDefined'
C:/wxWidgets_3.1.3/lib/gcc_lib/libwxmsw31u_core.a(corelib_renderer.o):renderer.cpp:(.text+0x761): undefined reference to `__imp_CloseThemeData'
C:/wxWidgets_3.1.3/lib/gcc_lib/libwxmsw31u_core.a(corelib_renderer.o):renderer.cpp:(.text+0x7f3): undefined reference to `__imp_GetThemePartSize'
C:/wxWidgets_3.1.3/lib/gcc_lib/libwxmsw31u_core.a(corelib_renderer.o):renderer.cpp:(.text+0x823): undefined reference to `__imp_CloseThemeData'
C:/wxWidgets_3.1.3/lib/gcc_lib/libwxmsw31u_core.a(corelib_renderer.o):renderer.cpp:(.text+0x961): undefined reference to `__imp_OpenThemeData'
C:/wxWidgets_3.1.3/lib/gcc_lib/libwxmsw31u_core.a(corelib_renderer.o):renderer.cpp:(.text+0x975): undefined reference to `__imp_IsThemePartDefined'
C:/wxWidgets_3.1.3/lib/gcc_lib/libwxmsw31u_core.a(corelib_renderer.o):renderer.cpp:(.text+0x9d2): undefined reference to `__imp_GetThemePartSize'
C:/wxWidgets_3.1.3/lib/gcc_lib/libwxmsw31u_core.a(corelib_renderer.o):renderer.cpp:(.text+0xa22): undefined reference to `__imp_CloseThemeData'
C:/wxWidgets_3.1.3/lib/gcc_lib/libwxmsw31u_core.a(corelib_renderer.o):renderer.cpp:(.text+0xa68): undefined reference to `__imp_CloseThemeData'
C:/wxWidgets_3.1.3/lib/gcc_lib/libwxmsw31u_core.a(corelib_renderer.o):renderer.cpp:(.text+0xab1): undefined reference to `__imp_OpenThemeData'
C:/wxWidgets_3.1.3/lib/gcc_lib/libwxmsw31u_core.a(corelib_renderer.o):renderer.cpp:(.text+0xaed): undefined reference to `__imp_IsThemePartDefined'
C:/wxWidgets_3.1.3/lib/gcc_lib/libwxmsw31u_core.a(corelib_renderer.o):renderer.cpp:(.text+0xb44): undefined reference to `__imp_IsThemeBackgroundPartiallyTransparent'
C:/wxWidgets_3.1.3/lib/gcc_lib/libwxmsw31u_core.a(corelib_renderer.o):renderer.cpp:(.text+0xb81): undefined reference to `__imp_DrawThemeParentBackground'
C:/wxWidgets_3.1.3/lib/gcc_lib/libwxmsw31u_core.a(corelib_renderer.o):renderer.cpp:(.text+0xbde): undefined reference to `__imp_DrawThemeBackground'
C:/wxWidgets_3.1.3/lib/gcc_lib/libwxmsw31u_core.a(corelib_renderer.o):renderer.cpp:(.text+0xc29): undefined reference to `__imp_CloseThemeData'
C:/wxWidgets_3.1.3/lib/gcc_lib/libwxmsw31u_core.a(corelib_renderer.o):renderer.cpp:(.text+0xcc1): undefined reference to `__imp_CloseThemeData'
C:/wxWidgets_3.1.3/lib/gcc_lib/libwxmsw31u_core.a(corelib_renderer.o):renderer.cpp:(.text+0xd16): undefined reference to `__imp_OpenThemeData'
C:/wxWidgets_3.1.3/lib/gcc_lib/libwxmsw31u_core.a(corelib_renderer.o):renderer.cpp:(.text+0xdc4): undefined reference to `__imp_DrawThemeBackground'
C:/wxWidgets_3.1.3/lib/gcc_lib/libwxmsw31u_core.a(corelib_renderer.o):renderer.cpp:(.text+0xde9): undefined reference to `__imp_CloseThemeData'
C:/wxWidgets_3.1.3/lib/gcc_lib/libwxmsw31u_core.a(corelib_renderer.o):renderer.cpp:(.text+0xe4d): undefined reference to `__imp_CloseThemeData'
C:/wxWidgets_3.1.3/lib/gcc_lib/libwxmsw31u_core.a(corelib_renderer.o):renderer.cpp:(.text+0xeb5): undefined reference to `__imp_CloseThemeData'
C:/wxWidgets_3.1.3/lib/gcc_lib/libwxmsw31u_core.a(corelib_renderer.o):renderer.cpp:(.text+0xf0f): undefined reference to `__imp_OpenThemeData'
C:/wxWidgets_3.1.3/lib/gcc_lib/libwxmsw31u_core.a(corelib_renderer.o):renderer.cpp:(.text+0xf23): undefined reference to `__imp_IsThemePartDefined'
C:/wxWidgets_3.1.3/lib/gcc_lib/libwxmsw31u_core.a(corelib_renderer.o):renderer.cpp:(.text+0xfcb): undefined reference to `__imp_DrawThemeBackground'
C:/wxWidgets_3.1.3/lib/gcc_lib/libwxmsw31u_core.a(corelib_renderer.o):renderer.cpp:(.text+0xff1): undefined reference to `__imp_CloseThemeData'
C:/wxWidgets_3.1.3/lib/gcc_lib/libwxmsw31u_core.a(corelib_renderer.o):renderer.cpp:(.text+0x1068): undefined reference to `__imp_CloseThemeData'
C:/wxWidgets_3.1.3/lib/gcc_lib/libwxmsw31u_core.a(corelib_renderer.o):renderer.cpp:(.text+0x1206): undefined reference to `__imp_OpenThemeData'
C:/wxWidgets_3.1.3/lib/gcc_lib/libwxmsw31u_core.a(corelib_renderer.o):renderer.cpp:(.text+0x12c5): undefined reference to `__imp_DrawThemeBackground'
C:/wxWidgets_3.1.3/lib/gcc_lib/libwxmsw31u_core.a(corelib_renderer.o):renderer.cpp:(.text+0x12ea): undefined reference to `__imp_CloseThemeData'
C:/wxWidgets_3.1.3/lib/gcc_lib/libwxmsw31u_core.a(corelib_renderer.o):renderer.cpp:(.text+0x134d): undefined reference to `__imp_CloseThemeData'
C:/wxWidgets_3.1.3/lib/gcc_lib/libwxmsw31u_core.a(corelib_renderer.o):renderer.cpp:(.text+0x13e6): undefined reference to `__imp_CloseThemeData'
C:/wxWidgets_3.1.3/lib/gcc_lib/libwxmsw31u_core.a(corelib_renderer.o):renderer.cpp:(.text+0x14ff): undefined reference to `__imp_OpenThemeData'
C:/wxWidgets_3.1.3/lib/gcc_lib/libwxmsw31u_core.a(corelib_renderer.o):renderer.cpp:(.text+0x1591): undefined reference to `__imp_DrawThemeBackground'
C:/wxWidgets_3.1.3/lib/gcc_lib/libwxmsw31u_core.a(corelib_renderer.o):renderer.cpp:(.text+0x1602): undefined reference to `__imp_GetThemeBackgroundContentRect'
C:/wxWidgets_3.1.3/lib/gcc_lib/libwxmsw31u_core.a(corelib_renderer.o):renderer.cpp:(.text+0x16b2): undefined reference to `__imp_CloseThemeData'
C:/wxWidgets_3.1.3/lib/gcc_lib/libwxmsw31u_core.a(corelib_renderer.o):renderer.cpp:(.text+0x17b9): undefined reference to `__imp_CloseThemeData'
C:/wxWidgets_3.1.3/lib/gcc_lib/libwxmsw31u_core.a(corelib_renderer.o):renderer.cpp:(.text+0x182f): undefined reference to `__imp_OpenThemeData'
C:/wxWidgets_3.1.3/lib/gcc_lib/libwxmsw31u_core.a(corelib_renderer.o):renderer.cpp:(.text+0x188e): undefined reference to `__imp_GetThemeColor'
C:/wxWidgets_3.1.3/lib/gcc_lib/libwxmsw31u_core.a(corelib_renderer.o):renderer.cpp:(.text+0x1b42): undefined reference to `__imp_CloseThemeData'
C:/wxWidgets_3.1.3/lib/gcc_lib/libwxmsw31u_core.a(corelib_renderer.o):renderer.cpp:(.text+0x1bb8): undefined reference to `__imp_CloseThemeData'
C:/wxWidgets_3.1.3/lib/gcc_lib/libwxmsw31u_core.a(corelib_renderer.o):renderer.cpp:(.text+0x1cd3): undefined reference to `__imp_OpenThemeData'
C:/wxWidgets_3.1.3/lib/gcc_lib/libwxmsw31u_core.a(corelib_renderer.o):renderer.cpp:(.text+0x1d8b): undefined reference to `__imp_DrawThemeBackground'
C:/wxWidgets_3.1.3/lib/gcc_lib/libwxmsw31u_core.a(corelib_renderer.o):renderer.cpp:(.text+0x1f26): undefined reference to `__imp_CloseThemeData'
C:/wxWidgets_3.1.3/lib/gcc_lib/libwxmsw31u_core.a(corelib_renderer.o):renderer.cpp:(.text+0x2005): undefined reference to `__imp_CloseThemeData'
C:/wxWidgets_3.1.3/lib/gcc_lib/libwxmsw31u_core.a(corelib_renderer.o):renderer.cpp:(.text+0x278f): undefined reference to `__imp_OpenThemeData'
C:/wxWidgets_3.1.3/lib/gcc_lib/libwxmsw31u_core.a(corelib_renderer.o):renderer.cpp:(.text+0x283b): undefined reference to `__imp_DrawThemeBackground'
C:/wxWidgets_3.1.3/lib/gcc_lib/libwxmsw31u_core.a(corelib_renderer.o):renderer.cpp:(.text+0x2865): undefined reference to `__imp_CloseThemeData'
C:/wxWidgets_3.1.3/lib/gcc_lib/libwxmsw31u_core.a(corelib_renderer.o):renderer.cpp:(.text+0x2926): undefined reference to `__imp_CloseThemeData'
C:/wxWidgets_3.1.3/lib/gcc_lib/libwxmsw31u_core.a(corelib_renderer.o):renderer.cpp:(.text+0x2a01): undefined reference to `__imp_DrawThemeBackground'
C:/wxWidgets_3.1.3/lib/gcc_lib/libwxmsw31u_core.a(corelib_renderer.o):renderer.cpp:(.text+0x2b60): undefined reference to `__imp_OpenThemeData'
C:/wxWidgets_3.1.3/lib/gcc_lib/libwxmsw31u_core.a(corelib_renderer.o):renderer.cpp:(.text+0x2b9a): undefined reference to `__imp_CloseThemeData'
C:/wxWidgets_3.1.3/lib/gcc_lib/libwxmsw31u_core.a(corelib_renderer.o):renderer.cpp:(.text+0x2bc3): undefined reference to `__imp_CloseThemeData'
C:/wxWidgets_3.1.3/lib/gcc_lib/libwxmsw31u_core.a(corelib_renderer.o):renderer.cpp:(.text+0x2c09): undefined reference to `__imp_OpenThemeData'
C:/wxWidgets_3.1.3/lib/gcc_lib/libwxmsw31u_core.a(corelib_renderer.o):renderer.cpp:(.text+0x2c6d): undefined reference to `__imp_CloseThemeData'
C:/wxWidgets_3.1.3/lib/gcc_lib/libwxmsw31u_core.a(corelib_renderer.o):renderer.cpp:(.text+0x2ce7): undefined reference to `__imp_CloseThemeData'
C:/wxWidgets_3.1.3/lib/gcc_lib/libwxmsw31u_core.a(corelib_renderer.o):renderer.cpp:(.text+0x2d53): undefined reference to `__imp_CloseThemeData'
C:/wxWidgets_3.1.3/lib/gcc_lib/libwxmsw31u_core.a(corelib_renderer.o):renderer.cpp:(.text+0x3067): undefined reference to `__imp_OpenThemeData'
C:/wxWidgets_3.1.3/lib/gcc_lib/libwxmsw31u_core.a(corelib_renderer.o):renderer.cpp:(.text+0x30c1): undefined reference to `__imp_IsThemePartDefined'
C:/wxWidgets_3.1.3/lib/gcc_lib/libwxmsw31u_core.a(corelib_renderer.o):renderer.cpp:(.text+0x3121): undefined reference to `__imp_CloseThemeData'
C:/wxWidgets_3.1.3/lib/gcc_lib/libwxmsw31u_core.a(corelib_renderer.o):renderer.cpp:(.text+0x3938): undefined reference to `__imp_CloseThemeData'
C:/wxWidgets_3.1.3/lib/gcc_lib/libwxmsw31u_core.a(corelib_uxtheme.o):uxtheme.cpp:(.text+0x6): undefined reference to `__imp_IsAppThemed'
C:/wxWidgets_3.1.3/lib/gcc_lib/libwxmsw31u_core.a(corelib_uxtheme.o):uxtheme.cpp:(.text+0x12): undefined reference to `__imp_IsThemeActive'
C:/wxWidgets_3.1.3/lib/gcc_lib/libwxmsw31u_core.a(corelib_msw_anybutton.o):anybutton.cpp:(.text+0x8f0): undefined reference to `__imp_OpenThemeData'
C:/wxWidgets_3.1.3/lib/gcc_lib/libwxmsw31u_core.a(corelib_msw_anybutton.o):anybutton.cpp:(.text+0x934): undefined reference to `__imp_GetThemeMargins'
C:/wxWidgets_3.1.3/lib/gcc_lib/libwxmsw31u_core.a(corelib_msw_anybutton.o):anybutton.cpp:(.text+0x974): undefined reference to `__imp_CloseThemeData'
C:/wxWidgets_3.1.3/lib/gcc_lib/libwxmsw31u_core.a(corelib_msw_anybutton.o):anybutton.cpp:(.text+0x98a): undefined reference to `__imp_CloseThemeData'
C:/wxWidgets_3.1.3/lib/gcc_lib/libwxmsw31u_core.a(corelib_msw_anybutton.o):anybutton.cpp:(.text+0x3ef0): undefined reference to `__imp_OpenThemeData'
C:/wxWidgets_3.1.3/lib/gcc_lib/libwxmsw31u_core.a(corelib_msw_anybutton.o):anybutton.cpp:(.text+0x3f17): undefined reference to `__imp_IsThemeBackgroundPartiallyTransparent'
C:/wxWidgets_3.1.3/lib/gcc_lib/libwxmsw31u_core.a(corelib_msw_anybutton.o):anybutton.cpp:(.text+0x3f3a): undefined reference to `__imp_DrawThemeParentBackground'
C:/wxWidgets_3.1.3/lib/gcc_lib/libwxmsw31u_core.a(corelib_msw_anybutton.o):anybutton.cpp:(.text+0x3f69): undefined reference to `__imp_DrawThemeBackground'
C:/wxWidgets_3.1.3/lib/gcc_lib/libwxmsw31u_core.a(corelib_msw_anybutton.o):anybutton.cpp:(.text+0x3fb2): undefined reference to `__imp_GetThemeMargins'
C:/wxWidgets_3.1.3/lib/gcc_lib/libwxmsw31u_core.a(corelib_msw_anybutton.o):anybutton.cpp:(.text+0x408e): undefined reference to `__imp_CloseThemeData'
C:/wxWidgets_3.1.3/lib/gcc_lib/libwxmsw31u_core.a(corelib_msw_anybutton.o):anybutton.cpp:(.text+0x650f): undefined reference to `__imp_CloseThemeData'
C:/wxWidgets_3.1.3/lib/gcc_lib/libwxmsw31u_core.a(corelib_combo.o):combo.cpp:(.text+0xfaf): undefined reference to `__imp_OpenThemeData'
C:/wxWidgets_3.1.3/lib/gcc_lib/libwxmsw31u_core.a(corelib_combo.o):combo.cpp:(.text+0x12b9): undefined reference to `__imp_CloseThemeData'
C:/wxWidgets_3.1.3/lib/gcc_lib/libwxmsw31u_core.a(corelib_combo.o):combo.cpp:(.text+0x18b9): undefined reference to `__imp_CloseThemeData'
C:/wxWidgets_3.1.3/lib/gcc_lib/libwxmsw31u_core.a(corelib_combo.o):combo.cpp:(.text+0x1b19): undefined reference to `__imp_OpenThemeData'
C:/wxWidgets_3.1.3/lib/gcc_lib/libwxmsw31u_core.a(corelib_combo.o):combo.cpp:(.text+0x1c71): undefined reference to `__imp_IsThemeBackgroundPartiallyTransparent'
C:/wxWidgets_3.1.3/lib/gcc_lib/libwxmsw31u_core.a(corelib_combo.o):combo.cpp:(.text+0x1ca1): undefined reference to `__imp_DrawThemeParentBackground'
C:/wxWidgets_3.1.3/lib/gcc_lib/libwxmsw31u_core.a(corelib_combo.o):combo.cpp:(.text+0x1cdd): undefined reference to `__imp_DrawThemeBackground'
C:/wxWidgets_3.1.3/lib/gcc_lib/libwxmsw31u_core.a(corelib_combo.o):combo.cpp:(.text+0x1d2d): undefined reference to `__imp_DrawThemeBackground'
C:/wxWidgets_3.1.3/lib/gcc_lib/libwxmsw31u_core.a(corelib_combo.o):combo.cpp:(.text+0x1de6): undefined reference to `__imp_CloseThemeData'
C:/wxWidgets_3.1.3/lib/gcc_lib/libwxmsw31u_core.a(corelib_combo.o):combo.cpp:(.text+0x2294): undefined reference to `__imp_CloseThemeData'
C:/wxWidgets_3.1.3/lib/gcc_lib/libwxmsw31u_core.a(corelib_access.o):access.cpp:(.text+0x1e9): undefined reference to `CreateStdAccessibleObject'
C:/wxWidgets_3.1.3/lib/gcc_lib/libwxmsw31u_core.a(corelib_systhemectrl.o):systhemectrl.cpp:(.text+0x6c): undefined reference to `__imp_SetWindowTheme'
C:/wxWidgets_3.1.3/lib/gcc_lib/libwxmsw31u_core.a(corelib_msw_notebook.o):notebook.cpp:(.text+0x1809): undefined reference to `__imp_OpenThemeData'
C:/wxWidgets_3.1.3/lib/gcc_lib/libwxmsw31u_core.a(corelib_msw_notebook.o):notebook.cpp:(.text+0x184c): undefined reference to `__imp_GetThemeBackgroundContentRect'
C:/wxWidgets_3.1.3/lib/gcc_lib/libwxmsw31u_core.a(corelib_msw_notebook.o):notebook.cpp:(.text+0x188f): undefined reference to `__imp_GetThemeBackgroundExtent'
C:/wxWidgets_3.1.3/lib/gcc_lib/libwxmsw31u_core.a(corelib_msw_notebook.o):notebook.cpp:(.text+0x18e6): undefined reference to `__imp_DrawThemeBackground'
C:/wxWidgets_3.1.3/lib/gcc_lib/libwxmsw31u_core.a(corelib_msw_notebook.o):notebook.cpp:(.text+0x1936): undefined reference to `__imp_CloseThemeData'
C:/wxWidgets_3.1.3/lib/gcc_lib/libwxmsw31u_core.a(corelib_msw_notebook.o):notebook.cpp:(.text+0x1999): undefined reference to `__imp_CloseThemeData'
C:/wxWidgets_3.1.3/lib/gcc_lib/libwxmsw31u_core.a(corelib_msw_notebook.o):notebook.cpp:(.text+0x2046): undefined reference to `__imp_OpenThemeData'
C:/wxWidgets_3.1.3/lib/gcc_lib/libwxmsw31u_core.a(corelib_msw_notebook.o):notebook.cpp:(.text+0x206a): undefined reference to `__imp_GetThemeColor'
C:/wxWidgets_3.1.3/lib/gcc_lib/libwxmsw31u_core.a(corelib_msw_notebook.o):notebook.cpp:(.text+0x2168): undefined reference to `__imp_CloseThemeData'
C:/wxWidgets_3.1.3/lib/gcc_lib/libwxmsw31u_core.a(corelib_msw_notebook.o):notebook.cpp:(.text+0x21f8): undefined reference to `__imp_GetCurrentThemeName'
C:/wxWidgets_3.1.3/lib/gcc_lib/libwxmsw31u_core.a(corelib_msw_notebook.o):notebook.cpp:(.text+0x24a0): undefined reference to `__imp_CloseThemeData'
C:/wxWidgets_3.1.3/lib/gcc_lib/libwxmsw31u_core.a(corelib_msw_notebook.o):notebook.cpp:(.text+0x4271): undefined reference to `__imp_SetWindowTheme'
C:/wxWidgets_3.1.3/lib/gcc_lib/libwxmsw31u_core.a(corelib_msw_notebook.o):notebook.cpp:(.text+0x65c0): undefined reference to `__imp_OpenThemeData'
C:/wxWidgets_3.1.3/lib/gcc_lib/libwxmsw31u_core.a(corelib_msw_notebook.o):notebook.cpp:(.text+0x6600): undefined reference to `__imp_GetThemeBackgroundExtent'
C:/wxWidgets_3.1.3/lib/gcc_lib/libwxmsw31u_core.a(corelib_msw_notebook.o):notebook.cpp:(.text+0x6623): undefined reference to `__imp_DrawThemeBackground'
C:/wxWidgets_3.1.3/lib/gcc_lib/libwxmsw31u_core.a(corelib_msw_notebook.o):notebook.cpp:(.text+0x6631): undefined reference to `__imp_CloseThemeData'
C:/wxWidgets_3.1.3/lib/gcc_lib/libwxmsw31u_core.a(corelib_msw_notebook.o):notebook.cpp:(.text+0x664b): undefined reference to `__imp_CloseThemeData'
collect2.exe: error: ld returned 1 exit status
mingw32-make.exe[1]: *** [MSW_Test_1.mk:83: ..\build-Debug_MSW\bin\MSW_Test_1] Error 1
mingw32-make.exe: *** [Makefile:5: All] Error 2
mingw32-make.exe[1]: Leaving directory 'Z:/wxWidgets/Projekte/Tests/MSW_Test_1'
====162 errors, 0 warnings====

User avatar
eranif
CodeLite Plugin
Posts: 5982
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: wxWidgets Application static linking fails

Post by eranif » Sun Feb 02, 2020 11:11 pm

The same issue was asked last week ...
I have patched wx-config for Windows to include libUxTheme.dll which contains all the symbols you are missing.

You can get it from here:
http://codelite.org/wx-config.zip

- Download the zip
- extract its content and replace the one you have under C:\Program Files\CodeLite\wx-config.exe
- Build again

The new wx-config will include libUxTheme in the --libs list
Make sure you have read the HOW TO POST thread

Netzschleicher
CodeLite Enthusiast
Posts: 19
Joined: Fri Aug 13, 2010 10:45 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: wxWidgets Application static linking fails

Post by Netzschleicher » Sun Feb 02, 2020 11:55 pm

It works better, but not fully:

Code: Select all

C:\Windows\system32\cmd.exe /C C:/mingw64_710_seh/bin/mingw32-make.exe -j2 SHELL=cmd.exe -e -f  Makefile
"----------Building project:[ MSW_Test_1 - Debug_MSW ]----------"
mingw32-make.exe[1]: Entering directory 'Z:/wxWidgets/Projekte/Tests/MSW_Test_1'
C:/mingw64_710_seh/bin/windres.exe -i "Z:/wxWidgets/Projekte/Tests/MSW_Test_1/win_resources.rc" --use-temp-file --define __WXMSW__ --define _UNICODE --include-dir C:/wxWidgets_3.1.3/lib/gcc_dll/mswu --include-dir C:/wxWidgets_3.1.3/include --define WXUSINGDLL     -o ../build-Debug_MSW/MSW_Test_1/win_resources.rc.o
C:/mingw64_710_seh/bin/windres.exe: warning: 24: 1: 1033: duplicate value
C:/mingw64_710_seh/bin/g++.exe  -c  "Z:/wxWidgets/Projekte/Tests/MSW_Test_1/MainFrame.cpp" -g -O0 -Wall -mthreads -DHAVE_W32API_H -D__WXMSW__ -DNDEBUG -D_UNICODE -IC:/wxWidgets_3.1.3/lib/gcc_lib/mswu -IC:/wxWidgets_3.1.3/include -Wno-ctor-dtor-privacy -pipe -fmessage-length=0  -std=gnu++11   -o ../build-Debug_MSW/MSW_Test_1/MainFrame.cpp.o -I. -I.
C:/mingw64_710_seh/bin/g++.exe  -c  "Z:/wxWidgets/Projekte/Tests/MSW_Test_1/main.cpp" -g -O0 -Wall -mthreads -DHAVE_W32API_H -D__WXMSW__ -DNDEBUG -D_UNICODE -IC:/wxWidgets_3.1.3/lib/gcc_lib/mswu -IC:/wxWidgets_3.1.3/include -Wno-ctor-dtor-privacy -pipe -fmessage-length=0  -std=gnu++11   -o ../build-Debug_MSW/MSW_Test_1/main.cpp.o -I. -I.
C:/mingw64_710_seh/bin/g++.exe  -c  "Z:/wxWidgets/Projekte/Tests/MSW_Test_1/wxcrafter_bitmaps.cpp" -g -O0 -Wall -mthreads -DHAVE_W32API_H -D__WXMSW__ -DNDEBUG -D_UNICODE -IC:/wxWidgets_3.1.3/lib/gcc_lib/mswu -IC:/wxWidgets_3.1.3/include -Wno-ctor-dtor-privacy -pipe -fmessage-length=0  -std=gnu++11   -o ../build-Debug_MSW/MSW_Test_1/wxcrafter_bitmaps.cpp.o -I. -I.
C:/mingw64_710_seh/bin/g++.exe  -c  "Z:/wxWidgets/Projekte/Tests/MSW_Test_1/wxcrafter.cpp" -g -O0 -Wall -mthreads -DHAVE_W32API_H -D__WXMSW__ -DNDEBUG -D_UNICODE -IC:/wxWidgets_3.1.3/lib/gcc_lib/mswu -IC:/wxWidgets_3.1.3/include -Wno-ctor-dtor-privacy -pipe -fmessage-length=0  -std=gnu++11   -o ../build-Debug_MSW/MSW_Test_1/wxcrafter.cpp.o -I. -I.
C:/mingw64_710_seh/bin/g++.exe -o ..\build-Debug_MSW\bin\MSW_Test_1 @../build-Debug_MSW/MSW_Test_1/ObjectsList.txt -L.   -mwindows  -mthreads -LC:/wxWidgets_3.1.3/lib/gcc_lib -lwxmsw31u_richtext -lwxmsw31u_xrc -lwxmsw31u_aui -lwxmsw31u_html -lwxmsw31u_adv -lwxmsw31u_core -lwxbase31u_xml -lwxbase31u_net -lwxbase31u -lwxscintilla -lwxtiff -lwxjpeg -lwxpng -lwxzlib -lwxregexu -lwxexpat -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwxregexu -lwinspool -lwinmm -lshell32 -lcomctl32 -lversion -lshlwapi -lole32 -loleaut32 -luuid -lrpcrt4 -ladvapi32 -lwsock32 -luxtheme
C:/wxWidgets_3.1.3/lib/gcc_lib/libwxmsw31u_core.a(corelib_access.o):access.cpp:(.text+0x1e9): undefined reference to `CreateStdAccessibleObject'
collect2.exe: error: ld returned 1 exit status
mingw32-make.exe[1]: *** [MSW_Test_1.mk:83: ..\build-Debug_MSW\bin\MSW_Test_1] Error 1
mingw32-make.exe: *** [Makefile:5: All] Error 2
mingw32-make.exe[1]: Leaving directory 'Z:/wxWidgets/Projekte/Tests/MSW_Test_1'
====1 errors, 0 warnings====

User avatar
eranif
CodeLite Plugin
Posts: 5982
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: wxWidgets Application static linking fails

Post by eranif » Mon Feb 03, 2020 12:21 am

You are missing -loleacc
I have updated the wx-config.zip (the fixes are committed to git)

Re-download it and try again
Make sure you have read the HOW TO POST thread

Netzschleicher
CodeLite Enthusiast
Posts: 19
Joined: Fri Aug 13, 2010 10:45 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: wxWidgets Application static linking fails

Post by Netzschleicher » Mon Feb 03, 2020 1:11 am

I'm sorry, but i get the same Error:

Code: Select all

C:\Windows\system32\cmd.exe /C C:/mingw64_710_seh/bin/mingw32-make.exe -j2 SHELL=cmd.exe -e -f  Makefile
"----------Building project:[ MSW_Test_1 - Debug_MSW ]----------"
mingw32-make.exe[1]: Entering directory 'Z:/wxWidgets/Projekte/Tests/MSW_Test_1'
C:/mingw64_710_seh/bin/windres.exe -i "Z:/wxWidgets/Projekte/Tests/MSW_Test_1/win_resources.rc" --use-temp-file --define __WXMSW__ --define _UNICODE --include-dir C:/wxWidgets_3.1.3/lib/gcc_lib/mswu --include-dir C:/wxWidgets_3.1.3/include     -o ../build-Debug_MSW/MSW_Test_1/win_resources.rc.o
C:/mingw64_710_seh/bin/windres.exe: warning: 24: 1: 1033: duplicate value
C:/mingw64_710_seh/bin/g++.exe  -c  "Z:/wxWidgets/Projekte/Tests/MSW_Test_1/MainFrame.cpp" -g -O0 -Wall -mthreads -DHAVE_W32API_H -D__WXMSW__ -DNDEBUG -D_UNICODE -IC:/wxWidgets_3.1.3/lib/gcc_lib/mswu -IC:/wxWidgets_3.1.3/include -Wno-ctor-dtor-privacy -pipe -fmessage-length=0  -std=gnu++11   -o ../build-Debug_MSW/MSW_Test_1/MainFrame.cpp.o -I. -I.
C:/mingw64_710_seh/bin/g++.exe  -c  "Z:/wxWidgets/Projekte/Tests/MSW_Test_1/main.cpp" -g -O0 -Wall -mthreads -DHAVE_W32API_H -D__WXMSW__ -DNDEBUG -D_UNICODE -IC:/wxWidgets_3.1.3/lib/gcc_lib/mswu -IC:/wxWidgets_3.1.3/include -Wno-ctor-dtor-privacy -pipe -fmessage-length=0  -std=gnu++11   -o ../build-Debug_MSW/MSW_Test_1/main.cpp.o -I. -I.
C:/mingw64_710_seh/bin/g++.exe  -c  "Z:/wxWidgets/Projekte/Tests/MSW_Test_1/wxcrafter_bitmaps.cpp" -g -O0 -Wall -mthreads -DHAVE_W32API_H -D__WXMSW__ -DNDEBUG -D_UNICODE -IC:/wxWidgets_3.1.3/lib/gcc_lib/mswu -IC:/wxWidgets_3.1.3/include -Wno-ctor-dtor-privacy -pipe -fmessage-length=0  -std=gnu++11   -o ../build-Debug_MSW/MSW_Test_1/wxcrafter_bitmaps.cpp.o -I. -I.
C:/mingw64_710_seh/bin/g++.exe  -c  "Z:/wxWidgets/Projekte/Tests/MSW_Test_1/wxcrafter.cpp" -g -O0 -Wall -mthreads -DHAVE_W32API_H -D__WXMSW__ -DNDEBUG -D_UNICODE -IC:/wxWidgets_3.1.3/lib/gcc_lib/mswu -IC:/wxWidgets_3.1.3/include -Wno-ctor-dtor-privacy -pipe -fmessage-length=0  -std=gnu++11   -o ../build-Debug_MSW/MSW_Test_1/wxcrafter.cpp.o -I. -I.
C:/mingw64_710_seh/bin/g++.exe -o ..\build-Debug_MSW\bin\MSW_Test_1 @../build-Debug_MSW/MSW_Test_1/ObjectsList.txt -L.   -mwindows  -mthreads -LC:/wxWidgets_3.1.3/lib/gcc_lib -lwxmsw31u_richtext -lwxmsw31u_xrc -lwxmsw31u_aui -lwxmsw31u_html -lwxmsw31u_adv -lwxmsw31u_core -lwxbase31u_xml -lwxbase31u_net -lwxbase31u -lwxscintilla -lwxtiff -lwxjpeg -lwxpng -lwxzlib -lwxregexu -lwxexpat -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwxregexu -lwinspool -lwinmm -lshell32 -lcomctl32 -lversion -lshlwapi -lole32 -loleaut32 -luuid -lrpcrt4 -ladvapi32 -lwsock32 -luxtheme
C:/wxWidgets_3.1.3/lib/gcc_lib/libwxmsw31u_core.a(corelib_access.o):access.cpp:(.text+0x1e9): undefined reference to `CreateStdAccessibleObject'
collect2.exe: error: ld returned 1 exit status
mingw32-make.exe[1]: *** [MSW_Test_1.mk:84: ..\build-Debug_MSW\bin\MSW_Test_1] Error 1
mingw32-make.exe: *** [Makefile:5: All] Error 2
mingw32-make.exe[1]: Leaving directory 'Z:/wxWidgets/Projekte/Tests/MSW_Test_1'
====1 errors, 0 warnings====

User avatar
eranif
CodeLite Plugin
Posts: 5982
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: wxWidgets Application static linking fails

Post by eranif » Mon Feb 03, 2020 1:34 am

I re-uploaded the zip file and checked it:

Code: Select all

Eran@windows-10 MSYS /tmp
$ ./wx-config --libs --prefix=/c/src/wxWidgets
 -mthreads -LC:/src/wxWidgets/lib/gcc_dll -lwxmsw31u_richtext -lwxmsw31u_xrc -lwxmsw31u_aui -lwxmsw31u_html -lwxmsw31u_adv -lwxmsw31u_core -lwxbase31u_xml -lwxbase31u_net -lwxbase31u -lwxscintilla -lwxtiff -lwxjpeg -lwxpng -lwxzlib -lwxregexu -lwxexpat -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwxregexu -lwinspool -lwinmm -lshell32 -lcomctl32 -lversion -lshlwapi -lole32 -loleaut32 -luuid -lrpcrt4 -ladvapi32 -lwsock32 -luxtheme -loleacc
As you can see, this one adds at the end "-loleacc"
Re-download and test again
Make sure you have read the HOW TO POST thread

Netzschleicher
CodeLite Enthusiast
Posts: 19
Joined: Fri Aug 13, 2010 10:45 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: wxWidgets Application static linking fails

Post by Netzschleicher » Mon Feb 03, 2020 9:31 pm

Thats it. Now it works perfect.
Great work.
Thank you very much, Eran.

Post Reply