Thread: Allegro

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Registered User
    Join Date
    May 2002
    Posts
    208

    Allegro

    Anyone know why this won't compile

    Code:
    #include <allegro.h> 
    
    int main() 
    { 
    allegro_init(); 
    install_keyboard(); 
    set_gfx_mode(GFX_VGA,320,200,0,0); 
    textout_centre(screen,font,"Ready. Beep.",160,100,255); 
    readkey(); 
    return 0; 
    }
    i get the following errors
    Code:
    7 main.cpp 
    `GFX_VGA' undeclared (first use this function) 
    7 main.cpp 
    (Each undeclared identifier is reported only once 
    7 main.cpp 
    for each function it appears in.)
    and the linker errors of
    Code:
    g++: c:\my documents\jeff\tutorial\main.o: No such file or directory 
    g++: file path prefix `C:\DEV-C_~1\BIN\' never used
    thanx for your help??

    by the way I am using dev c++ IDE
    Last edited by kas2002; 06-17-2002 at 01:30 PM.

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, 04: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, 03:23 PM