I can help you get it setup if you want?
But, I will need you to do a new minGW install of 3.4.5 version of GCC the 3.4.2 has been having some issues for me in the last two months (I use wxWidgets 2.8, this is where all the issues happen on.)
Step 1, rename the folder C:\mingw to mingw.save (this is for you to go back to if needed.)
Step 2A, Download, the new minGW installer 5.1.3,
http://prdownloads.sourceforge.net/mingw/MinGW-5.1.3.exe?download
Step 2B, Download, the make 3.80,
http://prdownloads.sf.net/mingw/mingw32-make-3.80.0-3.exe?download
Step 2C, Download, the gdb
http://prdownloads.sf.net/mingw/gdb-6.3-2.exe?download
Step 2D, Download, the which command
http://prdownloads.sf.net/gnuwin32/which-2.16-4.exe?download
Step 3. Remove minGW register entries, this makes it easier to install a second copy on minGW on the PC.
Create a file called "MinGW-remove.reg" using a text editor and paste the code below in it. Save it. Run it.
Note, the reg code below should work in NT 4.0 or later machines.
Note, this step is optional, so if you don't feel conformable doing it you can skip it. But, then be extra careful to pick the correct destination folder of C:\MinGW
REGEDIT4
[-HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\MinGW]
Step 4. run the installer, pick "Download Only"
A. Select "Candidate" Package
B1. Select "MinGW Base Tools"
B2. Select "g++ Compiler"
Step 5. run the installer, pick "Download & Install"
A. Select "Candidate" Package
B1. Select "MinGW Base Tools"
B2. Select "g++ Compiler"
C. Enter "C:\MinGW" as destination folder
Step 6. Run mingw32-make-3.80.0-3.exe
6B. Enter "C:\MinGW" as destination folder
Step 7. Run gdb-6.3-2.exe
7B. Enter "C:\MinGW" as destination folder
Now, we should have a known state of minGW install
Tim S
Note, My Directions is a highly modified version from
http://wiki.codeblocks.org/index.php?title=Installing_Code::Blocks_nightly_build_on_Windows
To continue on I need to know your OS? (XP, 9x or etc.)
Note, I also need to known if you are going to create projects using wxWidgets?
Warning, it is highly suggested that minGW, wxWidgets and Code::Blocks be installed in folders that do NOT have spaces in their names. In other words, C:\Program Files\codeblocks causes problems and should NOT be used.
Tim S
If the test GUI Project still does not work do this.
"Settings" -> "Compiler and Debugger"
Select "other settings"
Change "Compiler logging" to "Full command Line"
Cut and Paste your re-build [CTRL][F11] of your Test GUI Project in a message, below is what I got.
Tim S
-------------- Build: Debug in Test ---------------
mingw32-g++.exe -Wall -g -IC:\MinGW\include -c c:\test\Test\main.cpp -o obj\Debug\main.o
mingw32-g++.exe -LC:\MinGW\lib -o bin\Debug\Test.exe obj\Debug\main.o -lgdi32 -luser32 -lkernel32
Process terminated with status 0 (0 minutes, 0 seconds)
0 errors, 0 warnings
Open Dos Box and run following commands
cd c:\mingw\bin
which --all mingw32-g++
mingw32-g++.exe --version
What version does it give?
I get this
C:/MinGW/bin/mingw32-g++.EXE
mingw32-g++.exe (GCC) 3.4.5 (mingw special)
Copyright (C) 2004 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Do you have another minGW folder on your computer? Especially on the root folder like E:\mingw?
Do you have Cygwin on your computer?
Open Dos Box and run following commands
c:
cd c:\mingw\bin
mingw32-g++.exe --print-search-dirs
I got this or about this I had to edit it to make it readable
install: /mingw/lib/gcc/mingw32/3.4.5/
programs: =../libexec/gcc/mingw32/3.4.5/;../libexec/gcc/;/mingw/libexec/gcc/mingw32/3.4.5/;/mingw/libexec/gcc/mingw32/3.4.5/;/mingw/libexec/gcc/mingw32/;/mingw/lib/gcc/mingw32/3.4.5/;/mingw/lib/gcc/mingw32/;/usr/libexec/gcc/mingw32/3.4.5/;/usr/libexec/gcc/mingw32/;/usr/lib/gcc/mingw32/3.4.5/;/usr/lib/gcc/mingw32/;../lib/gcc/mingw32/3.4.5/../../../../mingw32/bin/mingw32/3.4.5/;../lib/gcc/mingw32/3.4.5/../../../../mingw32/bin/;/mingw/lib/gcc/mingw32/3.4.5/../../../../mingw32/bin/mingw32/3.4.5/;/mingw/lib/gcc/mingw32/3.4.5/../../../../mingw32/bin/
libraries: =../lib/gcc/mingw32/3.4.5/;../lib/gcc/;/mingw/lib/gcc/mingw32/3.4.5/;/usr/lib/gcc/mingw32/3.4.5/;../lib/gcc/mingw32/3.4.5/../../../../mingw32/lib/mingw32/3.4.5/;../lib/gcc/mingw32/3.4.5/../../../../mingw32/lib/;/mingw/lib/gcc/mingw32/3.4.5/../../../../mingw32/lib/mingw32/3.4.5/;/mingw/lib/gcc/mingw32/3.4.5/../../../../mingw32/lib/;/mingw/lib/mingw32/3.4.5/;/mingw/lib/;../lib/gcc/mingw32/3.4.5/../../../mingw32/3.4.5/;../lib/gcc/mingw32/3.4.5/../../../;/mingw/lib/gcc/mingw32/3.4.5/../../../mingw32/3.4.5/;/mingw/lib/gcc/mingw32/3.4.5/../../../;/lib/mingw32/3.4.5/;/lib/;/usr/lib/mingw32/3.4.5/;/usr/lib/
Note: The data right after install: is the most important part right now.
Tim S
"Settings" -> "Compiler and Debugger"
"Compiler Settings"
Tab "Other Options" add "-v"
Cut and Paste your re-build [CTRL][F11] of your Test GUI Project in a message, below is what I got.
-------------- Build: Debug in Test ---------------
mingw32-g++.exe -Wall -g -v -IC:\MinGW\include -c C:\test\Test\main.cpp -o obj\Debug\main.o
Reading specs from C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/specs
Configured with: ../gcc-3.4.5/configure --with-gcc --with-gnu-ld --with-gnu-as --host=mingw32 --target=mingw32 --prefix=/mingw --enable-threads --disable-nls --enable-languages=c,c++,f77,ada,objc,java --disable-win32-registry --disable-shared --enable-sjlj-exceptions --enable-libgcj --disable-java-awt --without-x --enable-java-gc=boehm --disable-libgcj-debug --enable-interpreter --enable-hash-synchronization --enable-libstdcxx-debug
Thread model: win32
gcc version 3.4.5 (mingw special)
C:/MinGW/bin/../libexec/gcc/mingw32/3.4.5/cc1plus.exe -quiet -v -IC:\MinGW\include -iprefix C:\MinGW\bin/../lib/gcc/mingw32/3.4.5/ C:\test\Test\main.cpp -quiet -dumpbase main.cpp -auxbase-strip obj\Debug\main.o -g -Wall -version -o C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp/cc2Xaaaa.s
ignoring nonexistent directory "C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../mingw32/include"
ignoring nonexistent directory "/mingw/lib/gcc/mingw32/3.4.5/../../../../mingw32/include"
#include "..." search starts here:
#include <...> search starts here:
C:/MinGW/include
C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/c++/3.4.5
C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/c++/3.4.5/mingw32
C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/c++/3.4.5/backward
C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include
C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/include
/mingw/lib/gcc/mingw32/3.4.5/../../../../include/c++/3.4.5
/mingw/lib/gcc/mingw32/3.4.5/../../../../include/c++/3.4.5/mingw32
/mingw/lib/gcc/mingw32/3.4.5/../../../../include/c++/3.4.5/backward
/mingw/lib/gcc/mingw32/3.4.5/../../../../include
/mingw/include
/mingw/lib/gcc/mingw32/3.4.5/include
/mingw/include
End of search list.
GNU C++ version 3.4.5 (mingw special) (mingw32)
compiled by GNU C version 3.4.5 (mingw special).
GGC heuristics: --param ggc-min-expand=99 --param ggc-min-heapsize=131006
C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../mingw32/bin/as.exe -o obj\Debug\main.o C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp/cc2Xaaaa.s
mingw32-g++.exe -LC:\MinGW\lib -o bin\Debug\Test.exe obj\Debug\main.o -lgdi32 -luser32 -lkernel32
Process terminated with status 0 (0 minutes, 1 seconds)
0 errors, 0 warnings
Tim S