shlwapi.lib + version.lib not found

Do you have a question about makefiles, a compiler or IDE you are using and need to know how to set it up for wxWidgets or why it doesn't compile but other IDE's do ? Post your questions here.
Post Reply
RobertHK
I live to help wx-kind
I live to help wx-kind
Posts: 158
Joined: Sat Dec 01, 2012 6:43 am

shlwapi.lib + version.lib not found

Post by RobertHK » Wed Apr 27, 2016 4:24 pm

Hello. I read that without shlwapi.lib + version.lib can not assemble wxWidgets 3.1.0. With Win 7 x64 it is true - for Win XP, I've compiled a monolithic libraries ok (r+d). This complication, however, is very annoying and stupid when those two libraries can not be found. A big step back - in terms of user comfort. Not everyone wants to use VS ... :^o

User avatar
doublemax
Moderator
Moderator
Posts: 13601
Joined: Fri Apr 21, 2006 8:03 pm
Location: $FCE2

Re: shlwapi.lib + version.lib not found

Post by doublemax » Wed Apr 27, 2016 5:04 pm

They also come with MinGW, but the naming scheme is different: libshlwapi.a and libversion.a
Use the source, Luke!

RobertHK
I live to help wx-kind
I live to help wx-kind
Posts: 158
Joined: Sat Dec 01, 2012 6:43 am

Re: shlwapi.lib + version.lib not found

Post by RobertHK » Wed Apr 27, 2016 5:19 pm

Hi DoubleMax, thank you for your response. I found these libraries, but it is not clear to me where I have to insert. I am currently finalizing a compilation of dynamic libraries. Subsequently I try a static library.

RobertHK
I live to help wx-kind
I live to help wx-kind
Posts: 158
Joined: Sat Dec 01, 2012 6:43 am

Re: shlwapi.lib + version.lib not found

Post by RobertHK » Wed Apr 27, 2016 5:26 pm

Hurrah. I put "libshlwapi.a" libversion.a + "to the folder wxwidgets-3.1.0 -> build -> MSW / ... exactly as they are = without renaming and other changes. Compiling with my parameters:
mingw32-make -f makefile.gcc USE_XRC=1 BUILD=release SHARED=0 MONOLITHIC=1 UNICODE=1 USE_OPENGL=1
is underway without problems. Thank you, Doublemax. :D =D>

CnnC
Earned a small fee
Earned a small fee
Posts: 20
Joined: Thu Mar 08, 2018 7:40 am

Re: shlwapi.lib + version.lib not found

Post by CnnC » Thu Mar 08, 2018 7:56 pm

Good afternoon!

I also encountered this problem.

I tried to copy the libraries "libshlwapi.а" and "libversion.а" to the directory "C: \ wxWidgets \ build \ msw" without renaming the file data.

The assembly of the library was performed with the following parameters:

"mingw32-make -f makefile.gcc clean"
"mingw32-make -f makefile.gcc USE_XRC = 1 BUILD = release SHARED = 0 MONOLITHIC = 0 UNICODE = 1"

The project was created in "CodeLite". When you create it, the following errors appear.

Code: Select all

C:\Windows\system32\cmd.exe /C C:/MinGW-64/bin/mingw32-make.exe -j8 SHELL=cmd.exe -e -f  Makefile
"----------Building project:[ Ex_win_parser_2 - Release ]----------"
mingw32-make.exe[1]: Entering directory 'C:/Users/xCnnm/Documents/MEGA/Workspace/Ex_win_parser_2'
C:/MinGW-64/bin/g++.exe -o ./Release/Ex_win_parser_2 @"Ex_win_parser_2.txt" -L.   -mwindows -s  -mthreads -LC:/wxWidgets/lib/gcc_lib -lwxmsw31u -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/lib/gcc_lib/libwxmsw31u.a(monolib_window.o):window.cpp:(.text+0xb091): undefined reference to `__imp_OpenThemeData'
C:/wxWidgets/lib/gcc_lib/libwxmsw31u.a(monolib_window.o):window.cpp:(.text+0xb0b5): undefined reference to `__imp_GetThemeColor'
C:/wxWidgets/lib/gcc_lib/libwxmsw31u.a(monolib_window.o):window.cpp:(.text+0xb116): undefined reference to `__imp_CloseThemeData'
C:/wxWidgets/lib/gcc_lib/libwxmsw31u.a(monolib_window.o):window.cpp:(.text+0xb16b): undefined reference to `__imp_CloseThemeData'
C:/wxWidgets/lib/gcc_lib/libwxmsw31u.a(monolib_window.o):window.cpp:(.text+0xb728): undefined reference to `__imp_CloseThemeData'
C:/wxWidgets/lib/gcc_lib/libwxmsw31u.a(monolib_window.o):window.cpp:(.text+0x103a9): undefined reference to `__imp_OpenThemeData'
C:/wxWidgets/lib/gcc_lib/libwxmsw31u.a(monolib_window.o):window.cpp:(.text+0x1040d): undefined reference to `__imp_GetThemeBackgroundContentRect'
C:/wxWidgets/lib/gcc_lib/libwxmsw31u.a(monolib_window.o):window.cpp:(.text+0x10470): undefined reference to `__imp_CloseThemeData'
C:/wxWidgets/lib/gcc_lib/libwxmsw31u.a(monolib_window.o):window.cpp:(.text+0x10baa): undefined reference to `__imp_OpenThemeData'
C:/wxWidgets/lib/gcc_lib/libwxmsw31u.a(monolib_window.o):window.cpp:(.text+0x10c2e): undefined reference to `__imp_GetThemeBackgroundContentRect'
C:/wxWidgets/lib/gcc_lib/libwxmsw31u.a(monolib_window.o):window.cpp:(.text+0x10c83): undefined reference to `__imp_IsThemeBackgroundPartiallyTransparent'
C:/wxWidgets/lib/gcc_lib/libwxmsw31u.a(monolib_window.o):window.cpp:(.text+0x10c9e): undefined reference to `__imp_DrawThemeParentBackground'
C:/wxWidgets/lib/gcc_lib/libwxmsw31u.a(monolib_window.o):window.cpp:(.text+0x10cd5): undefined reference to `__imp_DrawThemeBackground'
C:/wxWidgets/lib/gcc_lib/libwxmsw31u.a(monolib_window.o):window.cpp:(.text+0x10d02): undefined reference to `__imp_CloseThemeData'
C:/wxWidgets/lib/gcc_lib/libwxmsw31u.a(monolib_window.o):window.cpp:(.text+0x11707): undefined reference to `__imp_CloseThemeData'
C:/wxWidgets/lib/gcc_lib/libwxmsw31u.a(monolib_window.o):window.cpp:(.text+0x117ea): undefined reference to `__imp_CloseThemeData'
C:/wxWidgets/lib/gcc_lib/libwxmsw31u.a(monolib_msw_anybutton.o):anybutton.cpp:(.text+0x8c0): undefined reference to `__imp_OpenThemeData'
C:/wxWidgets/lib/gcc_lib/libwxmsw31u.a(monolib_msw_anybutton.o):anybutton.cpp:(.text+0x8f0): undefined reference to `__imp_GetThemeMargins'
C:/wxWidgets/lib/gcc_lib/libwxmsw31u.a(monolib_msw_anybutton.o):anybutton.cpp:(.text+0x930): undefined reference to `__imp_CloseThemeData'
C:/wxWidgets/lib/gcc_lib/libwxmsw31u.a(monolib_msw_anybutton.o):anybutton.cpp:(.text+0x946): undefined reference to `__imp_CloseThemeData'
C:/wxWidgets/lib/gcc_lib/libwxmsw31u.a(monolib_msw_anybutton.o):anybutton.cpp:(.text+0x3fd1): undefined reference to `__imp_OpenThemeData'
C:/wxWidgets/lib/gcc_lib/libwxmsw31u.a(monolib_msw_anybutton.o):anybutton.cpp:(.text+0x4006): undefined reference to `__imp_IsThemeBackgroundPartiallyTransparent'
C:/wxWidgets/lib/gcc_lib/libwxmsw31u.a(monolib_msw_anybutton.o):anybutton.cpp:(.text+0x4029): undefined reference to `__imp_DrawThemeParentBackground'
C:/wxWidgets/lib/gcc_lib/libwxmsw31u.a(monolib_msw_anybutton.o):anybutton.cpp:(.text+0x4058): undefined reference to `__imp_DrawThemeBackground'
C:/wxWidgets/lib/gcc_lib/libwxmsw31u.a(monolib_msw_anybutton.o):anybutton.cpp:(.text+0x4087): undefined reference to `__imp_GetThemeMargins'
C:/wxWidgets/lib/gcc_lib/libwxmsw31u.a(monolib_msw_anybutton.o):anybutton.cpp:(.text+0x40d5): undefined reference to `__imp_CloseThemeData'
C:/wxWidgets/lib/gcc_lib/libwxmsw31u.a(monolib_msw_anybutton.o):anybutton.cpp:(.text+0x663f): undefined reference to `__imp_CloseThemeData'
C:/wxWidgets/lib/gcc_lib/libwxmsw31u.a(monolib_menuitem.o):menuitem.cpp:(.text+0x51e): undefined reference to `__imp_OpenThemeData'
C:/wxWidgets/lib/gcc_lib/libwxmsw31u.a(monolib_menuitem.o):menuitem.cpp:(.text+0x539): undefined reference to `__imp_GetThemeSysColor'
C:/wxWidgets/lib/gcc_lib/libwxmsw31u.a(monolib_menuitem.o):menuitem.cpp:(.text+0x571): undefined reference to `__imp_GetThemeSysColor'
C:/wxWidgets/lib/gcc_lib/libwxmsw31u.a(monolib_menuitem.o):menuitem.cpp:(.text+0x5b3): undefined reference to `__imp_CloseThemeData'
C:/wxWidgets/lib/gcc_lib/libwxmsw31u.a(monolib_menuitem.o):menuitem.cpp:(.text+0x658): undefined reference to `__imp_GetThemeSysColor'
C:/wxWidgets/lib/gcc_lib/libwxmsw31u.a(monolib_menuitem.o):menuitem.cpp:(.text+0x6d5): undefined reference to `__imp_GetThemeSysColor'
C:/wxWidgets/lib/gcc_lib/libwxmsw31u.a(monolib_menuitem.o):menuitem.cpp:(.text+0x757): undefined reference to `__imp_CloseThemeData'
C:/wxWidgets/lib/gcc_lib/libwxmsw31u.a(monolib_menuitem.o):menuitem.cpp:(.text+0x1f47): undefined reference to `__imp_OpenThemeData'
C:/wxWidgets/lib/gcc_lib/libwxmsw31u.a(monolib_menuitem.o):menuitem.cpp:(.text+0x1f75): undefined reference to `__imp_GetThemeMargins'
C:/wxWidgets/lib/gcc_lib/libwxmsw31u.a(monolib_menuitem.o):menuitem.cpp:(.text+0x202f): undefined reference to `__imp_GetThemePartSize'
C:/wxWidgets/lib/gcc_lib/libwxmsw31u.a(monolib_menuitem.o):menuitem.cpp:(.text+0x20c4): undefined reference to `__imp_GetThemeInt'
C:/wxWidgets/lib/gcc_lib/libwxmsw31u.a(monolib_menuitem.o):menuitem.cpp:(.text+0x20e9): undefined reference to `__imp_GetThemeSysFont'
C:/wxWidgets/lib/gcc_lib/libwxmsw31u.a(monolib_menuitem.o):menuitem.cpp:(.text+0x2221): undefined reference to `__imp_CloseThemeData'
C:/wxWidgets/lib/gcc_lib/libwxmsw31u.a(monolib_menuitem.o):menuitem.cpp:(.text+0x2d8b): undefined reference to `__imp_CloseThemeData'
C:/wxWidgets/lib/gcc_lib/libwxmsw31u.a(monolib_menuitem.o):menuitem.cpp:(.text+0x3653): undefined reference to `__imp_OpenThemeData'
C:/wxWidgets/lib/gcc_lib/libwxmsw31u.a(monolib_menuitem.o):menuitem.cpp:(.text+0x36be): undefined reference to `__imp_DrawThemeBackground'
C:/wxWidgets/lib/gcc_lib/libwxmsw31u.a(monolib_menuitem.o):menuitem.cpp:(.text+0x3755): undefined reference to `__imp_CloseThemeData'
C:/wxWidgets/lib/gcc_lib/libwxmsw31u.a(monolib_menuitem.o):menuitem.cpp:(.text+0x3a76): undefined reference to `__imp_CloseThemeData'
C:/wxWidgets/lib/gcc_lib/libwxmsw31u.a(monolib_menuitem.o):menuitem.cpp:(.text+0x4618): undefined reference to `__imp_OpenThemeData'
C:/wxWidgets/lib/gcc_lib/libwxmsw31u.a(monolib_menuitem.o):menuitem.cpp:(.text+0x462c): undefined reference to `__imp_IsThemeBackgroundPartiallyTransparent'
C:/wxWidgets/lib/gcc_lib/libwxmsw31u.a(monolib_menuitem.o):menuitem.cpp:(.text+0x463b): undefined reference to `__imp_DrawThemeBackground'
C:/wxWidgets/lib/gcc_lib/libwxmsw31u.a(monolib_menuitem.o):menuitem.cpp:(.text+0x46aa): undefined reference to `__imp_CloseThemeData'
C:/wxWidgets/lib/gcc_lib/libwxmsw31u.a(monolib_menuitem.o):menuitem.cpp:(.text+0x4a1c): undefined reference to `__imp_DrawThemeBackground'
C:/wxWidgets/lib/gcc_lib/libwxmsw31u.a(monolib_menuitem.o):menuitem.cpp:(.text+0x4be7): undefined reference to `__imp_CloseThemeData'
C:/wxWidgets/lib/gcc_lib/libwxmsw31u.a(monolib_menuitem.o):menuitem.cpp:(.text+0x4f0e): undefined reference to `__imp_CloseThemeData'
C:/wxWidgets/lib/gcc_lib/libwxmsw31u.a(monolib_msw_statbox.o):statbox.cpp:(.text+0x2d60): undefined reference to `__imp_OpenThemeData'
C:/wxWidgets/lib/gcc_lib/libwxmsw31u.a(monolib_msw_statbox.o):statbox.cpp:(.text+0x2d91): undefined reference to `__imp_GetThemeFont'
C:/wxWidgets/lib/gcc_lib/libwxmsw31u.a(monolib_msw_statbox.o):statbox.cpp:(.text+0x2db7): undefined reference to `__imp_CloseThemeData'
C:/wxWidgets/lib/gcc_lib/libwxmsw31u.a(monolib_msw_statbox.o):statbox.cpp:(.text+0x2ed2): undefined reference to `__imp_CloseThemeData'
C:/wxWidgets/lib/gcc_lib/libwxmsw31u.a(monolib_statusbar.o):statusbar.cpp:(.text+0x1a10): undefined reference to `__imp_OpenThemeData'
C:/wxWidgets/lib/gcc_lib/libwxmsw31u.a(monolib_statusbar.o):statusbar.cpp:(.text+0x1a3e): undefined reference to `__imp_GetThemeBackgroundContentRect'
C:/wxWidgets/lib/gcc_lib/libwxmsw31u.a(monolib_statusbar.o):statusbar.cpp:(.text+0x1a75): undefined reference to `__imp_CloseThemeData'
C:/wxWidgets/lib/gcc_lib/libwxmsw31u.a(monolib_statusbar.o):statusbar.cpp:(.text+0x237d): undefined reference to `__imp_CloseThemeData'
C:/wxWidgets/lib/gcc_lib/libwxmsw31u.a(monolib_renderer.o):renderer.cpp:(.text+0x4bd): undefined reference to `__imp_OpenThemeData'
C:/wxWidgets/lib/gcc_lib/libwxmsw31u.a(monolib_renderer.o):renderer.cpp:(.text+0x4d6): undefined reference to `__imp_IsThemePartDefined'
C:/wxWidgets/lib/gcc_lib/libwxmsw31u.a(monolib_renderer.o):renderer.cpp:(.text+0x4f8): undefined reference to `__imp_CloseThemeData'
C:/wxWidgets/lib/gcc_lib/libwxmsw31u.a(monolib_renderer.o):renderer.cpp:(.text+0x53e): undefined reference to `__imp_GetThemePartSize'
C:/wxWidgets/lib/gcc_lib/libwxmsw31u.a(monolib_renderer.o):renderer.cpp:(.text+0x567): undefined reference to `__imp_CloseThemeData'
C:/wxWidgets/lib/gcc_lib/libwxmsw31u.a(monolib_renderer.o):renderer.cpp:(.text+0x60f): undefined reference to `__imp_OpenThemeData'
C:/wxWidgets/lib/gcc_lib/libwxmsw31u.a(monolib_renderer.o):renderer.cpp:(.text+0x6a1): undefined reference to `__imp_DrawThemeBackground'
C:/wxWidgets/lib/gcc_lib/libwxmsw31u.a(monolib_renderer.o):renderer.cpp:(.text+0x712): undefined reference to `__imp_GetThemeBackgroundContentRect'
C:/wxWidgets/lib/gcc_lib/libwxmsw31u.a(monolib_renderer.o):renderer.cpp:(.text+0x7c2): undefined reference to `__imp_CloseThemeData'
C:/wxWidgets/lib/gcc_lib/libwxmsw31u.a(monolib_renderer.o):renderer.cpp:(.text+0x8c9): undefined reference to `__imp_CloseThemeData'
C:/wxWidgets/lib/gcc_lib/libwxmsw31u.a(monolib_renderer.o):renderer.cpp:(.text+0x931): undefined reference to `__imp_OpenThemeData'
C:/wxWidgets/lib/gcc_lib/libwxmsw31u.a(monolib_renderer.o):renderer.cpp:(.text+0x945): undefined reference to `__imp_IsThemePartDefined'
C:/wxWidgets/lib/gcc_lib/libwxmsw31u.a(monolib_renderer.o):renderer.cpp:(.text+0x9a2): undefined reference to `__imp_GetThemePartSize'
C:/wxWidgets/lib/gcc_lib/libwxmsw31u.a(monolib_renderer.o):renderer.cpp:(.text+0x9ef): undefined reference to `__imp_CloseThemeData'
C:/wxWidgets/lib/gcc_lib/libwxmsw31u.a(monolib_renderer.o):renderer.cpp:(.text+0xa38): undefined reference to `__imp_CloseThemeData'
C:/wxWidgets/lib/gcc_lib/libwxmsw31u.a(monolib_renderer.o):renderer.cpp:(.text+0xa81): undefined reference to `__imp_OpenThemeData'
C:/wxWidgets/lib/gcc_lib/libwxmsw31u.a(monolib_renderer.o):renderer.cpp:(.text+0xabd): undefined reference to `__imp_IsThemePartDefined'
C:/wxWidgets/lib/gcc_lib/libwxmsw31u.a(monolib_renderer.o):renderer.cpp:(.text+0xb14): undefined reference to `__imp_IsThemeBackgroundPartiallyTransparent'
C:/wxWidgets/lib/gcc_lib/libwxmsw31u.a(monolib_renderer.o):renderer.cpp:(.text+0xb51): undefined reference to `__imp_DrawThemeParentBackground'
C:/wxWidgets/lib/gcc_lib/libwxmsw31u.a(monolib_renderer.o):renderer.cpp:(.text+0xbae): undefined reference to `__imp_DrawThemeBackground'
C:/wxWidgets/lib/gcc_lib/libwxmsw31u.a(monolib_renderer.o):renderer.cpp:(.text+0xbf6): undefined reference to `__imp_CloseThemeData'
C:/wxWidgets/lib/gcc_lib/libwxmsw31u.a(monolib_renderer.o):renderer.cpp:(.text+0xc91): undefined reference to `__imp_CloseThemeData'
C:/wxWidgets/lib/gcc_lib/libwxmsw31u.a(monolib_renderer.o):renderer.cpp:(.text+0xcf6): undefined reference to `__imp_OpenThemeData'
C:/wxWidgets/lib/gcc_lib/libwxmsw31u.a(monolib_renderer.o):renderer.cpp:(.text+0xd26): undefined reference to `__imp_IsThemePartDefined'
C:/wxWidgets/lib/gcc_lib/libwxmsw31u.a(monolib_renderer.o):renderer.cpp:(.text+0xdb7): undefined reference to `__imp_DrawThemeBackground'
C:/wxWidgets/lib/gcc_lib/libwxmsw31u.a(monolib_renderer.o):renderer.cpp:(.text+0xe01): undefined reference to `__imp_CloseThemeData'
C:/wxWidgets/lib/gcc_lib/libwxmsw31u.a(monolib_renderer.o):renderer.cpp:(.text+0xe3b): undefined reference to `__imp_CloseThemeData'
C:/wxWidgets/lib/gcc_lib/libwxmsw31u.a(monolib_renderer.o):renderer.cpp:(.text+0xfd6): undefined reference to `__imp_OpenThemeData'
C:/wxWidgets/lib/gcc_lib/libwxmsw31u.a(monolib_renderer.o):renderer.cpp:(.text+0x1095): undefined reference to `__imp_DrawThemeBackground'
C:/wxWidgets/lib/gcc_lib/libwxmsw31u.a(monolib_renderer.o):renderer.cpp:(.text+0x10ba): undefined reference to `__imp_CloseThemeData'
C:/wxWidgets/lib/gcc_lib/libwxmsw31u.a(monolib_renderer.o):renderer.cpp:(.text+0x111d): undefined reference to `__imp_CloseThemeData'
C:/wxWidgets/lib/gcc_lib/libwxmsw31u.a(monolib_renderer.o):renderer.cpp:(.text+0x11b6): undefined reference to `__imp_CloseThemeData'
C:/wxWidgets/lib/gcc_lib/libwxmsw31u.a(monolib_renderer.o):renderer.cpp:(.text+0x11f6): undefined reference to `__imp_OpenThemeData'
C:/wxWidgets/lib/gcc_lib/libwxmsw31u.a(monolib_renderer.o):renderer.cpp:(.text+0x12a4): undefined reference to `__imp_DrawThemeBackground'
C:/wxWidgets/lib/gcc_lib/libwxmsw31u.a(monolib_renderer.o):renderer.cpp:(.text+0x12c9): undefined reference to `__imp_CloseThemeData'
C:/wxWidgets/lib/gcc_lib/libwxmsw31u.a(monolib_renderer.o):renderer.cpp:(.text+0x132d): undefined reference to `__imp_CloseThemeData'
C:/wxWidgets/lib/gcc_lib/libwxmsw31u.a(monolib_renderer.o):renderer.cpp:(.text+0x1395): undefined reference to `__imp_CloseThemeData'
C:/wxWidgets/lib/gcc_lib/libwxmsw31u.a(monolib_renderer.o):renderer.cpp:(.text+0x14bf): undefined reference to `__imp_OpenThemeData'
C:/wxWidgets/lib/gcc_lib/libwxmsw31u.a(monolib_renderer.o):renderer.cpp:(.text+0x151e): undefined reference to `__imp_GetThemeColor'
C:/wxWidgets/lib/gcc_lib/libwxmsw31u.a(monolib_renderer.o):renderer.cpp:(.text+0x17d2): undefined reference to `__imp_CloseThemeData'
C:/wxWidgets/lib/gcc_lib/libwxmsw31u.a(monolib_renderer.o):renderer.cpp:(.text+0x1848): undefined reference to `__imp_CloseThemeData'
C:/wxWidgets/lib/gcc_lib/libwxmsw31u.a(monolib_renderer.o):renderer.cpp:(.text+0x1963): undefined reference to `__imp_OpenThemeData'
C:/wxWidgets/lib/gcc_lib/libwxmsw31u.a(monolib_renderer.o):renderer.cpp:(.text+0x1a1b): undefined reference to `__imp_DrawThemeBackground'
C:/wxWidgets/lib/gcc_lib/libwxmsw31u.a(monolib_renderer.o):renderer.cpp:(.text+0x1bb6): undefined reference to `__imp_CloseThemeData'
C:/wxWidgets/lib/gcc_lib/libwxmsw31u.a(monolib_renderer.o):renderer.cpp:(.text+0x1ca5): undefined reference to `__imp_CloseThemeData'
C:/wxWidgets/lib/gcc_lib/libwxmsw31u.a(monolib_renderer.o):renderer.cpp:(.text+0x24d1): undefined reference to `__imp_DrawThemeBackground'
C:/wxWidgets/lib/gcc_lib/libwxmsw31u.a(monolib_renderer.o):renderer.cpp:(.text+0x2630): undefined reference to `__imp_OpenThemeData'
C:/wxWidgets/lib/gcc_lib/libwxmsw31u.a(monolib_renderer.o):renderer.cpp:(.text+0x266a): undefined reference to `__imp_CloseThemeData'
C:/wxWidgets/lib/gcc_lib/libwxmsw31u.a(monolib_renderer.o):renderer.cpp:(.text+0x2693): undefined reference to `__imp_CloseThemeData'
C:/wxWidgets/lib/gcc_lib/libwxmsw31u.a(monolib_renderer.o):renderer.cpp:(.text+0x26d9): undefined reference to `__imp_OpenThemeData'
C:/wxWidgets/lib/gcc_lib/libwxmsw31u.a(monolib_renderer.o):renderer.cpp:(.text+0x273d): undefined reference to `__imp_CloseThemeData'
C:/wxWidgets/lib/gcc_lib/libwxmsw31u.a(monolib_renderer.o):renderer.cpp:(.text+0x27b7): undefined reference to `__imp_CloseThemeData'
C:/wxWidgets/lib/gcc_lib/libwxmsw31u.a(monolib_renderer.o):renderer.cpp:(.text+0x2823): undefined reference to `__imp_CloseThemeData'
C:/wxWidgets/lib/gcc_lib/libwxmsw31u.a(monolib_renderer.o):renderer.cpp:(.text+0x2b27): undefined reference to `__imp_OpenThemeData'
C:/wxWidgets/lib/gcc_lib/libwxmsw31u.a(monolib_renderer.o):renderer.cpp:(.text+0x2b81): undefined reference to `__imp_IsThemePartDefined'
C:/wxWidgets/lib/gcc_lib/libwxmsw31u.a(monolib_renderer.o):renderer.cpp:(.text+0x2be1): undefined reference to `__imp_CloseThemeData'
C:/wxWidgets/lib/gcc_lib/libwxmsw31u.a(monolib_renderer.o):renderer.cpp:(.text+0x33c8): undefined reference to `__imp_CloseThemeData'
C:/wxWidgets/lib/gcc_lib/libwxmsw31u.a(monolib_uxtheme.o):uxtheme.cpp:(.text+0x6): undefined reference to `__imp_IsAppThemed'
C:/wxWidgets/lib/gcc_lib/libwxmsw31u.a(monolib_uxtheme.o):uxtheme.cpp:(.text+0x12): undefined reference to `__imp_IsThemeActive'
C:/wxWidgets/lib/gcc_lib/libwxmsw31u.a(monolib_combo.o):combo.cpp:(.text+0xf3f): undefined reference to `__imp_OpenThemeData'
C:/wxWidgets/lib/gcc_lib/libwxmsw31u.a(monolib_combo.o):combo.cpp:(.text+0x1249): undefined reference to `__imp_CloseThemeData'
C:/wxWidgets/lib/gcc_lib/libwxmsw31u.a(monolib_combo.o):combo.cpp:(.text+0x1849): undefined reference to `__imp_CloseThemeData'
C:/wxWidgets/lib/gcc_lib/libwxmsw31u.a(monolib_combo.o):combo.cpp:(.text+0x1aa9): undefined reference to `__imp_OpenThemeData'
C:/wxWidgets/lib/gcc_lib/libwxmsw31u.a(monolib_combo.o):combo.cpp:(.text+0x1c01): undefined reference to `__imp_IsThemeBackgroundPartiallyTransparent'
C:/wxWidgets/lib/gcc_lib/libwxmsw31u.a(monolib_combo.o):combo.cpp:(.text+0x1c31): undefined reference to `__imp_DrawThemeParentBackground'
C:/wxWidgets/lib/gcc_lib/libwxmsw31u.a(monolib_combo.o):combo.cpp:(.text+0x1c6d): undefined reference to `__imp_DrawThemeBackground'
C:/wxWidgets/lib/gcc_lib/libwxmsw31u.a(monolib_combo.o):combo.cpp:(.text+0x1cbd): undefined reference to `__imp_DrawThemeBackground'
C:/wxWidgets/lib/gcc_lib/libwxmsw31u.a(monolib_combo.o):combo.cpp:(.text+0x1d85): undefined reference to `__imp_CloseThemeData'
C:/wxWidgets/lib/gcc_lib/libwxmsw31u.a(monolib_combo.o):combo.cpp:(.text+0x22c9): undefined reference to `__imp_CloseThemeData'
C:/wxWidgets/lib/gcc_lib/libwxmsw31u.a(monolib_msw_notebook.o):notebook.cpp:(.text+0x1861): undefined reference to `__imp_OpenThemeData'
C:/wxWidgets/lib/gcc_lib/libwxmsw31u.a(monolib_msw_notebook.o):notebook.cpp:(.text+0x18c1): undefined reference to `__imp_GetThemeBackgroundExtent'
C:/wxWidgets/lib/gcc_lib/libwxmsw31u.a(monolib_msw_notebook.o):notebook.cpp:(.text+0x1918): undefined reference to `__imp_DrawThemeBackground'
C:/wxWidgets/lib/gcc_lib/libwxmsw31u.a(monolib_msw_notebook.o):notebook.cpp:(.text+0x1968): undefined reference to `__imp_CloseThemeData'
C:/wxWidgets/lib/gcc_lib/libwxmsw31u.a(monolib_msw_notebook.o):notebook.cpp:(.text+0x19cd): undefined reference to `__imp_CloseThemeData'
C:/wxWidgets/lib/gcc_lib/libwxmsw31u.a(monolib_msw_notebook.o):notebook.cpp:(.text+0x2046): undefined reference to `__imp_OpenThemeData'
C:/wxWidgets/lib/gcc_lib/libwxmsw31u.a(monolib_msw_notebook.o):notebook.cpp:(.text+0x206a): undefined reference to `__imp_GetThemeColor'
C:/wxWidgets/lib/gcc_lib/libwxmsw31u.a(monolib_msw_notebook.o):notebook.cpp:(.text+0x2168): undefined reference to `__imp_CloseThemeData'
C:/wxWidgets/lib/gcc_lib/libwxmsw31u.a(monolib_msw_notebook.o):notebook.cpp:(.text+0x21f8): undefined reference to `__imp_GetCurrentThemeName'
C:/wxWidgets/lib/gcc_lib/libwxmsw31u.a(monolib_msw_notebook.o):notebook.cpp:(.text+0x2484): undefined reference to `__imp_CloseThemeData'
C:/wxWidgets/lib/gcc_lib/libwxmsw31u.a(monolib_msw_notebook.o):notebook.cpp:(.text+0x30a5): undefined reference to `__imp_SetWindowTheme'
C:/wxWidgets/lib/gcc_lib/libwxmsw31u.a(monolib_msw_notebook.o):notebook.cpp:(.text+0x6760): undefined reference to `__imp_OpenThemeData'
C:/wxWidgets/lib/gcc_lib/libwxmsw31u.a(monolib_msw_notebook.o):notebook.cpp:(.text+0x67a0): undefined reference to `__imp_GetThemeBackgroundExtent'
C:/wxWidgets/lib/gcc_lib/libwxmsw31u.a(monolib_msw_notebook.o):notebook.cpp:(.text+0x67c3): undefined reference to `__imp_DrawThemeBackground'
C:/wxWidgets/lib/gcc_lib/libwxmsw31u.a(monolib_msw_notebook.o):notebook.cpp:(.text+0x67d1): undefined reference to `__imp_CloseThemeData'
C:/wxWidgets/lib/gcc_lib/libwxmsw31u.a(monolib_msw_notebook.o):notebook.cpp:(.text+0x67eb): undefined reference to `__imp_CloseThemeData'
C:/wxWidgets/lib/gcc_lib/libwxmsw31u.a(monolib_access.o):access.cpp:(.text+0x1e9): undefined reference to `CreateStdAccessibleObject'
C:/wxWidgets/lib/gcc_lib/libwxmsw31u.a(monolib_systhemectrl.o):systhemectrl.cpp:(.text+0x4f): undefined reference to `__imp_SetWindowTheme'
collect2.exe: error: ld returned 1 exit status
mingw32-make.exe[1]: *** [Ex_win_parser_2.mk:81: Release/Ex_win_parser_2] Error 1
mingw32-make.exe: *** [Makefile:5: All] Error 2
mingw32-make.exe[1]: Leaving directory 'C:/Users/xCnnm/Documents/MEGA/Workspace/Ex_win_parser_2'
====147 errors, 0 warnings====
Prior to that, I used wsWidgets 3.0.4. Everything was OK.

What should I do with "libshlwapi.a" and "libversion.a" to make it work? Can make changes to "makefile.cpp", or add some linkers when building a library?
Last edited by DavidHart on Thu Mar 08, 2018 10:50 pm, edited 1 time in total.
Reason: Added code-tags

ONEEYEMAN
Part Of The Furniture
Part Of The Furniture
Posts: 3276
Joined: Sat Apr 16, 2005 7:22 am
Location: USA, Ukraine

Re: shlwapi.lib + version.lib not found

Post by ONEEYEMAN » Thu Mar 08, 2018 9:13 pm

Hi,
You need to add those libraries to the link command.

Code: Select all

C:/MinGW-64/bin/g++.exe -o ./Release/Ex_win_parser_2 @"Ex_win_parser_2.txt" -L. -mwindows -s -mthreads -LC:/wxWidgets/lib/gcc_lib -lwxmsw31u -lwxscintilla -lwxtiff -lwxjpeg -lwxpng -lwxzlib -lwxregexu -lwxexpat -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwxregexu -lwinspool -lwinmm -lshell32 -lcomctl32 -lversion -lshlwapi -lole32 -loleaut32 -luuid -lrpcrt4 -ladvapi32 -lwsock32 -lshlwapi -lversion
I just not sure they should be at the end of this command.

Thank you.

CnnC
Earned a small fee
Earned a small fee
Posts: 20
Joined: Thu Mar 08, 2018 7:40 am

Re: shlwapi.lib + version.lib not found

Post by CnnC » Fri Mar 09, 2018 8:38 am

Hi! Thanks for the answer!
These references are already had in the text of link command:

C:/MinGW-64/bin/g++.exe -o ./Release/Ex_win_parser_2 @"Ex_win_parser_2.txt" -L. -mwindows -s -mthreads -LC:/wxWidgets/lib/gcc_lib -lwxmsw31u -lwxscintilla -lwxtiff -lwxjpeg -lwxpng -lwxzlib -lwxregexu -lwxexpat -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwxregexu -lwinspool -lwinmm -lshell32 -lcomctl32 -lversion -lshlwapi -lole32 -loleaut32 -luuid -lrpcrt4 -ladvapi32 -lwsock32 -lshlwapi -lversion

Do you think, they should be moved to the beginning of link command?

CnnC
Earned a small fee
Earned a small fee
Posts: 20
Joined: Thu Mar 08, 2018 7:40 am

Re: shlwapi.lib + version.lib not found

Post by CnnC » Fri Mar 09, 2018 8:56 am

In the error text, there is a link to the library libwxmsw31u.a, which is contained in the C:/wxWidgets/lib/gcc_lib/directory.

shlwapi.lib and version.lib are in the C:/MinGW-64/x86_64-w64-mingw32/lib directory, which is added to the global PATH variable.

I tried to copy these libraries to the C :/wxWidgets/lib/gcc_lib/

I just do not understand what's wrong.

PB
Part Of The Furniture
Part Of The Furniture
Posts: 1950
Joined: Sun Jan 03, 2010 5:45 pm

Re: shlwapi.lib + version.lib not found

Post by PB » Fri Mar 09, 2018 3:29 pm

CnnC wrote:shlwapi.lib and version.lib are in the C:/MinGW-64/x86_64-w64-mingw32/lib directory, which is added to the global PATH variable
A linker generally does not look for the libraries to link with in the PATH folders. You need to tell it where the libraries are.

This is usually done in your IDE which then passes the folder to the linker in the -L parameter, see one of the posts above

User avatar
xaviou
Super wx Problem Solver
Super wx Problem Solver
Posts: 428
Joined: Mon Aug 21, 2006 3:18 pm
Location: Annecy - France
Contact:

Re: shlwapi.lib + version.lib not found

Post by xaviou » Sat Mar 10, 2018 9:18 am

Hi

Regarding your first post, the errors you have doesn't come from a "shlwapi" or "version" libs files, but from the "uxtheme" one.

So just adding "-luxtheme" to the link command should resolve your problem.

Regards
Xav'
My wxWidgets stuff web page : [email protected]'s wxStuff

CnnC
Earned a small fee
Earned a small fee
Posts: 20
Joined: Thu Mar 08, 2018 7:40 am

Re: shlwapi.lib + version.lib not found

Post by CnnC » Sat Mar 10, 2018 8:55 pm

Hi

Regarding your first post, the errors you have doesn't come from a "shlwapi" or "version" libs files, but from the "uxtheme" one.

So just adding "-luxtheme" to the link command should resolve your problem.
Well, I have so made. I have inserted the reference to libuxtheme.a. The previous warnings of mistakes have left. Also I have moved in the beginning of the reference - lshlwapi - lversion.

Now there was the following a message about undefined reference:

Code: Select all

g++.exe -LC:\wxWidgets-3.1.1\lib\gcc_lib -LC:\TDM-GCC-64\x86_64-w64-mingw32\lib -o bin\Debug\17.exe obj\Debug\main.o  -mthreads  -lshlwapi -lversion -lwxmsw31u_core -lwxbase31u -lwxpng -lwxzlib -lshlwapi -lversion -luxtheme -lkernel32 -luser32 -lgdi32 -lwinspool -lcomdlg32 -ladvapi32 -lshell32 -lole32 -loleaut32 -luuid -lcomctl32 -lwsock32 -lodbc32 C:\TDM-GCC-64\x86_64-w64-mingw32\lib\libshlwapi.a C:\TDM-GCC-64\x86_64-w64-mingw32\lib\libversion.a -mwindows
C:\wxWidgets-3.1.1\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
Process terminated with status 1 (0 minute(s), 2 second(s))
2 error(s), 0 warning(s) (0 minute(s), 2 second(s))
Thanks for your help.

User avatar
xaviou
Super wx Problem Solver
Super wx Problem Solver
Posts: 428
Joined: Mon Aug 21, 2006 3:18 pm
Location: Annecy - France
Contact:

Re: shlwapi.lib + version.lib not found

Post by xaviou » Sat Mar 10, 2018 9:13 pm

This time, the missing lib is "oleacc" (liboleacc.a).

When you have undefined references concerning Windows APi functions, just make a google search on it and you'll get a MSDn result.
In this case (https://msdn.microsoft.com/en-us/librar ... 18027.aspx), just go to the end of the page, and you'll see that the corresponding library file (for Ms VC) is "Oleacc.lib". You then just have to convert this to a "mingw lib name" witch is liboleacc.a

Regards
Xav'
My wxWidgets stuff web page : [email protected]'s wxStuff

CnnC
Earned a small fee
Earned a small fee
Posts: 20
Joined: Thu Mar 08, 2018 7:40 am

Re: shlwapi.lib + version.lib not found

Post by CnnC » Sun Mar 11, 2018 7:55 am

Perfectly, the program without mistakes was compiled and started.

Thank you very much.

Only I won't understand why when using wxWidgets 3.0.4 everything worked by default, when using wxWidgets 3.1.1 it is necessary to set references in addition. Probably matter in the software. I used CodeLite and CodeBlocks.

User avatar
xaviou
Super wx Problem Solver
Super wx Problem Solver
Posts: 428
Joined: Mon Aug 21, 2006 3:18 pm
Location: Annecy - France
Contact:

Re: shlwapi.lib + version.lib not found

Post by xaviou » Sun Mar 11, 2018 9:34 am

CnnC wrote:Only I won't understand why when using wxWidgets 3.0.4 everything worked by default, when using wxWidgets 3.1.1 it is necessary to set references in addition. Probably matter in the software. I used CodeLite and CodeBlocks.
wxWidgets 3.1.1 has more features than 3.0.4 witch justify the need of these additionnal libs.

Regards
Xav'
My wxWidgets stuff web page : [email protected]'s wxStuff

Post Reply