Hi All,
I am trying to compile a DirectX program by using the project wizard in Code::Blocks. I have set up all the paths to the libraries and the global variables as found in a short tutorial, but I am getting the following error when I try to compile:
k:\mingw\bin\..\lib\gcc\mingw32\4.5.2\..\..\..\libmingw32.a(main.o):main.c undefined reference to `WinMain@16'
I've set the -mwindows option in Project->Build Options->Linker Settings, which I found by Googling, but I still get the error.
Any suggestions?