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.
- In need of some credit
- Posts: 7
- Joined: Sat Feb 21, 2015 6:29 pm
I'm getting this error every time I try to build the wxWidgets library:
Code: Select all
makefile.gcc SHELL=CMD.exe BUILD=debug SHARED=1 MONOLITHIC=1 UNICODE=1 CXXFLAGS=
gcc -c -o gcc_mswuddll\wxregex_regcomp.o -g -O0 -mthreads -DHAVE_W32API_H -DNDE
BUG -I..\..\include -I..\..\lib\gcc_dll\mswud -D__WXMSW__ -D_UNICODE -MTgcc_m
swuddll\wxregex_regcomp.o -MFgcc_mswuddll\wxregex_regcomp.o.d -MD -MP ../../src/
'gcc' is not recognized as an internal or external command,
operable program or batch file.
makefile.gcc:5698: recipe for target 'gcc_mswuddll\wxregex_regcomp.o' failed
mingw32-make: *** [gcc_mswuddll\wxregex_regcomp.o] Error 1
- Can't get richer than this
- Posts: 727
- Joined: Mon Apr 30, 2012 11:07 pm
The compiler needs to find several files. You can achieve it by adding mingwcompiler/bin folder to the path:
C:\SourceCode\Libraries\wxWidgets3.0\build\msw>mingw32-make.exe -f makefile.gcc BUILD=debug SHARED=1 MONOLITHIC=1 UNICODE=1
Notice that I have not used SHELL=CMD.exe (what do you need this?) nor CXXFLAGS=-fno-keep-inline-dllexport (used by TDM-GCC, but not really need for official MinGW-32).
- Super wx Problem Solver
- Posts: 421
- Joined: Fri Nov 03, 2006 2:00 pm
I told him about "SHELL=CMD.exe" on another site. It helps if you have sh.exe in your path.
I added PATH=C:\MinGW\bin;%PATH% to the post and they must have missed the edit.