Compiler errors with first use of wxCrafter

CodeLite installation/troubleshooting forum
root
CodeLite Enthusiast
Posts: 21
Joined: Tue Jan 21, 2020 4:10 pm
Genuine User: Yes
IDE Question: C++
Contact:

Compiler errors with first use of wxCrafter

Post by root »

I compiled wxWidgets with MinGW-8.1.0. That's the same compiler I have setup for CodeLite and wxCrafter. So I created a GUI app, switched over to the wxCrafter designer and dropped a few buttons on the form. When I ran it, I got this:

Code: Select all

C:\Windows\system32\cmd.exe /C ""C:/Program Files/mingw-w64-8.1.0/mingw64/bin/mingw32-make.exe" -j8 SHELL=cmd.exe -e -f  Makefile"
"----------Building project:[ wxTest - Debug ]----------"
mingw32-make.exe[1]: Entering directory 'H:/CodeLite/C++/GUI-Stuff/wxTest'
"C:/Program Files/mingw-w64-8.1.0/mingw64/bin/windres.exe" -i "H:/CodeLite/C++/GUI-Stuff/wxTest/win_resources.rc" --use-temp-file --define __WXMSW__ --define _UNICODE --include-dir C:/wxWidgets-3.1.3-8.1.0/lib/gcc_lib/mswu --include-dir C:/wxWidgets-3.1.3-8.1.0/include    -o ../build-Debug/wxTest/win_resources.rc.o
C:/Program Files/mingw-w64-8.1.0/mingw64/bin/windres.exe: CreateProcess (null): No such file or directory
mingw32-make.exe[1]: *** [wxTest.mk:99: ../build-Debug/wxTest/win_resources.rc.o] Error 1
mingw32-make.exe: *** [Makefile:5: All] Error 2
mingw32-make.exe[1]: Leaving directory 'H:/CodeLite/C++/GUI-Stuff/wxTest'
====0 errors, 0 warnings====
The file the compiler says isn't there is there.

Image

Here are my environment variable settings.

Image

I hope someone can tell me what I did wrong.
Win X Pro / CodeLite 14.0 / wxCrafter 2.9 / wxWidgets-3.1.4 / MinGW-10.2.0

Linux Mint 20.0 / CodeLite 14.0 / wxCrafter 2.9 / wxWidgets-3.0 & 3.1.4 / GCC-9.2.0
User avatar
eranif
CodeLite Plugin
Posts: 6375
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Compiler errors with first use of wxCrafter

Post by eranif »

Can you try and run the failed command from a CMD terminal?

Code: Select all

"C:/Program Files/mingw-w64-8.1.0/mingw64/bin/windres.exe" -i "H:/CodeLite/C++/GUI-Stuff/wxTest/win_resources.rc" --use-temp-file --define __WXMSW__ --define _UNICODE --include-dir C:/wxWidgets-3.1.3-8.1.0/lib/gcc_lib/mswu --include-dir C:/wxWidgets-3.1.3-8.1.0/include    -o ../build-Debug/wxTest/win_resources.rc.o
The problem is not with windres, its with the paths provided
Make sure you have read the HOW TO POST thread
root
CodeLite Enthusiast
Posts: 21
Joined: Tue Jan 21, 2020 4:10 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Compiler errors with first use of wxCrafter

Post by root »

Hey eranif.

I did as you asked and it failed in the terminal too:

Code: Select all

H:\CodeLite\C++\GUI-Stuff\wxTest>"C:/Program Files/mingw-w64-8.1.0/mingw64/bin/windres.exe" -i "H:/CodeLite/C++/GUI-Stuff/wxTest/win_resources.rc" --use-temp-file --define __WXMSW__ --define _UNICODE --include-dir C:/wxWidgets-3.1.3-8.1.0/lib/gcc_lib/mswu --include-dir C:/wxWidgets-3.1.3-8.1.0/include    -o ../build-Debug/wxTest/win_resources.rc.o
C:/Program Files/mingw-w64-8.1.0/mingw64/bin/windres.exe: CreateProcess (null): No such file or directory
But the file is there.

Image

Are there other Environment Variables I need to declare besides the ones shown in my original post here?
Win X Pro / CodeLite 14.0 / wxCrafter 2.9 / wxWidgets-3.1.4 / MinGW-10.2.0

Linux Mint 20.0 / CodeLite 14.0 / wxCrafter 2.9 / wxWidgets-3.0 & 3.1.4 / GCC-9.2.0
User avatar
eranif
CodeLite Plugin
Posts: 6375
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Compiler errors with first use of wxCrafter

Post by eranif »

IIRC, windres.exe has issues with spaces (like: C:\Program Files)
Have you tried moving MinGW folder to another location?

Like: C:\MinGW ?
Make sure you have read the HOW TO POST thread
root
CodeLite Enthusiast
Posts: 21
Joined: Tue Jan 21, 2020 4:10 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Compiler errors with first use of wxCrafter

Post by root »

I moved MinGW from C:\Program Files to C:\.

Then I deleted wxWidgets and built them with the compiler i just moved.

Next, I changed my settings in CodeLite, running Setup Wizard again to find the new location of the compiler (MinGW-w64-8.1.0).

Then I created a completely new wxWidgets app and ran it. Then I cried like a baby!

Code: Select all

C:\Windows\system32\cmd.exe /C C:/mingw-w64-8.1.0/mingw64/bin/mingw32-make.exe -j8 SHELL=cmd.exe -e -f  Makefile
"----------Building project:[ wxTest - Debug ]----------"
mingw32-make.exe[1]: Entering directory 'H:/CodeLite/C++/GUI-Stuff/wxTest'
C:/mingw-w64-8.1.0/mingw64/bin/g++.exe  -c  "H:/CodeLite/C++/GUI-Stuff/wxTest/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      -o ../build-Debug/wxTest/main.cpp.o -I. -I.
C:/mingw-w64-8.1.0/mingw64/bin/g++.exe  -c  "H:/CodeLite/C++/GUI-Stuff/wxTest/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      -o ../build-Debug/wxTest/wxcrafter.cpp.o -I. -I.
C:/mingw-w64-8.1.0/mingw64/bin/g++.exe  -c  "H:/CodeLite/C++/GUI-Stuff/wxTest/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      -o ../build-Debug/wxTest/MainFrame.cpp.o -I. -I.
C:/mingw-w64-8.1.0/mingw64/bin/g++.exe  -c  "H:/CodeLite/C++/GUI-Stuff/wxTest/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      -o ../build-Debug/wxTest/wxcrafter_bitmaps.cpp.o -I. -I.
C:/mingw-w64-8.1.0/mingw64/bin/g++.exe -o ..\build-Debug\bin\wxTest @../build-Debug/wxTest/ObjectsList.txt -L.    -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  -mwindows
C:/wxWidgets-3.1.3/lib/gcc_lib/libwxmsw31u_core.a(corelib_window.o):window.cpp:(.text+0xc688): undefined reference to `__imp_OpenThemeData'
C:/wxWidgets-3.1.3/lib/gcc_lib/libwxmsw31u_core.a(corelib_window.o):window.cpp:(.text+0xc6ab): undefined reference to `__imp_GetThemeColor'
C:/wxWidgets-3.1.3/lib/gcc_lib/libwxmsw31u_core.a(corelib_window.o):window.cpp:(.text+0xc710): undefined reference to `__imp_CloseThemeData'
C:/wxWidgets-3.1.3/lib/gcc_lib/libwxmsw31u_core.a(corelib_window.o):window.cpp:(.text+0xc7ca): undefined reference to `__imp_CloseThemeData'
C:/wxWidgets-3.1.3/lib/gcc_lib/libwxmsw31u_core.a(corelib_window.o):window.cpp:(.text+0xcbb2): undefined reference to `__imp_CloseThemeData'
C:/wxWidgets-3.1.3/lib/gcc_lib/libwxmsw31u_core.a(corelib_window.o):window.cpp:(.text+0xf304): undefined reference to `__imp_OpenThemeData'
C:/wxWidgets-3.1.3/lib/gcc_lib/libwxmsw31u_core.a(corelib_window.o):window.cpp:(.text+0xf39a): undefined reference to `__imp_GetThemeBackgroundContentRect'
C:/wxWidgets-3.1.3/lib/gcc_lib/libwxmsw31u_core.a(corelib_window.o):window.cpp:(.text+0xf401): undefined reference to `__imp_IsThemeBackgroundPartiallyTransparent'
C:/wxWidgets-3.1.3/lib/gcc_lib/libwxmsw31u_core.a(corelib_window.o):window.cpp:(.text+0xf41c): undefined reference to `__imp_DrawThemeParentBackground'
C:/wxWidgets-3.1.3/lib/gcc_lib/libwxmsw31u_core.a(corelib_window.o):window.cpp:(.text+0xf443): undefined reference to `__imp_DrawThemeBackground'
C:/wxWidgets-3.1.3/lib/gcc_lib/libwxmsw31u_core.a(corelib_window.o):window.cpp:(.text+0xf470): undefined reference to `__imp_CloseThemeData'
C:/wxWidgets-3.1.3/lib/gcc_lib/libwxmsw31u_core.a(corelib_window.o):window.cpp:(.text+0xfb2c): undefined reference to `__imp_OpenThemeData'
C:/wxWidgets-3.1.3/lib/gcc_lib/libwxmsw31u_core.a(corelib_window.o):window.cpp:(.text+0xfb85): undefined reference to `__imp_GetThemeBackgroundContentRect'
C:/wxWidgets-3.1.3/lib/gcc_lib/libwxmsw31u_core.a(corelib_window.o):window.cpp:(.text+0xfbf7): undefined reference to `__imp_CloseThemeData'
C:/wxWidgets-3.1.3/lib/gcc_lib/libwxmsw31u_core.a(corelib_window.o):window.cpp:(.text+0x10be8): undefined reference to `__imp_CloseThemeData'
C:/wxWidgets-3.1.3/lib/gcc_lib/libwxmsw31u_core.a(corelib_window.o):window.cpp:(.text+0x10c22): undefined reference to `__imp_CloseThemeData'
C:/wxWidgets-3.1.3/lib/gcc_lib/libwxmsw31u_core.a(corelib_menuitem.o):menuitem.cpp:(.text+0x538): undefined reference to `__imp_OpenThemeData'
C:/wxWidgets-3.1.3/lib/gcc_lib/libwxmsw31u_core.a(corelib_menuitem.o):menuitem.cpp:(.text+0x5ca): undefined reference to `__imp_GetThemeSysColor'
C:/wxWidgets-3.1.3/lib/gcc_lib/libwxmsw31u_core.a(corelib_menuitem.o):menuitem.cpp:(.text+0x60c): undefined reference to `__imp_CloseThemeData'
C:/wxWidgets-3.1.3/lib/gcc_lib/libwxmsw31u_core.a(corelib_menuitem.o):menuitem.cpp:(.text+0x61a): undefined reference to `__imp_GetThemeSysColor'
C:/wxWidgets-3.1.3/lib/gcc_lib/libwxmsw31u_core.a(corelib_menuitem.o):menuitem.cpp:(.text+0x6c4): undefined reference to `__imp_GetThemeSysColor'
C:/wxWidgets-3.1.3/lib/gcc_lib/libwxmsw31u_core.a(corelib_menuitem.o):menuitem.cpp:(.text+0x71a): undefined reference to `__imp_GetThemeSysColor'
C:/wxWidgets-3.1.3/lib/gcc_lib/libwxmsw31u_core.a(corelib_menuitem.o):menuitem.cpp:(.text+0x747): undefined reference to `__imp_CloseThemeData'
C:/wxWidgets-3.1.3/lib/gcc_lib/libwxmsw31u_core.a(corelib_menuitem.o):menuitem.cpp:(.text+0x2116): undefined reference to `__imp_OpenThemeData'
C:/wxWidgets-3.1.3/lib/gcc_lib/libwxmsw31u_core.a(corelib_menuitem.o):menuitem.cpp:(.text+0x2144): undefined reference to `__imp_GetThemeMargins'
C:/wxWidgets-3.1.3/lib/gcc_lib/libwxmsw31u_core.a(corelib_menuitem.o):menuitem.cpp:(.text+0x21fe): undefined reference to `__imp_GetThemePartSize'
C:/wxWidgets-3.1.3/lib/gcc_lib/libwxmsw31u_core.a(corelib_menuitem.o):menuitem.cpp:(.text+0x2293): undefined reference to `__imp_GetThemeInt'
C:/wxWidgets-3.1.3/lib/gcc_lib/libwxmsw31u_core.a(corelib_menuitem.o):menuitem.cpp:(.text+0x22c1): undefined reference to `__imp_GetThemeSysFont'
C:/wxWidgets-3.1.3/lib/gcc_lib/libwxmsw31u_core.a(corelib_menuitem.o):menuitem.cpp:(.text+0x234f): undefined reference to `__imp_CloseThemeData'
C:/wxWidgets-3.1.3/lib/gcc_lib/libwxmsw31u_core.a(corelib_menuitem.o):menuitem.cpp:(.text+0x2c41): undefined reference to `__imp_CloseThemeData'
C:/wxWidgets-3.1.3/lib/gcc_lib/libwxmsw31u_core.a(corelib_menuitem.o):menuitem.cpp:(.text+0x375a): undefined reference to `__imp_OpenThemeData'
C:/wxWidgets-3.1.3/lib/gcc_lib/libwxmsw31u_core.a(corelib_menuitem.o):menuitem.cpp:(.text+0x3824): undefined reference to `__imp_DrawThemeBackground'
C:/wxWidgets-3.1.3/lib/gcc_lib/libwxmsw31u_core.a(corelib_menuitem.o):menuitem.cpp:(.text+0x387f): undefined reference to `__imp_CloseThemeData'
C:/wxWidgets-3.1.3/lib/gcc_lib/libwxmsw31u_core.a(corelib_menuitem.o):menuitem.cpp:(.text+0x3a97): undefined reference to `__imp_CloseThemeData'
C:/wxWidgets-3.1.3/lib/gcc_lib/libwxmsw31u_core.a(corelib_menuitem.o):menuitem.cpp:(.text+0x5473): undefined reference to `__imp_OpenThemeData'
C:/wxWidgets-3.1.3/lib/gcc_lib/libwxmsw31u_core.a(corelib_menuitem.o):menuitem.cpp:(.text+0x5487): undefined reference to `__imp_IsThemeBackgroundPartiallyTransparent'
C:/wxWidgets-3.1.3/lib/gcc_lib/libwxmsw31u_core.a(corelib_menuitem.o):menuitem.cpp:(.text+0x5490): undefined reference to `__imp_DrawThemeBackground'
C:/wxWidgets-3.1.3/lib/gcc_lib/libwxmsw31u_core.a(corelib_menuitem.o):menuitem.cpp:(.text+0x5505): undefined reference to `__imp_CloseThemeData'
C:/wxWidgets-3.1.3/lib/gcc_lib/libwxmsw31u_core.a(corelib_menuitem.o):menuitem.cpp:(.text+0x595c): undefined reference to `__imp_DrawThemeBackground'
C:/wxWidgets-3.1.3/lib/gcc_lib/libwxmsw31u_core.a(corelib_menuitem.o):menuitem.cpp:(.text+0x5aa4): undefined reference to `__imp_CloseThemeData'
C:/wxWidgets-3.1.3/lib/gcc_lib/libwxmsw31u_core.a(corelib_menuitem.o):menuitem.cpp:(.text+0x5c35): undefined reference to `__imp_CloseThemeData'
C:/wxWidgets-3.1.3/lib/gcc_lib/libwxmsw31u_core.a(corelib_msw_statbox.o):statbox.cpp:(.text+0x2e72): undefined reference to `__imp_OpenThemeData'
C:/wxWidgets-3.1.3/lib/gcc_lib/libwxmsw31u_core.a(corelib_msw_statbox.o):statbox.cpp:(.text+0x2ea3): undefined reference to `__imp_GetThemeFont'
C:/wxWidgets-3.1.3/lib/gcc_lib/libwxmsw31u_core.a(corelib_msw_statbox.o):statbox.cpp:(.text+0x2ec9): undefined reference to `__imp_CloseThemeData'
C:/wxWidgets-3.1.3/lib/gcc_lib/libwxmsw31u_core.a(corelib_msw_statbox.o):statbox.cpp:(.text+0x2fe1): undefined reference to `__imp_CloseThemeData'
C:/wxWidgets-3.1.3/lib/gcc_lib/libwxmsw31u_core.a(corelib_statusbar.o):statusbar.cpp:(.text+0x14f0): undefined reference to `__imp_OpenThemeData'
C:/wxWidgets-3.1.3/lib/gcc_lib/libwxmsw31u_core.a(corelib_statusbar.o):statusbar.cpp:(.text+0x1526): undefined reference to `__imp_GetThemeBackgroundContentRect'
C:/wxWidgets-3.1.3/lib/gcc_lib/libwxmsw31u_core.a(corelib_statusbar.o):statusbar.cpp:(.text+0x155d): undefined reference to `__imp_CloseThemeData'
C:/wxWidgets-3.1.3/lib/gcc_lib/libwxmsw31u_core.a(corelib_statusbar.o):statusbar.cpp:(.text+0x1e02): undefined reference to `__imp_CloseThemeData'
C:/wxWidgets-3.1.3/lib/gcc_lib/libwxmsw31u_core.a(corelib_renderer.o):renderer.cpp:(.text+0x492): undefined reference to `__imp_OpenThemeData'
C:/wxWidgets-3.1.3/lib/gcc_lib/libwxmsw31u_core.a(corelib_renderer.o):renderer.cpp:(.text+0x4ab): undefined reference to `__imp_IsThemePartDefined'
C:/wxWidgets-3.1.3/lib/gcc_lib/libwxmsw31u_core.a(corelib_renderer.o):renderer.cpp:(.text+0x4d1): undefined reference to `__imp_CloseThemeData'
C:/wxWidgets-3.1.3/lib/gcc_lib/libwxmsw31u_core.a(corelib_renderer.o):renderer.cpp:(.text+0x563): undefined reference to `__imp_GetThemePartSize'
C:/wxWidgets-3.1.3/lib/gcc_lib/libwxmsw31u_core.a(corelib_renderer.o):renderer.cpp:(.text+0x581): undefined reference to `__imp_CloseThemeData'
C:/wxWidgets-3.1.3/lib/gcc_lib/libwxmsw31u_core.a(corelib_renderer.o):renderer.cpp:(.text+0x5c2): undefined reference to `__imp_OpenThemeData'
C:/wxWidgets-3.1.3/lib/gcc_lib/libwxmsw31u_core.a(corelib_renderer.o):renderer.cpp:(.text+0x5db): undefined reference to `__imp_IsThemePartDefined'
C:/wxWidgets-3.1.3/lib/gcc_lib/libwxmsw31u_core.a(corelib_renderer.o):renderer.cpp:(.text+0x601): undefined reference to `__imp_CloseThemeData'
C:/wxWidgets-3.1.3/lib/gcc_lib/libwxmsw31u_core.a(corelib_renderer.o):renderer.cpp:(.text+0x693): undefined reference to `__imp_GetThemePartSize'
C:/wxWidgets-3.1.3/lib/gcc_lib/libwxmsw31u_core.a(corelib_renderer.o):renderer.cpp:(.text+0x6b1): undefined reference to `__imp_CloseThemeData'
C:/wxWidgets-3.1.3/lib/gcc_lib/libwxmsw31u_core.a(corelib_renderer.o):renderer.cpp:(.text+0x6f2): undefined reference to `__imp_OpenThemeData'
C:/wxWidgets-3.1.3/lib/gcc_lib/libwxmsw31u_core.a(corelib_renderer.o):renderer.cpp:(.text+0x70b): undefined reference to `__imp_IsThemePartDefined'
C:/wxWidgets-3.1.3/lib/gcc_lib/libwxmsw31u_core.a(corelib_renderer.o):renderer.cpp:(.text+0x731): undefined reference to `__imp_CloseThemeData'
C:/wxWidgets-3.1.3/lib/gcc_lib/libwxmsw31u_core.a(corelib_renderer.o):renderer.cpp:(.text+0x7c3): undefined reference to `__imp_GetThemePartSize'
C:/wxWidgets-3.1.3/lib/gcc_lib/libwxmsw31u_core.a(corelib_renderer.o):renderer.cpp:(.text+0x7e1): undefined reference to `__imp_CloseThemeData'
C:/wxWidgets-3.1.3/lib/gcc_lib/libwxmsw31u_core.a(corelib_renderer.o):renderer.cpp:(.text+0x931): undefined reference to `__imp_OpenThemeData'
C:/wxWidgets-3.1.3/lib/gcc_lib/libwxmsw31u_core.a(corelib_renderer.o):renderer.cpp:(.text+0x945): undefined reference to `__imp_IsThemePartDefined'
C:/wxWidgets-3.1.3/lib/gcc_lib/libwxmsw31u_core.a(corelib_renderer.o):renderer.cpp:(.text+0x9a2): undefined reference to `__imp_GetThemePartSize'
C:/wxWidgets-3.1.3/lib/gcc_lib/libwxmsw31u_core.a(corelib_renderer.o):renderer.cpp:(.text+0x9cd): undefined reference to `__imp_CloseThemeData'
C:/wxWidgets-3.1.3/lib/gcc_lib/libwxmsw31u_core.a(corelib_renderer.o):renderer.cpp:(.text+0xa38): undefined reference to `__imp_CloseThemeData'
C:/wxWidgets-3.1.3/lib/gcc_lib/libwxmsw31u_core.a(corelib_renderer.o):renderer.cpp:(.text+0xa81): undefined reference to `__imp_OpenThemeData'
C:/wxWidgets-3.1.3/lib/gcc_lib/libwxmsw31u_core.a(corelib_renderer.o):renderer.cpp:(.text+0xabd): undefined reference to `__imp_IsThemePartDefined'
C:/wxWidgets-3.1.3/lib/gcc_lib/libwxmsw31u_core.a(corelib_renderer.o):renderer.cpp:(.text+0xb14): undefined reference to `__imp_IsThemeBackgroundPartiallyTransparent'
C:/wxWidgets-3.1.3/lib/gcc_lib/libwxmsw31u_core.a(corelib_renderer.o):renderer.cpp:(.text+0xb63): undefined reference to `__imp_DrawThemeBackground'
C:/wxWidgets-3.1.3/lib/gcc_lib/libwxmsw31u_core.a(corelib_renderer.o):renderer.cpp:(.text+0xb8e): undefined reference to `__imp_CloseThemeData'
C:/wxWidgets-3.1.3/lib/gcc_lib/libwxmsw31u_core.a(corelib_renderer.o):renderer.cpp:(.text+0xbc8): undefined reference to `__imp_DrawThemeParentBackground'
C:/wxWidgets-3.1.3/lib/gcc_lib/libwxmsw31u_core.a(corelib_renderer.o):renderer.cpp:(.text+0xca1): undefined reference to `__imp_CloseThemeData'
C:/wxWidgets-3.1.3/lib/gcc_lib/libwxmsw31u_core.a(corelib_renderer.o):renderer.cpp:(.text+0xcf6): undefined reference to `__imp_OpenThemeData'
C:/wxWidgets-3.1.3/lib/gcc_lib/libwxmsw31u_core.a(corelib_renderer.o):renderer.cpp:(.text+0xda4): undefined reference to `__imp_DrawThemeBackground'
C:/wxWidgets-3.1.3/lib/gcc_lib/libwxmsw31u_core.a(corelib_renderer.o):renderer.cpp:(.text+0xdc9): undefined reference to `__imp_CloseThemeData'
C:/wxWidgets-3.1.3/lib/gcc_lib/libwxmsw31u_core.a(corelib_renderer.o):renderer.cpp:(.text+0xe2d): undefined reference to `__imp_CloseThemeData'
C:/wxWidgets-3.1.3/lib/gcc_lib/libwxmsw31u_core.a(corelib_renderer.o):renderer.cpp:(.text+0xe95): undefined reference to `__imp_CloseThemeData'
C:/wxWidgets-3.1.3/lib/gcc_lib/libwxmsw31u_core.a(corelib_renderer.o):renderer.cpp:(.text+0xeef): undefined reference to `__imp_OpenThemeData'
C:/wxWidgets-3.1.3/lib/gcc_lib/libwxmsw31u_core.a(corelib_renderer.o):renderer.cpp:(.text+0xf03): undefined reference to `__imp_IsThemePartDefined'
C:/wxWidgets-3.1.3/lib/gcc_lib/libwxmsw31u_core.a(corelib_renderer.o):renderer.cpp:(.text+0xfab): undefined reference to `__imp_DrawThemeBackground'
C:/wxWidgets-3.1.3/lib/gcc_lib/libwxmsw31u_core.a(corelib_renderer.o):renderer.cpp:(.text+0xfd1): undefined reference to `__imp_CloseThemeData'
C:/wxWidgets-3.1.3/lib/gcc_lib/libwxmsw31u_core.a(corelib_renderer.o):renderer.cpp:(.text+0x1037): undefined reference to `__imp_CloseThemeData'
C:/wxWidgets-3.1.3/lib/gcc_lib/libwxmsw31u_core.a(corelib_renderer.o):renderer.cpp:(.text+0x11e6): undefined reference to `__imp_OpenThemeData'
C:/wxWidgets-3.1.3/lib/gcc_lib/libwxmsw31u_core.a(corelib_renderer.o):renderer.cpp:(.text+0x1296): undefined reference to `__imp_DrawThemeBackground'
C:/wxWidgets-3.1.3/lib/gcc_lib/libwxmsw31u_core.a(corelib_renderer.o):renderer.cpp:(.text+0x12bb): 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+0x13b5): undefined reference to `__imp_CloseThemeData'
C:/wxWidgets-3.1.3/lib/gcc_lib/libwxmsw31u_core.a(corelib_renderer.o):renderer.cpp:(.text+0x14df): undefined reference to `__imp_OpenThemeData'
C:/wxWidgets-3.1.3/lib/gcc_lib/libwxmsw31u_core.a(corelib_renderer.o):renderer.cpp:(.text+0x1571): undefined reference to `__imp_DrawThemeBackground'
C:/wxWidgets-3.1.3/lib/gcc_lib/libwxmsw31u_core.a(corelib_renderer.o):renderer.cpp:(.text+0x15e2): undefined reference to `__imp_GetThemeBackgroundContentRect'
C:/wxWidgets-3.1.3/lib/gcc_lib/libwxmsw31u_core.a(corelib_renderer.o):renderer.cpp:(.text+0x1692): undefined reference to `__imp_CloseThemeData'
C:/wxWidgets-3.1.3/lib/gcc_lib/libwxmsw31u_core.a(corelib_renderer.o):renderer.cpp:(.text+0x17b6): 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+0x1ad7): undefined reference to `__imp_CloseThemeData'
C:/wxWidgets-3.1.3/lib/gcc_lib/libwxmsw31u_core.a(corelib_renderer.o):renderer.cpp:(.text+0x1ba3): undefined reference to `__imp_CloseThemeData'
C:/wxWidgets-3.1.3/lib/gcc_lib/libwxmsw31u_core.a(corelib_renderer.o):renderer.cpp:(.text+0x1c63): undefined reference to `__imp_OpenThemeData'
C:/wxWidgets-3.1.3/lib/gcc_lib/libwxmsw31u_core.a(corelib_renderer.o):renderer.cpp:(.text+0x1d1b): undefined reference to `__imp_DrawThemeBackground'
C:/wxWidgets-3.1.3/lib/gcc_lib/libwxmsw31u_core.a(corelib_renderer.o):renderer.cpp:(.text+0x1e32): undefined reference to `__imp_CloseThemeData'
C:/wxWidgets-3.1.3/lib/gcc_lib/libwxmsw31u_core.a(corelib_renderer.o):renderer.cpp:(.text+0x1f45): undefined reference to `__imp_CloseThemeData'
C:/wxWidgets-3.1.3/lib/gcc_lib/libwxmsw31u_core.a(corelib_renderer.o):renderer.cpp:(.text+0x26bf): undefined reference to `__imp_OpenThemeData'
C:/wxWidgets-3.1.3/lib/gcc_lib/libwxmsw31u_core.a(corelib_renderer.o):renderer.cpp:(.text+0x276b): undefined reference to `__imp_DrawThemeBackground'
C:/wxWidgets-3.1.3/lib/gcc_lib/libwxmsw31u_core.a(corelib_renderer.o):renderer.cpp:(.text+0x2795): undefined reference to `__imp_CloseThemeData'
C:/wxWidgets-3.1.3/lib/gcc_lib/libwxmsw31u_core.a(corelib_renderer.o):renderer.cpp:(.text+0x2846): undefined reference to `__imp_CloseThemeData'
C:/wxWidgets-3.1.3/lib/gcc_lib/libwxmsw31u_core.a(corelib_renderer.o):renderer.cpp:(.text+0x292f): undefined reference to `__imp_DrawThemeBackground'
C:/wxWidgets-3.1.3/lib/gcc_lib/libwxmsw31u_core.a(corelib_renderer.o):renderer.cpp:(.text+0x2a70): undefined reference to `__imp_OpenThemeData'
C:/wxWidgets-3.1.3/lib/gcc_lib/libwxmsw31u_core.a(corelib_renderer.o):renderer.cpp:(.text+0x2aaa): undefined reference to `__imp_CloseThemeData'
C:/wxWidgets-3.1.3/lib/gcc_lib/libwxmsw31u_core.a(corelib_renderer.o):renderer.cpp:(.text+0x2ad3): undefined reference to `__imp_CloseThemeData'
C:/wxWidgets-3.1.3/lib/gcc_lib/libwxmsw31u_core.a(corelib_renderer.o):renderer.cpp:(.text+0x2b19): undefined reference to `__imp_OpenThemeData'
C:/wxWidgets-3.1.3/lib/gcc_lib/libwxmsw31u_core.a(corelib_renderer.o):renderer.cpp:(.text+0x2b7d): undefined reference to `__imp_CloseThemeData'
C:/wxWidgets-3.1.3/lib/gcc_lib/libwxmsw31u_core.a(corelib_renderer.o):renderer.cpp:(.text+0x2bf3): undefined reference to `__imp_CloseThemeData'
C:/wxWidgets-3.1.3/lib/gcc_lib/libwxmsw31u_core.a(corelib_renderer.o):renderer.cpp:(.text+0x2c63): undefined reference to `__imp_CloseThemeData'
C:/wxWidgets-3.1.3/lib/gcc_lib/libwxmsw31u_core.a(corelib_renderer.o):renderer.cpp:(.text+0x2f78): undefined reference to `__imp_OpenThemeData'
C:/wxWidgets-3.1.3/lib/gcc_lib/libwxmsw31u_core.a(corelib_renderer.o):renderer.cpp:(.text+0x2fd8): undefined reference to `__imp_IsThemePartDefined'
C:/wxWidgets-3.1.3/lib/gcc_lib/libwxmsw31u_core.a(corelib_renderer.o):renderer.cpp:(.text+0x3378): undefined reference to `__imp_CloseThemeData'
C:/wxWidgets-3.1.3/lib/gcc_lib/libwxmsw31u_core.a(corelib_renderer.o):renderer.cpp:(.text+0x37b2): 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+0x22): undefined reference to `__imp_IsThemeActive'
C:/wxWidgets-3.1.3/lib/gcc_lib/libwxmsw31u_core.a(corelib_msw_anybutton.o):anybutton.cpp:(.text+0x860): undefined reference to `__imp_OpenThemeData'
C:/wxWidgets-3.1.3/lib/gcc_lib/libwxmsw31u_core.a(corelib_msw_anybutton.o):anybutton.cpp:(.text+0x8a4): undefined reference to `__imp_GetThemeMargins'
C:/wxWidgets-3.1.3/lib/gcc_lib/libwxmsw31u_core.a(corelib_msw_anybutton.o):anybutton.cpp:(.text+0x8e4): undefined reference to `__imp_CloseThemeData'
C:/wxWidgets-3.1.3/lib/gcc_lib/libwxmsw31u_core.a(corelib_msw_anybutton.o):anybutton.cpp:(.text+0x952): undefined reference to `__imp_CloseThemeData'
C:/wxWidgets-3.1.3/lib/gcc_lib/libwxmsw31u_core.a(corelib_msw_anybutton.o):anybutton.cpp:(.text+0x46f4): undefined reference to `__imp_OpenThemeData'
C:/wxWidgets-3.1.3/lib/gcc_lib/libwxmsw31u_core.a(corelib_msw_anybutton.o):anybutton.cpp:(.text+0x471f): undefined reference to `__imp_IsThemeBackgroundPartiallyTransparent'
C:/wxWidgets-3.1.3/lib/gcc_lib/libwxmsw31u_core.a(corelib_msw_anybutton.o):anybutton.cpp:(.text+0x4754): undefined reference to `__imp_DrawThemeBackground'
C:/wxWidgets-3.1.3/lib/gcc_lib/libwxmsw31u_core.a(corelib_msw_anybutton.o):anybutton.cpp:(.text+0x47a2): undefined reference to `__imp_GetThemeMargins'
C:/wxWidgets-3.1.3/lib/gcc_lib/libwxmsw31u_core.a(corelib_msw_anybutton.o):anybutton.cpp:(.text+0x486c): undefined reference to `__imp_CloseThemeData'
C:/wxWidgets-3.1.3/lib/gcc_lib/libwxmsw31u_core.a(corelib_msw_anybutton.o):anybutton.cpp:(.text+0x5d5b): undefined reference to `__imp_DrawThemeParentBackground'
C:/wxWidgets-3.1.3/lib/gcc_lib/libwxmsw31u_core.a(corelib_msw_anybutton.o):anybutton.cpp:(.text+0x6f78): undefined reference to `__imp_CloseThemeData'
C:/wxWidgets-3.1.3/lib/gcc_lib/libwxmsw31u_core.a(corelib_combo.o):combo.cpp:(.text+0xfcf): undefined reference to `__imp_OpenThemeData'
C:/wxWidgets-3.1.3/lib/gcc_lib/libwxmsw31u_core.a(corelib_combo.o):combo.cpp:(.text+0x1235): undefined reference to `__imp_CloseThemeData'
C:/wxWidgets-3.1.3/lib/gcc_lib/libwxmsw31u_core.a(corelib_combo.o):combo.cpp:(.text+0x16f7): undefined reference to `__imp_CloseThemeData'
C:/wxWidgets-3.1.3/lib/gcc_lib/libwxmsw31u_core.a(corelib_combo.o):combo.cpp:(.text+0x194e): undefined reference to `__imp_OpenThemeData'
C:/wxWidgets-3.1.3/lib/gcc_lib/libwxmsw31u_core.a(corelib_combo.o):combo.cpp:(.text+0x1aa6): undefined reference to `__imp_IsThemeBackgroundPartiallyTransparent'
C:/wxWidgets-3.1.3/lib/gcc_lib/libwxmsw31u_core.a(corelib_combo.o):combo.cpp:(.text+0x1ad6): undefined reference to `__imp_DrawThemeParentBackground'
C:/wxWidgets-3.1.3/lib/gcc_lib/libwxmsw31u_core.a(corelib_combo.o):combo.cpp:(.text+0x1b12): undefined reference to `__imp_DrawThemeBackground'
C:/wxWidgets-3.1.3/lib/gcc_lib/libwxmsw31u_core.a(corelib_combo.o):combo.cpp:(.text+0x1b62): undefined reference to `__imp_DrawThemeBackground'
C:/wxWidgets-3.1.3/lib/gcc_lib/libwxmsw31u_core.a(corelib_combo.o):combo.cpp:(.text+0x1c1b): undefined reference to `__imp_CloseThemeData'
C:/wxWidgets-3.1.3/lib/gcc_lib/libwxmsw31u_core.a(corelib_combo.o):combo.cpp:(.text+0x2104): undefined reference to `__imp_CloseThemeData'
C:/wxWidgets-3.1.3/lib/gcc_lib/libwxmsw31u_core.a(corelib_access.o):access.cpp:(.text+0x1ec): 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+0x2016): undefined reference to `__imp_SetWindowTheme'
C:/wxWidgets-3.1.3/lib/gcc_lib/libwxmsw31u_core.a(corelib_msw_notebook.o):notebook.cpp:(.text+0x38c6): undefined reference to `__imp_OpenThemeData'
C:/wxWidgets-3.1.3/lib/gcc_lib/libwxmsw31u_core.a(corelib_msw_notebook.o):notebook.cpp:(.text+0x38ea): undefined reference to `__imp_GetThemeColor'
C:/wxWidgets-3.1.3/lib/gcc_lib/libwxmsw31u_core.a(corelib_msw_notebook.o):notebook.cpp:(.text+0x39cf): undefined reference to `__imp_CloseThemeData'
C:/wxWidgets-3.1.3/lib/gcc_lib/libwxmsw31u_core.a(corelib_msw_notebook.o):notebook.cpp:(.text+0x3a68): undefined reference to `__imp_GetCurrentThemeName'
C:/wxWidgets-3.1.3/lib/gcc_lib/libwxmsw31u_core.a(corelib_msw_notebook.o):notebook.cpp:(.text+0x3cdd): undefined reference to `__imp_CloseThemeData'
C:/wxWidgets-3.1.3/lib/gcc_lib/libwxmsw31u_core.a(corelib_msw_notebook.o):notebook.cpp:(.text+0x666e): undefined reference to `__imp_OpenThemeData'
C:/wxWidgets-3.1.3/lib/gcc_lib/libwxmsw31u_core.a(corelib_msw_notebook.o):notebook.cpp:(.text+0x66b0): undefined reference to `__imp_GetThemeBackgroundExtent'
C:/wxWidgets-3.1.3/lib/gcc_lib/libwxmsw31u_core.a(corelib_msw_notebook.o):notebook.cpp:(.text+0x66d3): undefined reference to `__imp_DrawThemeBackground'
C:/wxWidgets-3.1.3/lib/gcc_lib/libwxmsw31u_core.a(corelib_msw_notebook.o):notebook.cpp:(.text+0x66e1): undefined reference to `__imp_CloseThemeData'
C:/wxWidgets-3.1.3/lib/gcc_lib/libwxmsw31u_core.a(corelib_msw_notebook.o):notebook.cpp:(.text+0x6765): undefined reference to `__imp_CloseThemeData'
collect2.exe: error: ld returned 1 exit status
mingw32-make.exe[1]: *** [wxTest.mk:83: ..\build-Debug\bin\wxTest] Error 1
mingw32-make.exe: *** [Makefile:5: All] Error 2
mingw32-make.exe[1]: Leaving directory 'H:/CodeLite/C++/GUI-Stuff/wxTest'
====162 errors, 0 warnings====
But the file is there.

Image

I hope you can help me get this fixed. I think your IDE is awesome, but this is a deal killer. And I checked the wxWidgets build with Code::Blocks. Runs without a glitch. So I know this is a config issue that has to be resolved within CodeLite. But I don't know what that would be.

PS - I didn't really cry...but I came close to it :D
Win X Pro / CodeLite 14.0 / wxCrafter 2.9 / wxWidgets-3.1.4 / MinGW-10.2.0

Linux Mint 20.0 / CodeLite 14.0 / wxCrafter 2.9 / wxWidgets-3.0 & 3.1.4 / GCC-9.2.0
User avatar
eranif
CodeLite Plugin
Posts: 6375
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Compiler errors with first use of wxCrafter

Post by eranif »

You are missing the Windows UxTheme library (not wxWidgets related)
Right click on the project -> project settings -> linker -> libraries

and add:

"UxTheme.lib"
Make sure you have read the HOW TO POST thread
root
CodeLite Enthusiast
Posts: 21
Joined: Tue Jan 21, 2020 4:10 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Compiler errors with first use of wxCrafter

Post by root »

Getting closer, eranif.

I added uxtheme.lib like you said, ran it and got it down to one error.

Code: Select all

C:\Windows\system32\cmd.exe /C C:/mingw-w64-8.1.0/mingw64/bin/mingw32-make.exe -j8 SHELL=cmd.exe -e -f  Makefile
"----------Building project:[ wxTest - Debug ]----------"
mingw32-make.exe[1]: Entering directory 'H:/CodeLite/C++/GUI-Stuff/wxTest'
C:/mingw-w64-8.1.0/mingw64/bin/g++.exe  -c  "H:/CodeLite/C++/GUI-Stuff/wxTest/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      -o ../build-Debug/wxTest/main.cpp.o -I. -I.
C:/mingw-w64-8.1.0/mingw64/bin/g++.exe  -c  "H:/CodeLite/C++/GUI-Stuff/wxTest/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      -o ../build-Debug/wxTest/wxcrafter.cpp.o -I. -I.
C:/mingw-w64-8.1.0/mingw64/bin/g++.exe  -c  "H:/CodeLite/C++/GUI-Stuff/wxTest/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      -o ../build-Debug/wxTest/MainFrame.cpp.o -I. -I.
C:/mingw-w64-8.1.0/mingw64/bin/g++.exe  -c  "H:/CodeLite/C++/GUI-Stuff/wxTest/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      -o ../build-Debug/wxTest/wxcrafter_bitmaps.cpp.o -I. -I.
C:/mingw-w64-8.1.0/mingw64/bin/g++.exe -o ..\build-Debug\bin\wxTest @../build-Debug/wxTest/ObjectsList.txt -L.  -luxtheme.lib   -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  -mwindows
C:/mingw-w64-8.1.0/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find -luxtheme.lib
collect2.exe: error: ld returned 1 exit status
mingw32-make.exe[1]: *** [wxTest.mk:83: ..\build-Debug\bin\wxTest] Error 1
mingw32-make.exe: *** [Makefile:5: All] Error 2
mingw32-make.exe[1]: Leaving directory 'H:/CodeLite/C++/GUI-Stuff/wxTest'
====0 errors, 0 warnings====
The theme looked for, luxtheme.lib, isn't even on my drive. And I cldn't find it on Google either. Being new to C++, I'm kind of at a loss as to why my compiler is looking for a library that apparently doesn't exist.
Win X Pro / CodeLite 14.0 / wxCrafter 2.9 / wxWidgets-3.1.4 / MinGW-10.2.0

Linux Mint 20.0 / CodeLite 14.0 / wxCrafter 2.9 / wxWidgets-3.0 & 3.1.4 / GCC-9.2.0
User avatar
eranif
CodeLite Plugin
Posts: 6375
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Compiler errors with first use of wxCrafter

Post by eranif »

add it without the .lib suffix:

like this:

Code: Select all

uxtheme
Make sure you have read the HOW TO POST thread
root
CodeLite Enthusiast
Posts: 21
Joined: Tue Jan 21, 2020 4:10 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Compiler errors with first use of wxCrafter

Post by root »

I added it as you said:

Image

Now I'm back to 162 errors. I don't get it. I mean I'm using the same wxWidgets build, with the same compiler, with C::B and I get no errors.

So far, I've tried

Code: Select all

uxtheme
and

Code: Select all

uxtheme.lib;uxtheme
and

Code: Select all

uxtheme.lib
And none of them work. Makes no sense. I guess this just isn't meant to be for me. And I prefer your IDE. Just can't get the GUI end of things to work.
Win X Pro / CodeLite 14.0 / wxCrafter 2.9 / wxWidgets-3.1.4 / MinGW-10.2.0

Linux Mint 20.0 / CodeLite 14.0 / wxCrafter 2.9 / wxWidgets-3.0 & 3.1.4 / GCC-9.2.0
User avatar
eranif
CodeLite Plugin
Posts: 6375
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Compiler errors with first use of wxCrafter

Post by eranif »

its not the IDE, its the toolchain.
CodeLite does not link nor compile your code.
Make sure you have read the HOW TO POST thread
Post Reply