Mail Archives: djgpp/1999/07/07/21:34:56
From: | "Christopher Nelson" <paradox AT gye DOT satnet DOT net>
|
To: | <djgpp AT delorie DOT com>
|
Subject: | Re: bison variable access
|
Date: | Wed, 7 Jul 1999 14:10:00 -0600
|
Message-ID: | <01bec8b4$b1572760$LocalHost@thendren>
|
MIME-Version: | 1.0
|
X-Priority: | 3
|
X-MSMail-Priority: | Normal
|
X-Mailer: | Microsoft Outlook Express 4.71.1712.3
|
X-MimeOLE: | Produced By Microsoft MimeOLE V4.71.1712.3
|
Reply-To: | djgpp AT delorie DOT com
|
>Yes!..that is what I meant. Ive done that with the functions, but when
>I try to do it with the variables, my compiler (DJGPP for dos) keeps
>telling me that I cannot assign the pointer of my variable to a pointer
>because it is not constant.
>
>struct vars
>{
>char *vname;
>double *var;
>};
>
>struct vars variables[]
>= {
> *drive,
> *room,
> *picture,
> *house
> };
>
>and this does not work.
this may be a silly question, but i had this same problem when i was
doing something completely different, but ... Are you defining these
variables BEFORE you initialize them? And if so, does the compiler know
about it (e.g. are they defined in a nother module, then you need a header
file filled with externs for these variables.
-={C}=-
- Raw text -