Allegro.cc - Online Community

Allegro.cc Forums » Installation, Setup & Configuration » Visual studio express 2013 + allegro 5

This thread is locked; no one can reply to it. rss feed Print
Visual studio express 2013 + allegro 5
pipilek
Member #15,513
February 2014

Hello, I've been planning to start with allegro 5, but I've met some issues, I don't know the reason of them... I did everything in this tutorial, except static linking, coz I don't really need it for now.

http://wiki.allegro.cc/index.php?title=Windows,_Visual_Studio_2010_and_Allegro_5

The thing is I did everything it said and I had problems... I tried to compile this

#include <allegro.h>
int main(){
allegro_init();
allegro_exit();
return 0;
}
END_OF_MAIN();

but I had a few errors... I've noticed also #include <allegro.h> wasn't being recognized... so I changed it to this:

#include <allegro5\allegro.h>
int main(){
allegro_init();
allegro_exit();
return 0;
}
END_OF_MAIN();

then #include worked, but init;exit;end of main; were the issue... it says indentifer not found...I did everything they told me, please help!

PS: <allegro.h> should work right? so why it isn't? I had to make it <allegro5/allegro.h> instead...

I had these problems on VS express 2010 too

every help will be much appreciated.

pkrcel
Member #14,001
February 2012

You have thigns mixed up, followiing an Allegro5 tutorial but trying to compile Allegro 4 code, it seems.

Either change the code or teh turotiral, thou I would suggest to stick with Allegro5 of course.

It is unlikely that Google shares your distaste for capitalism. - Derezo
If one had the eternity of time, one would do things later. - Johan Halmén

pipilek
Member #15,513
February 2014

damn I'm so dumb... I didn't expect it may contain different syntax... thank you so much :) ofc I'll stick to allegro5 ;)

Aikei_c
Member #14,871
January 2013
avatar

Note that if you are using prebuilt binaries, you need the binaries specifically built under visual studio 2013, others will not work.

Go to: