thanks for the quick reply. here is the full build log
mingw32-g++.exe -Wall -fexceptions -w -x -O2 -O1 -O -w -g -tWV -tWR -tWM -tWD -tWC -tW -6 -5 -4 -3 -y -vi- -vi -v- -v -C -AU -AT -AK -A -K -b- -a16 -a8 -a4 -a2 -a1 -ps -pr -pm -pc -p -fp -ff -f- -f -Ve -Vx -xs -xp -xf -xdg -xd -x- -RT- -k- -d -r- -Ov -O-S -OS -Oi -Od -Oc /Zi -Dgdb.exe -c "C:\Documents and Settings\KrazyGrenade\My Documents\hey\main.cpp" -o obj\Debug\main.o
mingw32-g++.exe: `-b' must come at the start of the command line
Process terminated with status 1 (0 minutes, 0 seconds)
0 errors, 0 warnings
It looks like you try to use Borland C++ compiler flags for MinGW gcc.
Where do you set them? In "Build options -> Compiler settings -> Other settings" ?
If yes, remove them and use only the appropriate gcc-flags.
Btw you have many flags that don't make sense if used together (e.g. optimize for i386, for i486, for Pentium and for Pentioum Pro/II, or optimize for size and for speed, or windows application and console application).