Jump to content
  • Advertisement
Sign in to follow this  
Stompy9999

C++ and Allegro

This topic is 4959 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
Advertisement
I can assume that it would use C++ considering they are alike and if you have a C++ compiler you can compile C code.

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
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!