windows.h doesn't work for me

Aug 31, 2012 at 9:50pm
To code certain applications, I have to include windows.h
#include <windows.h>
But it just gives me an error, the IDE I'm using is Code::Blocks, and the compiler that I'm using is GNU GCC Compiler, if that makes any difference.
I feel ashamed hard-coding in Code::Blocks, but it's a good way to
learn, in my opinion anyway.
Aug 31, 2012 at 9:59pm
You are using MinGW on Windows?
Aug 31, 2012 at 10:06pm
Isn't the header file named <Windows.h> ?
Sep 1, 2012 at 7:11pm
I'm sure it's just <windows.h> but I figured the problem, I'm on linux, that would mess up that include, right?
Sep 1, 2012 at 7:23pm
I'm sure it's just <windows.h> but I figured the problem, I'm on linux, that would mess up that include, right?

Well, of course. If you want to compile for Windows, you need to install MinGW first.
Topic archived. No new replies allowed.