Original Post
I''ve been working with the book "Game Programming All in One, " and was compiling some of the source from the book with Codewarrior Pro Release 5, and I got the following error message:
Error: preprocessor #error directive
excpt.h line 23 #error ERROR: Only Mac or Win32 targets supported!
Now here''s the long explanation of my problem. It might help if you''ve read/are reading the book, but you don''t have to be. For anybody that has read/is reading the book, this is from the ''Monster'' program. The book tells you to use Microsoft Visual C++, but I really don''t see why any other compiler would create problems, as long as you''ve got the right headers and stuff, right? I think this may be part of my problem, I''m probably not including a file in my project that I should, or not placing a source file in my project folder, or just not putting including the right files in my project.
Anyway, so the book wanted me to create a ''Win32 Console Application'' project in Visual C++. I assume that in CodeWarrior, this equates to creating a project under ''Win32 C/C++ Application Stationary,'' then choosing ''C++ Console App'' from the Project Stationary window, then keeping all my files with that project.
The class that the book had me create is used to manipulate output in the console using some Windows-based functions to get keystrokes, output to any location within the console, and change the color of the text and background in the console.
My hunch is that the problem has something to do with windows.h (and not CodeWarrior), which is included in my header for the console manip class, as well as in a few other classes for ''Monster.'' If anybody has any input on this, I''d REALLY appreciate it; this is a road block in my game-programming endeavors (i.e. I have no idea how to fix this problem).
I am knowledgeable of C++, although compared to a professional probably not that knowledgeable yet (have completed a freshman year''s worth of Comp Sci courses at Case Western), but not completely knowledgeable of my compiler...I think that''s another problem.
Thanks for all your help, time, etc.
_________________
~Firestorm Fenix~