In my .h file, I have: typedef struct YearAmt { NSString *year; int amount; } YearAmt;
extern NSString *testy; extern YearAmt gTest[]; In the corresponding .m file: NSString *testy = @"testy"; YearAmt gTest[] = {{testy, 10} /*, + others */}; I get "Initializer element is not constant. This pertains to the NSString* because if I directly substitute the following, no compile error happens: YearAmt gTest[] = {{@"testy", 10} What fundamental pertaining to C or C++ am I not getting? John Love Touch the Future! Teach! _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com