|
![](/i/fill.gif) |
Severi Salminen <sev### [at] NOT_THISsiba fi> wrote in message
news:404f1316$1@news.povray.org...
> Next scene gives an error "Expected 'undeclared identifier', empty array
> found instead" when I try to render it. Aren't A[0] and A[1] undeclared
> identifiers and shouldn't Pov-Ray turn them "into global identifiers of
> the type determined by the data which is read".
<snip>
But A[0] & A[1] are declared...
> #declare A = array[2];
And since it is uninitialized, the error is correct.
Try
#fopen P_File "test.dat" read
#read (P_File, A0,A1)
#declare A[0] = A0;
#declare A[1] = A1;
#fclose P_File
RG
Post a reply to this message
|
![](/i/fill.gif) |