allegro doesn't like windows

This is a discussion on allegro doesn't like windows within the Game Programming forums, part of the General Programming Boards category; eh.. hullo. i'm trying to use allegro with a win32 app (for the first time, IIRC), and having some trouble... ...

  1. #1
    Evil Sock Puppet MadHatter's Avatar
    Join Date
    Nov 2002
    Posts
    176

    allegro doesn't like windows

    eh.. hullo.

    i'm trying to use allegro with a win32 app (for the first time, IIRC), and having some trouble... when i include <allegro.h> and <windows.h> i get the follow error upon compiling (with no code except an empty WinMain function)
    Code:
    main.cpp
    c:\program files\microsoft visual studio\vc98\include\allegro\system.h(29) : error C2371: 'BITMAP' : redefinition; different basic types
            c:\program files\microsoft visual studio\vc98\include\wingdi.h(486) : see declaration of 'BITMAP'
    Error executing cl.exe.
    
    bluh.exe - 1 error(s), 0 warning(s)
    clicking the error takes me to the system.h file in the allegro directory, and the "see declaration of 'BITMAP'" part takes me to the WINGDI.h file.

    i searched around some, but couldn't find any solution.. anyone know what's wrong..?

    btw, sorry if this is in the wrong forum... it was my understanding that most of the allegro people hung out here, so it was a good place to post this...

    //edit: nevermind... i fixed it : \ #include <winalleg.h> instead of <windows.h>... sorry.
    Last edited by MadHatter; 04-09-2003 at 06:55 PM.
    If I had a world of my own, everything would be nonsense. Nothing would be what it is, because everything would be what it isn't. And contrariwise, what it is, it wouldn't be, and what it wouldn't be, it would. You see?

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. how to make a windows application
    By crvenkapa in forum C++ Programming
    Replies: 3
    Last Post: 03-26-2007, 10:59 AM
  2. Script errors - bool unrecognized and struct issues
    By ulillillia in forum Windows Programming
    Replies: 10
    Last Post: 12-18-2006, 04:44 AM
  3. Menu Item Caption - /a for right aligned Accelerator?
    By JasonD in forum Windows Programming
    Replies: 6
    Last Post: 06-25-2003, 12:14 PM
  4. Windows Rant followed by installation question
    By confuted in forum A Brief History of Cprogramming.com
    Replies: 12
    Last Post: 06-21-2003, 05:42 PM
  5. Manipulating the Windows Clipboard
    By Johno in forum Windows Programming
    Replies: 2
    Last Post: 10-01-2002, 10:37 AM

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