Sign in to follow this  

compiler that upports allegro

This topic is 4196 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

Hello. My problem is simple: I need a C compiler that supports the allegro graphics library. Any (helpful) help would be helpful and appreciated. *I've already searched google*

Share this post


Link to post
Share on other sites
I think your google-foo is no good. Also, from the allegro site, you can see that they have packages for Borland Builder, MinGW (gnu-c++), and all versions of Microsoft VC++ from 6.0 to 8.0. So, any of those compilers will support allegro.

Share this post


Link to post
Share on other sites
I am not aware of an compiler which does NOT support Allegro - although Allegro has historically mostly been compiled either with gcc or MSVC. Any other compilers are just guesswork.

If your compiler's output is linkable with GCC or MSVC code, then you can build Allegro using one of those and your app using something completely different if you like.

For embedded / unusual platforms, you might need to change the build settings somewhat (for example, to cross-compile).

Mark

Share this post


Link to post
Share on other sites
Ok. For example, I'm going to run the famous Hello World program. I'd type:

#include <stdio.h>

main()
{
printf("hello world!\n");
getchar();
return 0;

}


id hit the compile button, it compiles, press the run button and the run, compile, C+R, rebuild, and debug buttons blink. This code ran a few weeks ago but this is the only reaction i get now.

Share this post


Link to post
Share on other sites
I'd suggest using the latest code::blocks with MinGW (gnu c) and Allegro, very easy to install:

for anyone who wants to know:

make sure you include the 'lib' folder and 'include' folder within the Build options.

from the menu:

1) Project
2) Build options
3) click on 'Linker' tab
4) Add allegro 'lib' files
5) 'Directories' tab
6) Add allegro 'include' file path to Compiler and Linker options

code a basic C program to test

ex:

#include <allegro.h>

int main()
{
allegro_init();

allegro_message("Yay, it works!");

return 0;
}
END_OF_MAIN()

don't forget to put the required allegro dll in your project folder such as alleg42.dll

Share this post


Link to post
Share on other sites

This topic is 4196 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