
src/components/codeeditor/libcodeeditor.a. Wl,windows -mwindows xpe.o xpemw.o -L/usr/local/lib -mthreads -lwx_msw_xrc-2.6 -lwx_msw_qa-2.6 \ I/usr/local/include/wx-2.6 -D_WXMSW_ -DWXUSINGDLL=1 -DNO_GCC_PRAGMA -o xpe.exe -Wl,-subsystem \ G++ -Wall -g -fexceptions -Wall -g -fexceptions -I/usr/local/lib/wx/include/msw-ansi-release-2.6 \ This might not work (please note the respective positions of "-lwx_mswXXXXXX" and "XXXXXXXXXXX/libXXXXXX.a") : In my case this was due to a wrong order in the g++ call : your static libs MUST be given before shared libs. While compiling your projects, you might get some "undefined reference" errors. Try building from a fresh wxWidgets source tree ( mingw32-make -f makefile.gcc seems insufficient to clean this). You most likely got this after experiencing the error above and switching to TDM gcc and trying the build again. It is also recommended to build non-monolithic, since monolithic builds take more RAM (debug builds especially some people report that monolithic-debug builds require more RAM than a 32-bits system can have).Īnother option is to add the following build flags :
#MINGW MAKEFILES INSTALL#
Also if you install both regular and TDM mingw check your PATH carefully to get the correct one when you build. Note: Make sure to make a clean build after switching compilers. This applies to MinGW with installers 2011030530 at least. Tdm-mingw tends to be less prone to this issue : If you get "memory exhausted" errors, this is due to a Mingw bug. Memory Exhausted (bin/ld.exe: out of memory allocating N bytes) Grepping the source tree for "monolib_dragigg" returns no results and the "ar" command itself carries no reference to "gcc_mswu\monolib_dragigg.o", so it is unclear why this issue occurs. The solution for the "The input line is too long" problem seems to solve the issue. (but give me command line too long at linking.)

If you don`t have MSYS, edit your PATH environment variable and make sure your PATH points to the bin directory of your mingw installation.

Note: MSYS\bin turns in to /bin, if you look from MinGW shell. (Alternatively, use MSYS to build wxWidgets, as described in build\msw\install.txt in the wxWidgets source tree). Remove these folders from your PATH and try again, it should work. It's probably because you have MSYS (or CYGWIN (or both)) installed and the MSYS\bin and/or cygwin\bin folder(s) are in your PATH, and this confuses mingw32-make. Process_begin: CreateProcess(NULL, -c "if not exist. Make (e=2): The system cannot find the file specified. Process_begin: CreateProcess(NULL, -c "if not exist gcc_mswu mkdir gcc_mswu". > cmd).Ĭhange the directory to the build\msw folder. See Downloading and installing wxWidgets. This problem is discussed in the troubleshooting notes, below. Otherwise you may lose fist-fulls of hair. If these directories are referenced, remove them from the path. The utility mingw32-make seems to have issues with programs in these directories. Make sure your path contain neither the MSYS nor CYGWIN directories or sub-directories. PLEASE NOTE: There is an issue which rapidly becomes apparent down below.

Please follow the steps described in Installing MinGW under Windows.
