----- Original Message -----
From: "Erik Hofman" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, April 02, 2002 1:53 PM
Subject: Re: [Flightgear-devel] UIUC compile problem


> Robert Deters wrote:
>
> >>
> >>Does anybody have any idea of how to solve this??
> >>
> >>Erik
> >>
> >>
> > What are you using to compile it?  It compiles fine with gcc version
2.96
> > under Redhat 7.1.
>
> If i change uiuc_menu.cpp (line 1412)
>
> CXfabetaf_aArray[CXfabetaf_index]      = datafile_xArray;
> CXfabetaf_betaArray[CXfabetaf_index]   = datafile_yArray;
> CXfabetaf_CXArray[CXfabetaf_index]     = datafile_zArray;
> CXfabetaf_nAlphaArray[CXfabetaf_index] = datafile_nxArray;
> CXfabetaf_nbeta[CXfabetaf_index]       = datafile_ny;
>
> to:
>
> CXfabetaf_aArray[CXfabetaf_index][0][0]   = datafile_xArray[0][0];
> CXfabetaf_betaArray[CXfabetaf_index][0]   = datafile_yArray[0];
> CXfabetaf_CXArray[CXfabetaf_index][0][0]  = datafile_zArray[0][0];
> CXfabetaf_nAlphaArray[CXfabetaf_index][0] = datafile_nxArray[0];
> CXfabetaf_nbeta[CXfabetaf_index]          = datafile_ny;
>
> it works, but I doubt this is th intention of the code.
> :-(
>
> BTW, what *is* the intention of the code, assigning pointers, copying
> one entry, or copying the complete table?
>
> Erik

The purpose is to copy the complete table.  What I have in uiuc_menu is just
a short cut instead of writing a bunch of for loops to copy multiple
dimension arrays.  But since it looks like this doesn't work for all
compilers, I guess I be writing some for loops.

Rob


_______________________________________________
Flightgear-devel mailing list
[EMAIL PROTECTED]
http://mail.flightgear.org/mailman/listinfo/flightgear-devel

Reply via email to