John Summerfield wrote:
>>
> 88 struct tradeTable
> 89 {
> 90 long tradeSize, tradeCount;
> 91 struct tradeNode *tradeData[];
> 92 };
> 93 struct tradeTable *root=NULL;
> /var/share/pgtest/src/c/yahoo.load.pgc:91: array size missing in `tradeData'
>
> gcc 3.01 does what I want - define a template for an area and leave me to worry
>about making sure it's big enough.
does that work in egcs? gcc-2.7.2?
what about using
struct tradeNode **tradeData;
instead? You can reference it later as an array.
I use the **a instead of *a[] in all my code,
which compiles with gcc-2.7.2, gcc-2.8.1, and
HP's ANSI c (in HPUX-10.20).
-Thomas
_______________________________________________
Redhat-devel-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-devel-list