- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- error 1523: Too many initializers
Operating System - HP-UX
1748176
Members
4224
Online
108758
Solutions
Forums
Categories
Company
Local Language
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Discussions
back
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-05-2000 12:16 PM
09-05-2000 12:16 PM
error 1523: Too many initializers
I'm receiving this error on code that has been recompiled successfully previously. Some libraries have been change (not directly related to the code receiving the error. The code has not changed. The compile command-line is:
/usr/bin/c89 -D__unix -D__hpux
-I/usr/local/geostan/common/geostan
-I/inf821ud4/incl/esql -w -c GeoRcdDb.c
The code snippet looks like:
GeoRcdMethods GeoRcdDbMethods= {newDb,deleteDb, InitDb,NoAdrDtl,
MinRcdSizeDb,ImportDb, ExportDb,ExportInputDb,
DumpDb,
AdrLineDb,LstLineDb, UpdAdrLineDb,UpdLstLineDb, cs_cust_idDb,cs_cust_idSizDb, cs_hhold_idDb,cs_hhold_idSizDb,
AddressDb,AddressSizDb,
CityDb,CitySizDb,
StateDb,StateSizDb,
ZipDb,ZipSizDb,
UpdAddressDb,UpdAddressSizDb,
UpdCityDb,UpdCitySizDb,
UpdStateDb,UpdStateSizDb,
UpdZipDb,UpdZipSizDb,
UpdLatitudeDb,UpdLatitudeSizDb,
UpdLongitudeDb,UpdLongitudeSizDb,
UpdBlockIdDb,UpdBlockIdSizDb,
SetWhereDb,GetNextRecordDb,
UpdateRecordDb
};
Thanks in advance for any help.
Blake Mortensen
mortensen.blake@amstr.com
/usr/bin/c89 -D__unix -D__hpux
-I/usr/local/geostan/common/geostan
-I/inf821ud4/incl/esql -w -c GeoRcdDb.c
The code snippet looks like:
GeoRcdMethods GeoRcdDbMethods= {newDb,deleteDb, InitDb,NoAdrDtl,
MinRcdSizeDb,ImportDb, ExportDb,ExportInputDb,
DumpDb,
AdrLineDb,LstLineDb, UpdAdrLineDb,UpdLstLineDb, cs_cust_idDb,cs_cust_idSizDb, cs_hhold_idDb,cs_hhold_idSizDb,
AddressDb,AddressSizDb,
CityDb,CitySizDb,
StateDb,StateSizDb,
ZipDb,ZipSizDb,
UpdAddressDb,UpdAddressSizDb,
UpdCityDb,UpdCitySizDb,
UpdStateDb,UpdStateSizDb,
UpdZipDb,UpdZipSizDb,
UpdLatitudeDb,UpdLatitudeSizDb,
UpdLongitudeDb,UpdLongitudeSizDb,
UpdBlockIdDb,UpdBlockIdSizDb,
SetWhereDb,GetNextRecordDb,
UpdateRecordDb
};
Thanks in advance for any help.
Blake Mortensen
mortensen.blake@amstr.com
1 REPLY 1
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-06-2000 07:18 AM
09-06-2000 07:18 AM
Re: error 1523: Too many initializers
There was an old error with that appearing when using "#pragma HP_ALIGN ". That was corrected in release A.09.27. Other initializer counting errors have been related to long long type or wide character strings. It would be helpful to know the version of you compiler and the exact definition of your GeoRcdMethods type.
Have a look at the output of "c89 -E" to see if some cpp macro has changed the meaning of that declaration or the definition of GeoRcdMethods.
From /opt/ansic/lib/nls/msg/C/c.msgs-
Error 1523
===============================================================================
Too many initializers.
An initializer list contains more initializers than elements in the object
being initialized.
int arr[3] = {0, 1, 2, 3};
main()
{
static struct {int i; char c;} s = {4,'e',55};
}
Either increase the size of the object being initialized or decrease the
number of initializers. For example,
int arr[4] = {0, 1, 2, 3};
or
int arr[3] = {0, 1, 2};
and
static struct {int i; char c; int j;} s = {4,'e',55};
or
static struct {int i; char c;} s = {4,'e'};
Have a look at the output of "c89 -E" to see if some cpp macro has changed the meaning of that declaration or the definition of GeoRcdMethods.
From /opt/ansic/lib/nls/msg/C/c.msgs-
Error 1523
===============================================================================
Too many initializers.
An initializer list contains more initializers than elements in the object
being initialized.
int arr[3] = {0, 1, 2, 3};
main()
{
static struct {int i; char c;} s = {4,'e',55};
}
Either increase the size of the object being initialized or decrease the
number of initializers. For example,
int arr[4] = {0, 1, 2, 3};
or
int arr[3] = {0, 1, 2};
and
static struct {int i; char c; int j;} s = {4,'e',55};
or
static struct {int i; char c;} s = {4,'e'};
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
News and Events
Support
© Copyright 2024 Hewlett Packard Enterprise Development LP