Is Allegro + DJGPP a no-no?

This is a discussion on Is Allegro + DJGPP a no-no? within the Game Programming forums, part of the General Programming Boards category; A month ago I bought "Sam's Teach Yourself C++ in 24 Hours." I didn't care about learning in 24 hours ...

  1. #1
    I am he who is the man! Stan100's Avatar
    Join Date
    Sep 2002
    Posts
    361

    Lightbulb Is Allegro + DJGPP a no-no?

    A month ago I bought "Sam's Teach Yourself C++ in 24 Hours." I didn't care about learning in 24 hours flat. I needed a reference book. I found the DJGPP compilerer in the back on CD. I loaded it and I thought everything was O.K. until I looked on this forum, and wanted to compile some one's source. When I saw the source code i noticed a line... #include <graphics.h> and #include <windows.h>. When I compiled it, DJGPP said no such directory had been found. I came to this site for help, and when I saw Allegro I said to myself "Hey I have that." I went crazy trying to tell my compilerer to look in the allegro folder. At one point I created a new blank and typed in...
    "Work you stupid compilier, All I want is <graphics.h> IS THAT SO HARD TO UNDERSTAND OR SHOULD I PUT A SEMICOLON AFTER IT? \N";

    So now I come to you fair reader, for it is up to you, can anyone help?
    ~Stan100

  2. #2
    RoD
    RoD is offline
    Redundantly Redundant RoD's Avatar
    Join Date
    Sep 2002
    Location
    Missouri
    Posts
    6,331
    its because i compile in Visual C++ (Microsofts).

  3. #3
    Registered User JoshG's Avatar
    Join Date
    Mar 2002
    Posts
    326
    DJGPP is for DOS, it would not make sense to include windows.h. Allegro, graphics.h? Try allegro.h.

  4. #4
    Rambling Man
    Join Date
    Jan 2002
    Posts
    1,050
    This is all I have to say---

    www.bloodshed.net



    hint hint use DevC++ (4.01) instead...

  5. #5
    Registered User Kirdra's Avatar
    Join Date
    Aug 2002
    Posts
    105
    Look at "DJGPP" and "Allegro" tutorials...

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Why are DJGPP, Allegro and ... are free?
    By mehdi_etebari in forum C Programming
    Replies: 9
    Last Post: 06-04-2005, 09:36 AM
  2. Game Programming FAQ
    By TechWins in forum Game Programming
    Replies: 5
    Last Post: 09-29-2004, 03:00 AM
  3. Special Allegro Information
    By TechWins in forum Game Programming
    Replies: 12
    Last Post: 08-21-2002, 12:35 AM
  4. I got DJGPP, but now for Allegro
    By Garfield in forum Game Programming
    Replies: 12
    Last Post: 06-07-2002, 07:35 PM
  5. DJGPP Allegro, using grabber and fonts
    By doubleanti in forum C++ Programming
    Replies: 0
    Last Post: 08-29-2001, 02:02 PM

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