really odd error codes

This is a discussion on really odd error codes within the C++ Programming forums, part of the General Programming Boards category; I've just finished compiling the libraries for Allegro in Dev-C++4, and when I go to compile the demo project (code ...

  1. #1
    Registered User dead_cell's Avatar
    Join Date
    Jun 2002
    Posts
    44

    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?
    Last edited by dead_cell; 12-28-2002 at 08:09 PM.
    Linux is great - It does infinite loops in five seconds!

    ~Linus Torvalds

  2. #2
    Registered User
    Join Date
    Nov 2002
    Posts
    491
    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?

  3. #3
    Registered User dead_cell's Avatar
    Join Date
    Jun 2002
    Posts
    44
    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

    Thanks anyway for the advice, orbitz
    Linux is great - It does infinite loops in five seconds!

    ~Linus Torvalds

  4. #4
    I lurk
    Join Date
    Aug 2002
    Posts
    1,361
    Ever think of using the standard headers? Maybe that's the problem.

    #include <cstring>
    #include <cstdio>
    #include <ctime>

  5. #5
    Registered User dead_cell's Avatar
    Join Date
    Jun 2002
    Posts
    44

    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.
    Linux is great - It does infinite loops in five seconds!

    ~Linus Torvalds

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Help C program that reads Odd numbers and evens
    By Cyberman86 in forum C Programming
    Replies: 4
    Last Post: 02-27-2009, 11:59 AM
  2. adding odd numbers only
    By CheyenneWay in forum C++ Programming
    Replies: 12
    Last Post: 05-06-2004, 01:22 AM
  3. new type: even or odd
    By nbo10 in forum C++ Programming
    Replies: 7
    Last Post: 09-05-2003, 12:17 PM
  4. Replies: 4
    Last Post: 03-03-2003, 03:52 PM
  5. Homework help
    By Jigsaw in forum C++ Programming
    Replies: 2
    Last Post: 03-06-2002, 05:56 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21