I'Ve a problem :shock:
I want to use allegro with Codeblocks,
With the dev-pack plugin I installed the allegro plugin,
but now I don't know how i can use allegro,
there is no option to start a new allegro projekt.
And if I starte an empty projekt and
try to use allegro
I get some errors
#include <allegro.h>
int main() {
allegro_int();
allegro_message("Hellow World!");
return 0;
}
END_OF_MAIN();
error: allegro_int() undecleare...
About the textout_ex function undeclared it's because that function was introduced somewhere in Allegro 4.1.x, and 4.2.0 inherited it. That would mean the package you got is surely Allegro 4.0.x or a very old 4.1.x.
The conflicting declaration of BITMAP is because of Windows headers. If you don't include a Windows header with 4.2.0 it shouldn't complain AFAIK, but if you really need to include a Windows header be sure to include them in this order:
#include <allegro.h>
#include <winalleg.h>
#include <windows.h> // or the Windows header you need
And also add in Project -> Build options, Compiler, #defines: