Whenever I try to build the library it gives me this:
C:\SourceCode\Libraries\wxWidgets3.0\build\msw>C:\MinGW\bin\mingw32-make.exe -f
makefile.gcc BUILD=release SHARED=1 MONOLITHIC=1 UNICODE=1 CXXFLAGS=-fno-keep-in
line-dllexport
gcc -c -o gcc_mswudll\wxregex_regcomp.o -O2 -mthreads -DHAVE_W32API_H -DNDEBUG
-I..\..\include -I..\..\lib\gcc_dll\mswu -D__WXMSW__ -D_UNICODE -MTgcc_mswud
ll\wxregex_regcomp.o -MFgcc_mswudll\wxregex_regcomp.o.d -MD -MP ../../src/regex/
regcomp.c
gcc: error: CreateProcess: No such file or directory
makefile.gcc:5698: recipe for target 'gcc_mswudll\wxregex_regcomp.o' failed
mingw32-make: *** [gcc_mswudll\wxregex_regcomp.o] Error 1
I suggest reading this site in case you can find the cause on it; also your problem would be more on target on that site.
https://forums.wxwidgets.org/index.phpI have gotten that error before; but, I am not sure why.
I did find that this fixes some weired errors.
Instead of
mingw32-make.exe -f makefile.gcc BUILD=release SHARED=1 MONOLITHIC=1 UNICODE=1 CXXFLAGS=-fno-keep-in
line-dllexport
I add SHELL=CMD.exe so it becomes
mingw32-make.exe -f makefile.gcc SHELL=CMD.exe BUILD=release SHARED=1 MONOLITHIC=1 UNICODE=1 CXXFLAGS=-fno-keep-in
line-dllexport
Note I do NOT have to do that myself because I build wxWidgets by setting the PATH system variable to a valid value before doing the make command.
Edit: Valid value means one that only contains the MinGW GCC and the 2 to 4 required Windows folders.
Edit2: You might wish to try this and see if the error goes away.
SET PATH=C:\MinGW\bin;%PATH%
mingw32-make.exe -f makefile.gcc BUILD=release SHARED=1 MONOLITHIC=1 UNICODE=1 CXXFLAGS=-fno-keep-inline-dllexport
Tim S.