Article View: comp.std.c
Article #2128Aggregate Initialization **NOT**
From: wagner
Date: Thu, 15 Oct 1992 10:17
Date: Thu, 15 Oct 1992 10:17
20 lines
1053 bytes
1053 bytes
Hi
I have a small problem with my compiler, and I hope someone out there can be of
assistance. I am using a DEC 5100 running Ultrix V4.2, this is a recent
upgrade. My problem is with the C compiler.
In my code I have a statment similar to the following:
int array_name[] = {value,value,value,...};
Now, this statement is correct in every reference I can find, but when I
compile it the compiler returns an error and says that aggregate initialization
is not allowed.
My question is: Is this a bug with my compiler or is it just a sucky compiler!
I would appreciate any suggestions as how to either fix this or get around it.
Thanks
Kenneth Wagner
Technical Details
Message-ID:
<1992Oct14.171711.1655@lub001.lamar.edu>Path:
arc1-ca.pugleaf.net!sparky!uunet!ogicse!news.u.washington.edu!uw-beaver!rice!lub001.lamar.edu!wagnerShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!ogicse!news.u.washington.edu!uw-beaver!rice!lub001.lamar.edu!wagner From: wagner@lub001.lamar.edu Newsgroups: comp.std.c Subject: Aggregate Initialization **NOT** Message-ID: <1992Oct14.171711.1655@lub001.lamar.edu> Date: 15 Oct 92 10:17:11 GMT Article-I.D.: lub001.1992Oct14.171711.1655 Organization: Lamar University - Beaumont Lines: 20