Allegro.cc - Online Community

Allegro.cc Forums » Programming Questions » Allegro 5 initializer element is not constant

This thread is locked; no one can reply to it. rss feed Print
Allegro 5 initializer element is not constant
Estherial
Member #16,593
November 2016

Hello guys.I am trying to make a paint program with C. Using allegro 5.

#SelectExpand
1#include <allegro5\allegro.h> 2#include <allegro5\allegro_primitives.h> 3#include <allegro5\allegro_image.h> 4ALLEGRO_BITMAP *bmp,*arkaplan,*resim; 5ALLEGRO_DISPLAY *display; 6ALLEGRO_COLOR renk=al_map_rgb(0,0,0); //In this line i had a "initializer element is not constant" error

I can't upload all lines because it's a college project and our lecturer doesn't want a copy paste project. Maybe the people can copy paste it. How can i solve this problem?

Edgar Reynaldo
Major Reynaldo
May 2007
avatar

Estherial
Member #16,593
November 2016

Can you check your inbox please?

Edgar Reynaldo
Major Reynaldo
May 2007
avatar

Estherial
Member #16,593
November 2016

I sent another pm. You know why i can't use here. Can you check? Thanks a lot Edgar.

Go to: