User forums > Help
Using Allegro with CodeBlocks
mattireland:
Hi,
I've just downloaded Code::Blocks after previously using Bloodshed Dev C++, because the former was recommended to me recently.
I was wondering if it was possible To use Allegro (http://www.talula.demon.co.uk/allegro/) with Code::Blocks and how to go about doing it because I have been unable to do this so far.
Thank you very much,
Matt. Ireland
Michael:
Hello,
what did you do?
If you do not want to compile the sources by yourself, did you try to download the binary version for mingw e.g., allegro-mingw-4.2.2.zip? Did it not work?
Best wishes,
Michael
mattireland:
Thanks very much for the prompt and helpful reply.
I downloaded the DevPack which I was previously using with DevC++ and then clicked onto Tools --> DevPacks and configured it appropriately - I hope (the directory being C:\DevCpp\Packages). The Allegro DevPack didn't show up though. I assume that I am doing something seriously wrong but not sure what?
Thanks again,
Matt. I
EDIT: UPDATE
I now have Allegro installed - that was me being noobish and not realising that you had to right-click the package and click download and install but with the following code:
--- Code: ---#include <allegro.h>
int main(){
allegro_init();
install_keyboard();
set_gfx_mode( GFX_AUTODETECT, 640, 480, 0, 0);
readkey();
return 0;
}
END_OF_MAIN();
--- End code ---
The compiler returns an error on practically every line. I'm not sure what I'm doing wrong. It's not coding because this is virtually the same as the Allegro tutorial that I'm following so I assume it has to be something that I'm doing wrong with the compiler. Thanks!
Michael:
Hello,
what I will do is to give a try to a binary mingw release instead of use the devpack.
May be something goes wrong or some #include and lib are missing.
I will give it a try this evening to see if I will get the same problems.
Best wishes,
Michael
PsYhLo:
what are the errors paste them here
Navigation
[0] Message Index
[#] Next page
Go to full version