Yes i followed his advice, and i tried the defualt console application with the target being console application, etc.
It comes down to the fact that I can't get
#include <iostream>
int main()
{
std::cout << "Hello world!" << std::endl;
return 0;
}
to work. I can't get anything to work, it's not just the gui applications.
For the hello world build log I got:
Switching to target: default
mingw32-g++.exe -L"C:\Program Files\CodeBlocks\lib" -o "C:\Documents and Settings\Owner.YOUR-99DDF15D27\My Documents\myprograms\console.exe" .objs\main.o -lSDL -lSDL_image -lSDLmain
C:\Program Files\CodeBlocks\lib/libmingw32.a(main.o):main.c:(.text+0x106): undefined reference to `WinMain@16'
collect2: ld returned 1 exit status
Process terminated with status 1 (0 minutes, 1 seconds)
I have, however noticed that it compiles fine when I click compile, but if I click build I get the message above.
Any help will be greatly appreciated,
Joe
P.S. sorry it took me so long, I got restricted from the computer for a bit....