Sign in to follow this  

C++ and Allegro

This topic is 4710 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I'm using dev-c++ and the allegro devpak. When I first started with allegro, the compiler would throw a fit when I tried to compile an allegro program with C++ that used bitmap routines. Ever since then, I've been using C to code all of my allegro games and I was wondering if I could use C++. Thanks!

Share this post


Link to post
Share on other sites
The problem is that you are on win32, and your compiler's STL or some other C++ libraries are inadvertently pulling in some of the win32 API, which has its own BITMAP which conflicts with Allegro.

Read the win32 specifics section in the Allegro documentation for more information and how to fix it.

Mark

Share this post


Link to post
Share on other sites

This topic is 4710 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this