Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
subscripted value is neither array nor pointer?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

subscripted value is neither array nor pointer?



hiya,

...I get the error "subscripted value is neither array nor pointer " when trying to compile the following code via "gcc matrix.c":

typedef struct _D3DMATRIX {
  union {
      struct {
          float        _11, _12, _13, _14;
          float        _21, _22, _23, _24;
          float        _31, _32, _33, _34;
          float        _41, _42, _43, _44;
      };
      float m[4][4];
  };
} D3DMATRIX;
main()
{
 D3DMATRIX m;
 m[0][0] = 1.0f;
}

...basically, I'm trying to compile the directx OpenGLwrapper from sourceforge.net...the author thinks that this will compile with codewarrior (which I don't have a current version of), but won't compile with gcc, due to a bug...is this true? Or is there a way around it?

tanx,
jamie
_______________________________________________
unix-porting mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/unix-porting
Do not post admin requests to the list. They will be ignored.





Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.