-
really odd error codes
I've just finished compiling the libraries for Allegro in Dev-C++4, and when I go to compile the demo project (code below), I get the error codes below:
1 demo.c undefined or invalid # directive
2 demo.c undefined or invalid # directive
3 demo.c undefined or invalid # directive
5 demo.c undefined or invalid # directive
6 demo.c undefined or invalid # directive
10 demo.c parse error before '\'
22 demo.c 'FALSE' was not declares in this score
23 demo.c 'FALSE' was not declares in this score
26 demo.c ...
...
The really wierd part is the undefined preprocessor directive. I'm absolutely positive that #including these:
#include <string.h>
#include <stdio.h>
#include <time.h>
#include <allegro.h>
#include "demo.h"
Sould have no rammifications on the compilation of the project.
For bandwidth's sake, I've chosen not to include the source for the demo, but I assure you that I have checked through it thoroughly and found no mistakes.
This even happened when I went to compile a regular C++ file - the same errors came when I tried to call iostream as a preprocessor include directive.
I can safely say that this all compiles fine because when I compiled it with my copy of minGW32, it worked great. Is there something wrong with Dev-C++, or am I doing something wrong here?
-
I am sorry I cannot be of more help, but the only thing I can think of is that you setup Dev-C++ wrong. Dev-C++ is just an IDE right? Are you using mingw32 for compiling?
-
Yes, I'm using mingw32 for compiling, but It's just that, I really messed up when I was installing Dev-C++, so I'll just run bcwipe and kill off everything I screwed up and start over:D
Thanks anyway for the advice, orbitz
-
Ever think of using the standard headers? Maybe that's the problem.
#include <cstring>
#include <cstdio>
#include <ctime>
-
YES!!!
It's ok now, i got allegro to work with Dev-C++4. Apparently, I screwed up the entire install by not installing the correct minGW32 package... oh well. At least now, I've got the latest stable beta.