#include <allegro.h> #include "mjpga.h" int main(void) { allegro_init(); install_keyboard(); set_color_depth(16); set_gfx_mode(640, 480, 0, 0); // play until the end of movie file "the_movie.dat" return play_movie("the_movie.dat", screen, NULL); } END_OF_MAIN();
and link with the libraries:
gcc -o example.exe example.c -lmjpga -lalmp3 -lalleg -lxvidcore