mingw32-make -j4 -f Makefile.gcc SHARED=1 UNICODE=1 BUILD=debug VENDOR=cl CXXFLAGS=”-fno-keep-inline-dllexport”
i did also #define wxUSE_GRAPHICS_CONTEXT 1 before building.
The project compiles with no problem. This is the output of the build, it's just the default project created by codelite, nothing more:
But when i run it (Debug or Release mode does the same) i get "Debugger exited with the following error string: During startup program exited with code 0xc0000135"C:\Windows\system32\cmd.exe /c "X:/MyPrograms/MinGW/bin/mingw32-make.exe -j4 SHELL=cmd.exe -e -f Makefile"
"----------Building project:[ testwxwidget - Release ]----------"
mingw32-make.exe[1]: Entering directory 'X:/MyPrograms/testwxwidget' X:/MyPrograms/MinGW/bin/windres.exe -i "X:/MyPrograms/_Learning_Applications/C++/testwxwidget/win_resources.rc" --use-temp-file --define __WXMSW__ --define __WXDEBUG__ --define _UNICODE --include-dir X:/MyPrograms/Dev/wxWidgets-3.0.2-64x4.9.1/lib/gcc_dll/mswud --include-dir X:/MyPrograms/Dev/wxWidgets-3.0.2-64x4.9.1/include --define WXUSINGDLL -o ./Release/win_resources.rc.o
X:/MyPrograms/MinGW/bin/g++.exe -c "X:/MyPrograms/_Learning_Applications/C++/testwxwidget/wxcrafter.cpp" -O2 -Wall -mthreads -DHAVE_W32API_H -D__WXMSW__ -D__WXDEBUG__ -D_UNICODE -IX:/MyPrograms/Dev/wxWidgets-3.0.2-64x4.9.1/lib/gcc_dll/mswud -IX:/MyPrograms/Dev/wxWidgets-3.0.2-64x4.9.1/include -DWXUSINGDLL -Wno-ctor-dtor-privacy -pipe -fmessage-length=0 -fno-keep-inline-dllexport -DNDEBUG -o ./Release/wxcrafter.cpp.o -IX:/MyPrograms/MinGW/include -I. -I.
X:/MyPrograms/MinGW/bin/windres.exe: warning: 24: 1: 1033: duplicate value
X:/MyPrograms/MinGW/bin/g++.exe -c "X:/MyPrograms/testwxwidget/wxcrafter_bitmaps.cpp" -O2 -Wall -mthreads -DHAVE_W32API_H -D__WXMSW__ -D__WXDEBUG__ -D_UNICODE -IX:/MyPrograms/Dev/wxWidgets-3.0.2-64x4.9.1/lib/gcc_dll/mswud -IX:/MyPrograms/Dev/wxWidgets-3.0.2-64x4.9.1/include -DWXUSINGDLL -Wno-ctor-dtor-privacy -pipe -fmessage-length=0 -fno-keep-inline-dllexport -DNDEBUG -o ./Release/wxcrafter_bitmaps.cpp.o -IX:/MyPrograms/MinGW/include -I. -I.
X:/MyPrograms/MinGW/bin/g++.exe -c "X:/MyPrograms/testwxwidget/MainFrame.cpp" -O2 -Wall -mthreads -DHAVE_W32API_H -D__WXMSW__ -D__WXDEBUG__ -D_UNICODE -IX:/MyPrograms/Dev/wxWidgets-3.0.2-64x4.9.1/lib/gcc_dll/mswud -IX:/MyPrograms/Dev/wxWidgets-3.0.2-64x4.9.1/include -DWXUSINGDLL -Wno-ctor-dtor-privacy -pipe -fmessage-length=0 -fno-keep-inline-dllexport -DNDEBUG -o ./Release/MainFrame.cpp.o -IX:/MyPrograms/MinGW/include -I. -I.
X:/MyPrograms/MinGW/bin/g++.exe -c "X:/MyPrograms/testwxwidget/main.cpp" -O2 -Wall -mthreads -DHAVE_W32API_H -D__WXMSW__ -D__WXDEBUG__ -D_UNICODE -IX:/MyPrograms/Dev/wxWidgets-3.0.2-64x4.9.1/lib/gcc_dll/mswud -IX:/MyPrograms/Dev/wxWidgets-3.0.2-64x4.9.1/include -DWXUSINGDLL -Wno-ctor-dtor-privacy -pipe -fmessage-length=0 -fno-keep-inline-dllexport -DNDEBUG -o ./Release/main.cpp.o -IX:/MyPrograms/MinGW/include -I. -I.
X:/MyPrograms/MinGW/bin/g++.exe -o ./Release/testwxwidget @"testwxwidget.txt" -LX:/MyPrograms/MinGW/lib -L. -static-libstdc++ -static-libgcc -static -mwindows -mthreads -LX:/MyPrograms/Dev/wxWidgets-3.0.2-64x4.9.1/lib/gcc_dll -lwxmsw30ud_richtext -lwxmsw30ud_xrc -lwxmsw30ud_aui -lwxmsw30ud_html -lwxmsw30ud_adv -lwxmsw30ud_core -lwxbase30ud_xml -lwxbase30ud_net -lwxbase30ud -lwxscintillad -lwxtiffd -lwxjpegd -lwxpngd -lwxzlibd -lwxregexud -lwxexpatd -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwxregexud -lwinspool -lwinmm -lshell32 -lcomctl32 -lole32 -loleaut32 -luuid -lrpcrt4 -ladvapi32 -lwsock32
mingw32-make.exe[1]: Leaving directory 'X:/MyPrograms/testwxwidget'
0 errors, 0 warnings
the produced .exe file depends on a 32 bit version of COMCLT32.DLL, this should have been the 64bit version!