I am trying to include ddraw.h to my file.
Then the compiler says:
In file included from windef.h
from windows.h
from directxmain.c
#error Must define a target architecture.
directxmain.c is my source file which includes windows.h and ddraw.h (and some irrelevant) the windef.h is obviously included by windows.h. And the phrase "#error Must define a target architecture" is in windef.h - SO WHY THE HECK DOES THIS ONLY OCCURE WHEN IM INCLUDING DDRAW.H?
My IDE is Dev-C++ which uses MingW to compile - right?
Heres what someone answered me:
The target platform should be win32 executable, the compiler is capable
of creating numerous targets, we want win 32 executable. Please read
your compiler manual cover to cover, it's only a couple thousands pages.
Ok, nice 1 - what is this man trying to tell me?
Which is the right manual to read and where to get it? Im willing to read it but im not sure what im looking 4. - So how do i tell mingw to compile a win32 program and not some win16?
PLZ try to help me ur my last hope....
thanks
Ace
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi folks,
this problem really drives me mad, so plz help:
I am trying to include ddraw.h to my file.
Then the compiler says:
In file included from windef.h
from windows.h
from directxmain.c
#error Must define a target architecture.
directxmain.c is my source file which includes windows.h and ddraw.h (and some irrelevant) the windef.h is obviously included by windows.h. And the phrase "#error Must define a target architecture" is in windef.h - SO WHY THE HECK DOES THIS ONLY OCCURE WHEN IM INCLUDING DDRAW.H?
My IDE is Dev-C++ which uses MingW to compile - right?
Heres what someone answered me:
The target platform should be win32 executable, the compiler is capable
of creating numerous targets, we want win 32 executable. Please read
your compiler manual cover to cover, it's only a couple thousands pages.
Ok, nice 1 - what is this man trying to tell me?
Which is the right manual to read and where to get it? Im willing to read it but im not sure what im looking 4. - So how do i tell mingw to compile a win32 program and not some win16?
PLZ try to help me ur my last hope....
thanks
Ace
look in a make file from a vc++ project.
(and any that it includes)
add something like -D_X86_=1 as a compiler option or in the makefile .
grepping documentaion is just as good as reading, and often faster.