Link error in a fresh installation [Solved]

CodeLite installation/troubleshooting forum
marcelinux
CodeLite Enthusiast
Posts: 17
Joined: Mon Nov 02, 2015 3:26 pm
Genuine User: Yes
IDE Question: C++
Location: Spain
Contact:

Link error in a fresh installation [Solved]

Post by marcelinux » Fri Jan 18, 2019 2:01 am

Hi!
I use CodeLite a little bit in a debian system. Now, after the last crash of my Win10, I restored the original Win8.1 in my laptop.
I searched for similar posts and the most approximate is ColeenKobe's
https://forums.codelite.org/viewtopic.php?f=3&t=3308
but she is refering to shared wx (dll) and I would a static build (lib)
So, I downloaded again wxWidgets, MinGW64 and CodeLite.
Installed MinGW 4.2.1

Code: Select all

C:\dev>mingw32-make --version
GNU Make 4.2.1
Built for i686-w64-mingw32
Copyright (C) 1988-2016 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Compiled wxWidgets 3.1.2

Code: Select all

C:\dev\wx\build\msw>mingw32-make -j8 -f makefile.gcc BUILD=release SHARED=0 CXXFLAGS=-std=gnu++11 setup_h
C:\dev\wx\build\msw>mingw32-make -j8 -f makefile.gcc BUILD=release SHARED=0 CXXFLAGS=-std=gnu++11
Set environment variables

Code: Select all

WXWIN=C:\dev\wx
WXCFG=gcc_lib\mswu
Tested minimal

Code: Select all

C:\dev\wx\samples\minimal>mingw32-make -j8 -f makefile.gcc BUILD=release SHARED=
0 CXXFLAGS=-std=gnu++11
if not exist gcc_mswu mkdir gcc_mswu
windres --use-temp-file -i../../samples/sample.rc -ogcc_mswu\minimal_sample_rc.o
    --define __WXMSW__   --define NDEBUG    --define _UNICODE --include-dir .\..
\..\lib\gcc_lib\mswu --include-dir ./../../include  --include-dir .  --include-d
ir ./../../samples --define NOPCH
g++ -c -o gcc_mswu\minimal_minimal.o  -O2 -mthreads  -DHAVE_W32API_H -D__WXMSW__
   -DNDEBUG    -D_UNICODE -I.\..\..\lib\gcc_lib\mswu -I.\..\..\include  -W -Wall
 -I.  -I.\..\..\samples -DNOPCH   -Wno-ctor-dtor-privacy  -std=gnu++11 -MTgcc_ms
wu\minimal_minimal.o -MFgcc_mswu\minimal_minimal.o.d -MD -MP minimal.cpp
g++ -o gcc_mswu\minimal.exe gcc_mswu\minimal_sample_rc.o gcc_mswu\minimal_minima
l.o   -mthreads -L.\..\..\lib\gcc_lib -Wl,--subsystem,windows -mwindows    -lwxm
sw31u_core  -lwxbase31u    -lwxtiff -lwxjpeg -lwxpng   -lwxzlib -lwxregexu -lwxe
xpat   -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lshl
wapi -lcomctl32 -lole32 -loleaut32 -luuid -lrpcrt4 -ladvapi32 -lversion -lwsock3
2 -lwininet -loleacc -luxtheme
Installed CodeLite 12.0.11

Code: Select all

C:\dev\CodeLite>wx-config --cflags
-mthreads -DHAVE_W32API_H -D__WXMSW__ -DNDEBUG -D_UNICODE -IC:/dev/wx/lib/gcc_li
b/mswu -IC:/dev/wx/include -Wno-ctor-dtor-privacy -pipe -fmessage-length=0  -std
=gnu++11
C:\dev\CodeLite>wx-config --libs
 -mthreads -LC:/dev/wx/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 -lwx
expat -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwxregexu -lwinspool -lwinmm -lshe
ll32 -lcomctl32 -lversion -lshlwapi -lole32 -loleaut32 -luuid -lrpcrt4 -ladvapi3
2 -lwsock32
I created a new workspace and a project by a simple executable g++ template and compile and run perfect.
I created a new workspace and a project by a wxWidgets GUI App wxFrame template
Selected MinGW compiler (default)
But building project

Code: Select all

C:\WINDOWS\system32\cmd.exe /C C:/dev/mingw64/mingw32/bin/mingw32-make.exe -j8 SHELL=cmd.exe -e -f  Makefile
"----------Building project:[ mini_wx - Debug ]----------"
mingw32-make.exe[1]: Entering directory 'C:/dev/app/test/mini_wx'
C:/dev/mingw64/mingw32/bin/windres.exe -i "C:/dev/app/test/mini_wx/win_resources.rc" --use-temp-file --define __WXMSW__ --define _UNICODE --include-dir C:/dev/wx/lib/gcc_lib/mswu --include-dir C:/dev/wx/include    -o ./Debug/win_resources.rc.o
C:/dev/mingw64/mingw32/bin/windres.exe: warning: 24: 1: 1033: duplicate value
C:/dev/mingw64/mingw32/bin/g++.exe  -c  "C:/dev/app/test/mini_wx/wxcrafter.cpp" -g -O0 -Wall -mthreads -DHAVE_W32API_H -D__WXMSW__ -DNDEBUG -D_UNICODE -IC:/dev/wx/lib/gcc_lib/mswu -IC:/dev/wx/include -Wno-ctor-dtor-privacy -pipe -fmessage-length=0  -std=gnu++11    -o ./Debug/wxcrafter.cpp.o -I. -I.
C:/dev/mingw64/mingw32/bin/g++.exe  -c  "C:/dev/app/test/mini_wx/MainFrame.cpp" -g -O0 -Wall -mthreads -DHAVE_W32API_H -D__WXMSW__ -DNDEBUG -D_UNICODE -IC:/dev/wx/lib/gcc_lib/mswu -IC:/dev/wx/include -Wno-ctor-dtor-privacy -pipe -fmessage-length=0  -std=gnu++11    -o ./Debug/MainFrame.cpp.o -I. -I.
C:/dev/mingw64/mingw32/bin/g++.exe  -c  "C:/dev/app/test/mini_wx/main.cpp" -g -O0 -Wall -mthreads -DHAVE_W32API_H -D__WXMSW__ -DNDEBUG -D_UNICODE -IC:/dev/wx/lib/gcc_lib/mswu -IC:/dev/wx/include -Wno-ctor-dtor-privacy -pipe -fmessage-length=0  -std=gnu++11    -o ./Debug/main.cpp.o -I. -I.
C:/dev/mingw64/mingw32/bin/g++.exe  -c  "C:/dev/app/test/mini_wx/wxcrafter_bitmaps.cpp" -g -O0 -Wall -mthreads -DHAVE_W32API_H -D__WXMSW__ -DNDEBUG -D_UNICODE -IC:/dev/wx/lib/gcc_lib/mswu -IC:/dev/wx/include -Wno-ctor-dtor-privacy -pipe -fmessage-length=0  -std=gnu++11    -o ./Debug/wxcrafter_bitmaps.cpp.o -I. -I.
C:/dev/mingw64/mingw32/bin/g++.exe -o ./Debug/mini_wx @"mini_wx.txt" -L.    -mthreads -LC:/dev/wx/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  -mwindows
C:/dev/wx/lib/gcc_lib/libwxmsw31u_core.a(corelib_window.o):window.cpp:(.text+0xac24): undefined reference to `_imp__OpenThemeData@8'
C:/dev/wx/lib/gcc_lib/libwxmsw31u_core.a(corelib_window.o):window.cpp:(.text+0xac54): undefined reference to `_imp__GetThemeColor@20'
C:/dev/wx/lib/gcc_lib/libwxmsw31u_core.a(corelib_window.o):window.cpp:(.text+0xaccd): undefined reference to `_imp__CloseThemeData@4'
C:/dev/wx/lib/gcc_lib/libwxmsw31u_core.a(corelib_window.o):window.cpp:(.text+0xad70): undefined reference to `_imp__CloseThemeData@4'
C:/dev/wx/lib/gcc_lib/libwxmsw31u_core.a(corelib_window.o):window.cpp:(.text+0xd328): undefined reference to `_imp__OpenThemeData@8'
C:/dev/wx/lib/gcc_lib/libwxmsw31u_core.a(corelib_window.o):window.cpp:(.text+0xd3df): undefined reference to `_imp__GetThemeBackgroundContentRect@24'
C:/dev/wx/lib/gcc_lib/libwxmsw31u_core.a(corelib_window.o):window.cpp:(.text+0xd45d): undefined reference to `_imp__IsThemeBackgroundPartiallyTransparent@12'
C:/dev/wx/lib/gcc_lib/libwxmsw31u_core.a(corelib_window.o):window.cpp:(.text+0xd487): undefined reference to `_imp__DrawThemeParentBackground@12'
C:/dev/wx/lib/gcc_lib/libwxmsw31u_core.a(corelib_window.o):window.cpp:(.text+0xd4d8): undefined reference to `_imp__DrawThemeBackground@24'
C:/dev/wx/lib/gcc_lib/libwxmsw31u_core.a(corelib_window.o):window.cpp:(.text+0xd4fd): undefined reference to `_imp__CloseThemeData@4'
C:/dev/wx/lib/gcc_lib/libwxmsw31u_core.a(corelib_window.o):window.cpp:(.text+0xe233): undefined reference to `LresultFromObject@12'
C:/dev/wx/lib/gcc_lib/libwxmsw31u_core.a(corelib_window.o):window.cpp:(.text+0xe2e0): undefined reference to `_imp__OpenThemeData@8'
C:/dev/wx/lib/gcc_lib/libwxmsw31u_core.a(corelib_window.o):window.cpp:(.text+0xe360): undefined reference to `_imp__GetThemeBackgroundContentRect@24'
C:/dev/wx/lib/gcc_lib/libwxmsw31u_core.a(corelib_window.o):window.cpp:(.text+0xe3dd): undefined reference to `_imp__CloseThemeData@4'
C:/dev/wx/lib/gcc_lib/libwxmsw31u_core.a(corelib_window.o):window.cpp:(.text.unlikely+0xb38): undefined reference to `_imp__CloseThemeData@4'
C:/dev/wx/lib/gcc_lib/libwxmsw31u_core.a(corelib_window.o):window.cpp:(.text.unlikely+0xea2): undefined reference to `_imp__CloseThemeData@4'
C:/dev/wx/lib/gcc_lib/libwxmsw31u_core.a(corelib_window.o):window.cpp:(.text.unlikely+0xefa): undefined reference to `_imp__CloseThemeData@4'
C:/dev/wx/lib/gcc_lib/libwxmsw31u_core.a(corelib_menuitem.o):menuitem.cpp:(.text+0x506): undefined reference to `_imp__OpenThemeData@8'
C:/dev/wx/lib/gcc_lib/libwxmsw31u_core.a(corelib_menuitem.o):menuitem.cpp:(.text+0x58a): undefined reference to `_imp__GetThemeSysColor@8'
C:/dev/wx/lib/gcc_lib/libwxmsw31u_core.a(corelib_menuitem.o):menuitem.cpp:(.text+0x5c8): undefined reference to `_imp__CloseThemeData@4'
C:/dev/wx/lib/gcc_lib/libwxmsw31u_core.a(corelib_menuitem.o):menuitem.cpp:(.text+0x5f0): undefined reference to `_imp__GetThemeSysColor@8'
C:/dev/wx/lib/gcc_lib/libwxmsw31u_core.a(corelib_menuitem.o):menuitem.cpp:(.text+0x6a7): undefined reference to `_imp__GetThemeSysColor@8'
C:/dev/wx/lib/gcc_lib/libwxmsw31u_core.a(corelib_menuitem.o):menuitem.cpp:(.text+0x6f5): undefined reference to `_imp__GetThemeSysColor@8'
C:/dev/wx/lib/gcc_lib/libwxmsw31u_core.a(corelib_menuitem.o):menuitem.cpp:(.text+0x21c2): undefined reference to `_imp__OpenThemeData@8'
C:/dev/wx/lib/gcc_lib/libwxmsw31u_core.a(corelib_menuitem.o):menuitem.cpp:(.text+0x21c8): undefined reference to `_imp__GetThemeMargins@28'
C:/dev/wx/lib/gcc_lib/libwxmsw31u_core.a(corelib_menuitem.o):menuitem.cpp:(.text+0x22f2): undefined reference to `_imp__GetThemePartSize@28'
C:/dev/wx/lib/gcc_lib/libwxmsw31u_core.a(corelib_menuitem.o):menuitem.cpp:(.text+0x23bc): undefined reference to `_imp__GetThemeInt@20'
C:/dev/wx/lib/gcc_lib/libwxmsw31u_core.a(corelib_menuitem.o):menuitem.cpp:(.text+0x23ef): undefined reference to `_imp__GetThemeSysFont@12'
C:/dev/wx/lib/gcc_lib/libwxmsw31u_core.a(corelib_menuitem.o):menuitem.cpp:(.text+0x2495): undefined reference to `_imp__CloseThemeData@4'
C:/dev/wx/lib/gcc_lib/libwxmsw31u_core.a(corelib_menuitem.o):menuitem.cpp:(.text+0x34f2): undefined reference to `_imp__OpenThemeData@8'
C:/dev/wx/lib/gcc_lib/libwxmsw31u_core.a(corelib_menuitem.o):menuitem.cpp:(.text+0x3535): undefined reference to `_imp__DrawThemeBackground@24'
C:/dev/wx/lib/gcc_lib/libwxmsw31u_core.a(corelib_menuitem.o):menuitem.cpp:(.text+0x35ea): undefined reference to `_imp__CloseThemeData@4'
C:/dev/wx/lib/gcc_lib/libwxmsw31u_core.a(corelib_menuitem.o):menuitem.cpp:(.text+0x4334): undefined reference to `_imp__OpenThemeData@8'
C:/dev/wx/lib/gcc_lib/libwxmsw31u_core.a(corelib_menuitem.o):menuitem.cpp:(.text+0x4354): undefined reference to `_imp__IsThemeBackgroundPartiallyTransparent@12'
C:/dev/wx/lib/gcc_lib/libwxmsw31u_core.a(corelib_menuitem.o):menuitem.cpp:(.text+0x4364): undefined reference to `_imp__DrawThemeBackground@24'
C:/dev/wx/lib/gcc_lib/libwxmsw31u_core.a(corelib_menuitem.o):menuitem.cpp:(.text+0x43fb): undefined reference to `_imp__CloseThemeData@4'
C:/dev/wx/lib/gcc_lib/libwxmsw31u_core.a(corelib_menuitem.o):menuitem.cpp:(.text+0x4915): undefined reference to `_imp__DrawThemeBackground@24'
C:/dev/wx/lib/gcc_lib/libwxmsw31u_core.a(corelib_menuitem.o):menuitem.cpp:(.text+0x4a33): undefined reference to `_imp__CloseThemeData@4'
C:/dev/wx/lib/gcc_lib/libwxmsw31u_core.a(corelib_menuitem.o):menuitem.cpp:(.text.unlikely+0x7c): undefined reference to `_imp__CloseThemeData@4'
C:/dev/wx/lib/gcc_lib/libwxmsw31u_core.a(corelib_menuitem.o):menuitem.cpp:(.text.unlikely+0x363): undefined reference to `_imp__CloseThemeData@4'
C:/dev/wx/lib/gcc_lib/libwxmsw31u_core.a(corelib_menuitem.o):menuitem.cpp:(.text.unlikely+0x4a5): undefined reference to `_imp__CloseThemeData@4'
C:/dev/wx/lib/gcc_lib/libwxmsw31u_core.a(corelib_menuitem.o):menuitem.cpp:(.text.unlikely+0x6a2): undefined reference to `_imp__CloseThemeData@4'
C:/dev/wx/lib/gcc_lib/libwxmsw31u_core.a(corelib_msw_statbox.o):statbox.cpp:(.text+0x2ba3): undefined reference to `_imp__OpenThemeData@8'
C:/dev/wx/lib/gcc_lib/libwxmsw31u_core.a(corelib_msw_statbox.o):statbox.cpp:(.text+0x2bdf): undefined reference to `_imp__GetThemeFont@24'
C:/dev/wx/lib/gcc_lib/libwxmsw31u_core.a(corelib_msw_statbox.o):statbox.cpp:(.text+0x2c11): undefined reference to `_imp__CloseThemeData@4'
C:/dev/wx/lib/gcc_lib/libwxmsw31u_core.a(corelib_msw_statbox.o):statbox.cpp:(.text.unlikely+0x34f): undefined reference to `_imp__CloseThemeData@4'
C:/dev/wx/lib/gcc_lib/libwxmsw31u_core.a(corelib_statusbar.o):statusbar.cpp:(.text+0x1323): undefined reference to `_imp__OpenThemeData@8'
C:/dev/wx/lib/gcc_lib/libwxmsw31u_core.a(corelib_statusbar.o):statusbar.cpp:(.text+0x136a): undefined reference to `_imp__GetThemeBackgroundContentRect@24'
C:/dev/wx/lib/gcc_lib/libwxmsw31u_core.a(corelib_statusbar.o):statusbar.cpp:(.text+0x13a0): undefined reference to `_imp__CloseThemeData@4'
C:/dev/wx/lib/gcc_lib/libwxmsw31u_core.a(corelib_statusbar.o):statusbar.cpp:(.text.unlikely+0x1f0): undefined reference to `_imp__CloseThemeData@4'
C:/dev/wx/lib/gcc_lib/libwxmsw31u_core.a(corelib_renderer.o):renderer.cpp:(.text+0x449): undefined reference to `_imp__OpenThemeData@8'
C:/dev/wx/lib/gcc_lib/libwxmsw31u_core.a(corelib_renderer.o):renderer.cpp:(.text+0x46b): undefined reference to `_imp__IsThemePartDefined@12'
C:/dev/wx/lib/gcc_lib/libwxmsw31u_core.a(corelib_renderer.o):renderer.cpp:(.text+0x496): undefined reference to `_imp__CloseThemeData@4'
C:/dev/wx/lib/gcc_lib/libwxmsw31u_core.a(corelib_renderer.o):renderer.cpp:(.text+0x544): undefined reference to `_imp__GetThemePartSize@28'
C:/dev/wx/lib/gcc_lib/libwxmsw31u_core.a(corelib_renderer.o):renderer.cpp:(.text+0x6a5): undefined reference to `_imp__OpenThemeData@8'
C:/dev/wx/lib/gcc_lib/libwxmsw31u_core.a(corelib_renderer.o):renderer.cpp:(.text+0x736): undefined reference to `_imp__DrawThemeBackground@24'
C:/dev/wx/lib/gcc_lib/libwxmsw31u_core.a(corelib_renderer.o):renderer.cpp:(.text+0x79b): undefined reference to `_imp__GetThemeBackgroundContentRect@24'
C:/dev/wx/lib/gcc_lib/libwxmsw31u_core.a(corelib_renderer.o):renderer.cpp:(.text+0x84e): undefined reference to `_imp__CloseThemeData@4'
C:/dev/wx/lib/gcc_lib/libwxmsw31u_core.a(corelib_renderer.o):renderer.cpp:(.text+0x9a5): undefined reference to `_imp__OpenThemeData@8'
C:/dev/wx/lib/gcc_lib/libwxmsw31u_core.a(corelib_renderer.o):renderer.cpp:(.text+0x9c3): undefined reference to `_imp__IsThemePartDefined@12'
C:/dev/wx/lib/gcc_lib/libwxmsw31u_core.a(corelib_renderer.o):renderer.cpp:(.text+0xa1b): undefined reference to `_imp__GetThemePartSize@28'
C:/dev/wx/lib/gcc_lib/libwxmsw31u_core.a(corelib_renderer.o):renderer.cpp:(.text+0xa41): undefined reference to `_imp__CloseThemeData@4'
C:/dev/wx/lib/gcc_lib/libwxmsw31u_core.a(corelib_renderer.o):renderer.cpp:(.text+0xad5): undefined reference to `_imp__OpenThemeData@8'
C:/dev/wx/lib/gcc_lib/libwxmsw31u_core.a(corelib_renderer.o):renderer.cpp:(.text+0xb1f): undefined reference to `_imp__IsThemePartDefined@12'
C:/dev/wx/lib/gcc_lib/libwxmsw31u_core.a(corelib_renderer.o):renderer.cpp:(.text+0xb75): undefined reference to `_imp__IsThemeBackgroundPartiallyTransparent@12'
C:/dev/wx/lib/gcc_lib/libwxmsw31u_core.a(corelib_renderer.o):renderer.cpp:(.text+0xbc2): undefined reference to `_imp__DrawThemeBackground@24'
C:/dev/wx/lib/gcc_lib/libwxmsw31u_core.a(corelib_renderer.o):renderer.cpp:(.text+0xbe9): undefined reference to `_imp__CloseThemeData@4'
C:/dev/wx/lib/gcc_lib/libwxmsw31u_core.a(corelib_renderer.o):renderer.cpp:(.text+0xc2c): undefined reference to `_imp__DrawThemeParentBackground@12'
C:/dev/wx/lib/gcc_lib/libwxmsw31u_core.a(corelib_renderer.o):renderer.cpp:(.text+0xd3a): undefined reference to `_imp__OpenThemeData@8'
C:/dev/wx/lib/gcc_lib/libwxmsw31u_core.a(corelib_renderer.o):renderer.cpp:(.text+0xd7a): undefined reference to `_imp__IsThemePartDefined@12'
C:/dev/wx/lib/gcc_lib/libwxmsw31u_core.a(corelib_renderer.o):renderer.cpp:(.text+0xe00): undefined reference to `_imp__DrawThemeBackground@24'
C:/dev/wx/lib/gcc_lib/libwxmsw31u_core.a(corelib_renderer.o):renderer.cpp:(.text+0xe23): undefined reference to `_imp__CloseThemeData@4'
C:/dev/wx/lib/gcc_lib/libwxmsw31u_core.a(corelib_renderer.o):renderer.cpp:(.text+0x1095): undefined reference to `_imp__OpenThemeData@8'
C:/dev/wx/lib/gcc_lib/libwxmsw31u_core.a(corelib_renderer.o):renderer.cpp:(.text+0x112d): undefined reference to `_imp__DrawThemeBackground@24'
C:/dev/wx/lib/gcc_lib/libwxmsw31u_core.a(corelib_renderer.o):renderer.cpp:(.text+0x114d): undefined reference to `_imp__CloseThemeData@4'
C:/dev/wx/lib/gcc_lib/libwxmsw31u_core.a(corelib_renderer.o):renderer.cpp:(.text+0x11dc): undefined reference to `_imp__CloseThemeData@4'
C:/dev/wx/lib/gcc_lib/libwxmsw31u_core.a(corelib_renderer.o):renderer.cpp:(.text+0x1275): undefined reference to `_imp__OpenThemeData@8'
C:/dev/wx/lib/gcc_lib/libwxmsw31u_core.a(corelib_renderer.o):renderer.cpp:(.text+0x1310): undefined reference to `_imp__DrawThemeBackground@24'
C:/dev/wx/lib/gcc_lib/libwxmsw31u_core.a(corelib_renderer.o):renderer.cpp:(.text+0x1330): undefined reference to `_imp__CloseThemeData@4'
C:/dev/wx/lib/gcc_lib/libwxmsw31u_core.a(corelib_renderer.o):renderer.cpp:(.text+0x138d): undefined reference to `_imp__CloseThemeData@4'
C:/dev/wx/lib/gcc_lib/libwxmsw31u_core.a(corelib_renderer.o):renderer.cpp:(.text+0x1421): undefined reference to `_imp__OpenThemeData@8'
C:/dev/wx/lib/gcc_lib/libwxmsw31u_core.a(corelib_renderer.o):renderer.cpp:(.text+0x1470): undefined reference to `_imp__GetThemeColor@20'
C:/dev/wx/lib/gcc_lib/libwxmsw31u_core.a(corelib_renderer.o):renderer.cpp:(.text+0x168c): undefined reference to `_imp__CloseThemeData@4'
C:/dev/wx/lib/gcc_lib/libwxmsw31u_core.a(corelib_renderer.o):renderer.cpp:(.text+0x1741): undefined reference to `_imp__OpenThemeData@8'
C:/dev/wx/lib/gcc_lib/libwxmsw31u_core.a(corelib_renderer.o):renderer.cpp:(.text+0x17f4): undefined reference to `_imp__DrawThemeBackground@24'
C:/dev/wx/lib/gcc_lib/libwxmsw31u_core.a(corelib_renderer.o):renderer.cpp:(.text+0x18f2): undefined reference to `_imp__CloseThemeData@4'
C:/dev/wx/lib/gcc_lib/libwxmsw31u_core.a(corelib_renderer.o):renderer.cpp:(.text+0x205d): undefined reference to `_imp__DrawThemeBackground@24'
C:/dev/wx/lib/gcc_lib/libwxmsw31u_core.a(corelib_renderer.o):renderer.cpp:(.text+0x2180): undefined reference to `_imp__OpenThemeData@8'
C:/dev/wx/lib/gcc_lib/libwxmsw31u_core.a(corelib_renderer.o):renderer.cpp:(.text+0x21bb): undefined reference to `_imp__CloseThemeData@4'
C:/dev/wx/lib/gcc_lib/libwxmsw31u_core.a(corelib_renderer.o):renderer.cpp:(.text+0x2215): undefined reference to `_imp__OpenThemeData@8'
C:/dev/wx/lib/gcc_lib/libwxmsw31u_core.a(corelib_renderer.o):renderer.cpp:(.text+0x2279): undefined reference to `_imp__CloseThemeData@4'
C:/dev/wx/lib/gcc_lib/libwxmsw31u_core.a(corelib_renderer.o):renderer.cpp:(.text+0x22f1): undefined reference to `_imp__CloseThemeData@4'
C:/dev/wx/lib/gcc_lib/libwxmsw31u_core.a(corelib_renderer.o):renderer.cpp:(.text+0x25cb): undefined reference to `_imp__OpenThemeData@8'
C:/dev/wx/lib/gcc_lib/libwxmsw31u_core.a(corelib_renderer.o):renderer.cpp:(.text+0x2650): undefined reference to `_imp__IsThemePartDefined@12'
C:/dev/wx/lib/gcc_lib/libwxmsw31u_core.a(corelib_renderer.o):renderer.cpp:(.text+0x29ab): undefined reference to `_imp__CloseThemeData@4'
C:/dev/wx/lib/gcc_lib/libwxmsw31u_core.a(corelib_renderer.o):renderer.cpp:(.text.unlikely+0x67): undefined reference to `_imp__CloseThemeData@4'
C:/dev/wx/lib/gcc_lib/libwxmsw31u_core.a(corelib_renderer.o):renderer.cpp:(.text.unlikely+0x8b): undefined reference to `_imp__CloseThemeData@4'
C:/dev/wx/lib/gcc_lib/libwxmsw31u_core.a(corelib_renderer.o):renderer.cpp:(.text.unlikely+0xdd): undefined reference to `_imp__CloseThemeData@4'
C:/dev/wx/lib/gcc_lib/libwxmsw31u_core.a(corelib_renderer.o):renderer.cpp:(.text.unlikely+0x106): undefined reference to `_imp__CloseThemeData@4'
C:/dev/wx/lib/gcc_lib/libwxmsw31u_core.a(corelib_renderer.o):renderer.cpp:(.text.unlikely+0x144): more undefined references to `_imp__CloseThemeData@4' follow
C:/dev/wx/lib/gcc_lib/libwxmsw31u_core.a(corelib_uxtheme.o):uxtheme.cpp:(.text+0x5): undefined reference to `_imp__IsAppThemed@0'
C:/dev/wx/lib/gcc_lib/libwxmsw31u_core.a(corelib_uxtheme.o):uxtheme.cpp:(.text+0x17): undefined reference to `_imp__IsThemeActive@0'
C:/dev/wx/lib/gcc_lib/libwxmsw31u_core.a(corelib_msw_anybutton.o):anybutton.cpp:(.text+0x836): undefined reference to `_imp__OpenThemeData@8'
C:/dev/wx/lib/gcc_lib/libwxmsw31u_core.a(corelib_msw_anybutton.o):anybutton.cpp:(.text+0x88f): undefined reference to `_imp__GetThemeMargins@28'
C:/dev/wx/lib/gcc_lib/libwxmsw31u_core.a(corelib_msw_anybutton.o):anybutton.cpp:(.text+0x8d0): undefined reference to `_imp__CloseThemeData@4'
C:/dev/wx/lib/gcc_lib/libwxmsw31u_core.a(corelib_msw_anybutton.o):anybutton.cpp:(.text+0x38e9): undefined reference to `_imp__OpenThemeData@8'
C:/dev/wx/lib/gcc_lib/libwxmsw31u_core.a(corelib_msw_anybutton.o):anybutton.cpp:(.text+0x3921): undefined reference to `_imp__IsThemeBackgroundPartiallyTransparent@12'
C:/dev/wx/lib/gcc_lib/libwxmsw31u_core.a(corelib_msw_anybutton.o):anybutton.cpp:(.text+0x3963): undefined reference to `_imp__DrawThemeBackground@24'
C:/dev/wx/lib/gcc_lib/libwxmsw31u_core.a(corelib_msw_anybutton.o):anybutton.cpp:(.text+0x39ba): undefined reference to `_imp__GetThemeMargins@28'
C:/dev/wx/lib/gcc_lib/libwxmsw31u_core.a(corelib_msw_anybutton.o):anybutton.cpp:(.text+0x45a4): undefined reference to `_imp__CloseThemeData@4'
C:/dev/wx/lib/gcc_lib/libwxmsw31u_core.a(corelib_msw_anybutton.o):anybutton.cpp:(.text+0x48c6): undefined reference to `_imp__DrawThemeParentBackground@12'
C:/dev/wx/lib/gcc_lib/libwxmsw31u_core.a(corelib_msw_anybutton.o):anybutton.cpp:(.text.unlikely+0x1b): undefined reference to `_imp__CloseThemeData@4'
C:/dev/wx/lib/gcc_lib/libwxmsw31u_core.a(corelib_msw_anybutton.o):anybutton.cpp:(.text.unlikely+0x580): undefined reference to `_imp__CloseThemeData@4'
C:/dev/wx/lib/gcc_lib/libwxmsw31u_core.a(corelib_combo.o):combo.cpp:(.text+0xea7): undefined reference to `_imp__OpenThemeData@8'
C:/dev/wx/lib/gcc_lib/libwxmsw31u_core.a(corelib_combo.o):combo.cpp:(.text+0x10df): undefined reference to `_imp__CloseThemeData@4'
C:/dev/wx/lib/gcc_lib/libwxmsw31u_core.a(corelib_combo.o):combo.cpp:(.text+0x166f): undefined reference to `_imp__OpenThemeData@8'
C:/dev/wx/lib/gcc_lib/libwxmsw31u_core.a(corelib_combo.o):combo.cpp:(.text+0x17a2): undefined reference to `_imp__IsThemeBackgroundPartiallyTransparent@12'
C:/dev/wx/lib/gcc_lib/libwxmsw31u_core.a(corelib_combo.o):combo.cpp:(.text+0x17d6): undefined reference to `_imp__DrawThemeParentBackground@12'
C:/dev/wx/lib/gcc_lib/libwxmsw31u_core.a(corelib_combo.o):combo.cpp:(.text+0x1820): undefined reference to `_imp__DrawThemeBackground@24'
C:/dev/wx/lib/gcc_lib/libwxmsw31u_core.a(corelib_combo.o):combo.cpp:(.text+0x187c): undefined reference to `_imp__DrawThemeBackground@24'
C:/dev/wx/lib/gcc_lib/libwxmsw31u_core.a(corelib_combo.o):combo.cpp:(.text+0x195c): undefined reference to `_imp__CloseThemeData@4'
C:/dev/wx/lib/gcc_lib/libwxmsw31u_core.a(corelib_combo.o):combo.cpp:(.text.unlikely+0x278): undefined reference to `_imp__CloseThemeData@4'
C:/dev/wx/lib/gcc_lib/libwxmsw31u_core.a(corelib_combo.o):combo.cpp:(.text.unlikely+0x407): undefined reference to `_imp__CloseThemeData@4'
C:/dev/wx/lib/gcc_lib/libwxmsw31u_core.a(corelib_access.o):access.cpp:(.text+0x1e1): undefined reference to `CreateStdAccessibleObject@16'
C:/dev/wx/lib/gcc_lib/libwxmsw31u_core.a(corelib_systhemectrl.o):systhemectrl.cpp:(.text+0x53): undefined reference to `_imp__SetWindowTheme@12'
C:/dev/wx/lib/gcc_lib/libwxmsw31u_core.a(corelib_msw_notebook.o):notebook.cpp:(.text+0x173b): undefined reference to `_imp__OpenThemeData@8'
C:/dev/wx/lib/gcc_lib/libwxmsw31u_core.a(corelib_msw_notebook.o):notebook.cpp:(.text+0x1788): undefined reference to `_imp__GetThemeBackgroundContentRect@24'
C:/dev/wx/lib/gcc_lib/libwxmsw31u_core.a(corelib_msw_notebook.o):notebook.cpp:(.text+0x17e3): undefined reference to `_imp__GetThemeBackgroundExtent@24'
C:/dev/wx/lib/gcc_lib/libwxmsw31u_core.a(corelib_msw_notebook.o):notebook.cpp:(.text+0x1857): undefined reference to `_imp__DrawThemeBackground@24'
C:/dev/wx/lib/gcc_lib/libwxmsw31u_core.a(corelib_msw_notebook.o):notebook.cpp:(.text+0x18c7): undefined reference to `_imp__CloseThemeData@4'
C:/dev/wx/lib/gcc_lib/libwxmsw31u_core.a(corelib_msw_notebook.o):notebook.cpp:(.text+0x2041): undefined reference to `_imp__OpenThemeData@8'
C:/dev/wx/lib/gcc_lib/libwxmsw31u_core.a(corelib_msw_notebook.o):notebook.cpp:(.text+0x2065): undefined reference to `_imp__GetThemeColor@20'
C:/dev/wx/lib/gcc_lib/libwxmsw31u_core.a(corelib_msw_notebook.o):notebook.cpp:(.text+0x2172): undefined reference to `_imp__CloseThemeData@4'
C:/dev/wx/lib/gcc_lib/libwxmsw31u_core.a(corelib_msw_notebook.o):notebook.cpp:(.text+0x2225): undefined reference to `_imp__GetCurrentThemeName@24'
C:/dev/wx/lib/gcc_lib/libwxmsw31u_core.a(corelib_msw_notebook.o):notebook.cpp:(.text+0x40a5): undefined reference to `_imp__SetWindowTheme@12'
C:/dev/wx/lib/gcc_lib/libwxmsw31u_core.a(corelib_msw_notebook.o):notebook.cpp:(.text+0x6105): undefined reference to `_imp__OpenThemeData@8'
C:/dev/wx/lib/gcc_lib/libwxmsw31u_core.a(corelib_msw_notebook.o):notebook.cpp:(.text+0x6147): undefined reference to `_imp__GetThemeBackgroundExtent@24'
C:/dev/wx/lib/gcc_lib/libwxmsw31u_core.a(corelib_msw_notebook.o):notebook.cpp:(.text+0x6176): undefined reference to `_imp__DrawThemeBackground@24'
C:/dev/wx/lib/gcc_lib/libwxmsw31u_core.a(corelib_msw_notebook.o):notebook.cpp:(.text+0x6187): undefined reference to `_imp__CloseThemeData@4'
C:/dev/wx/lib/gcc_lib/libwxmsw31u_core.a(corelib_msw_notebook.o):notebook.cpp:(.text.unlikely+0x13e): undefined reference to `_imp__CloseThemeData@4'
C:/dev/wx/lib/gcc_lib/libwxmsw31u_core.a(corelib_msw_notebook.o):notebook.cpp:(.text.unlikely+0x18c): undefined reference to `_imp__CloseThemeData@4'
C:/dev/wx/lib/gcc_lib/libwxmsw31u_core.a(corelib_msw_notebook.o):notebook.cpp:(.text.unlikely+0x6c7): undefined reference to `_imp__CloseThemeData@4'
collect2.exe: error: ld returned 1 exit status
mingw32-make.exe[1]: *** [mini_wx.mk:83: Debug/mini_wx] Error 1
mingw32-make.exe: *** [Makefile:5: All] Error 2
mingw32-make.exe[1]: Leaving directory 'C:/dev/app/test/mini_wx'
====141 errors, 0 warnings====
And I don't know what I'm wrong.
Can you help me, please?
Last edited by marcelinux on Thu Jan 31, 2019 11:09 pm, edited 1 time in total.

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

Re: Link error in a fresh installation

Post by eranif » Mon Jan 21, 2019 5:19 pm

'OpenThemeXXX' methods are part of the UxTheme library.
I can't see it in the link line.
Try adding it manually from: project settings->linker->Libraries
and simply add there: UxTheme (if you have more libraries on this entry, separate them with semi colon)
Make sure you have read the HOW TO POST thread

marcelinux
CodeLite Enthusiast
Posts: 17
Joined: Mon Nov 02, 2015 3:26 pm
Genuine User: Yes
IDE Question: C++
Location: Spain
Contact:

Re: Link error in a fresh installation

Post by marcelinux » Wed Jan 30, 2019 1:56 am

OK. Thanks so much.
Sorry for late reply.
This is the original Linker settings

Code: Select all

$(shell wx-config --libs);-mwindows
Now is

Code: Select all

$(shell wx-config --libs);-lwininet;-loleacc;-luxtheme;-mwindows
and running well.
I don't know why -lwininet, -loleacc and -luxtheme are missing in wx-config --libs
thank you very much for your help and work.

Post Reply