Allegro

This is a discussion on Allegro within the Game Programming forums, part of the General Programming Boards category; I have my all allegro extracted to C://Dev-C++/Allegro but every time i try to compile my program with the inclde ...

  1. #1
    Registered User
    Join Date
    Nov 2002
    Posts
    2

    Allegro

    I have my all allegro extracted to C://Dev-C++/Allegro but every time i try to compile my program with the inclde header #include <allegro.h> the program canot find the header so i pasted the header file in the include directory for dev-C++ and it reads it but then it cant read the header files in allegro.h can someone plzzzzZz help me

  2. #2
    TransparentMember correlcj's Avatar
    Join Date
    Jun 2002
    Posts
    378

    Did you try it like so...

    Try using #include "allegro.h" instead of <allegro.h>

    Using < > reads the code within your cpp directory (it includes all the code allegro would have had, e.g, MIN or MAX code) but if you want to include a .h file not within the immediate directory, it must be written like (ie; with " ") above in order to search for that file within the directory and include the missing source code.
    I hope this helps you!
    cj
    "Be formless, shapeless, like water... You put water into a cup, it becomes the cup, you put water into a bottle, it becomes the bottle, you put it in a teapot, it becomes the teapot... Now water can flow, or it can crash, be water my friend."
    -Bruce Lee

  3. #3
    fry
    fry is offline
    Registered User fry's Avatar
    Join Date
    Mar 2002
    Posts
    128
    The problem could be your pathname. I had a problem where it wouldn't work because of the "+" symbol. I had to change the directory name from "Dev C++" to "Dev cpp" and i got it to work.
    IDE: Dev C++ 5
    Lib: Allegro
    OS: Windows 2000

  4. #4
    Aristotle
    Guest
    Here's a good one: Don't waste time with Allegro. It is the "Fisher Price" of programming. Instead, go to www.winprog.org.

  5. #5
    I lurk
    Join Date
    Aug 2002
    Posts
    1,361
    Originally posted by Aristotle
    Here's a good one: Don't waste time with Allegro. It is the "Fisher Price" of programming. Instead, go to www.winprog.org.
    Now who told you that? It's an API, not a programming language... how can it be the "Fisher Price of programming"? That's the biggest sack of... ...potatos i've ever heard.

  6. #6
    Registered User
    Join Date
    Jun 2002
    Posts
    132
    Lol. Better read than post, right?
    Y3K Network http://www.y3knetwork.com
    Bringing the software of the future on the net.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Allegro in C for a newb
    By Ideius in forum C Programming
    Replies: 5
    Last Post: 12-29-2005, 03:36 PM
  2. Game Programming FAQ
    By TechWins in forum Game Programming
    Replies: 5
    Last Post: 09-29-2004, 02:00 AM
  3. double buffering for allegro
    By Leeman_s in forum C++ Programming
    Replies: 6
    Last Post: 09-12-2002, 02:45 PM
  4. Special Allegro Information
    By TechWins in forum Game Programming
    Replies: 12
    Last Post: 08-20-2002, 11:35 PM
  5. Allegro programming in a window
    By Person Man in forum Windows Programming
    Replies: 0
    Last Post: 11-16-2001, 02:23 PM

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