Mail Archives: djgpp/1999/05/20/18:40:31
Message-ID: | <3742A477.41DAF3A3@connect.ab.ca>
|
Date: | Wed, 19 May 1999 11:45:59 +0000
|
From: | Tom Fjellstrom <tomcf AT connect DOT ab DOT ca>
|
X-Mailer: | Mozilla 4.51 [en] (Win95; I)
|
X-Accept-Language: | en
|
MIME-Version: | 1.0
|
Newsgroups: | comp.os.msdos.djgpp
|
Subject: | Allegro problem
|
NNTP-Posting-Host: | pppa104.connect.ab.ca
|
X-Trace: | 19 May 1999 11:38:26 GMT, pppa104.connect.ab.ca
|
Lines: | 40
|
To: | djgpp AT delorie DOT com
|
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp
|
Reply-To: | djgpp AT delorie DOT com
|
Hello,
I've been having this really
annoying problem lately.
whenever i try to initialize an
allegro gui 'MENU' or 'DIALOG'
struct with a variable or makecol()
i get a fatal error.
so if I had this var:
char *curly = "i am joe";
and this struct:
DIALOG larry[] = {
{ d_text_proc, 0, 0, 0, 0, makecol(255,255,255), makecol(0,0,0), 0, 0,
0, 0, curly },
{ NULL }
};
I get these errors:
initializer element for `larry[0].fg' is not constant
initializer element for `larry[0].bg' is not constant
initializer element for `larry[0].dp' is not constant
Has any one else had this problem?
I know it doesn't happen when i initialize my
own structs this way.
Is it a problem/feature of allegro?
or is it my fault some how?
thanks for any help.
--
"If i wasn't so stupid, I'd be smarter." - unknown :-)
- Raw text -