<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: error 1523: Too many initializers in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/error-1523-too-many-initializers/m-p/2442798#M728964</link>
    <description>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.&lt;BR /&gt;&lt;BR /&gt;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.&lt;BR /&gt;&lt;BR /&gt;From /opt/ansic/lib/nls/msg/C/c.msgs-&lt;BR /&gt;&lt;BR /&gt;Error 1523&lt;BR /&gt;===============================================================================&lt;BR /&gt;&lt;BR /&gt;Too many initializers.&lt;BR /&gt;&lt;BR /&gt;An initializer list contains more initializers than elements in the object&lt;BR /&gt;being initialized.&lt;BR /&gt;&lt;BR /&gt;    int arr[3] = {0, 1, 2, 3};&lt;BR /&gt;    main()&lt;BR /&gt;    {&lt;BR /&gt;        static struct {int i; char c;} s = {4,'e',55};&lt;BR /&gt;    }&lt;BR /&gt;&lt;BR /&gt;Either increase the size of the object being initialized or decrease the&lt;BR /&gt;number of initializers.  For example,&lt;BR /&gt;&lt;BR /&gt;    int arr[4] = {0, 1, 2, 3};&lt;BR /&gt;or&lt;BR /&gt;    int arr[3] = {0, 1, 2};&lt;BR /&gt;and&lt;BR /&gt;    static struct {int i; char c; int j;} s = {4,'e',55};&lt;BR /&gt;or&lt;BR /&gt;    static struct {int i; char c;} s = {4,'e'};&lt;BR /&gt;</description>
    <pubDate>Wed, 06 Sep 2000 14:18:16 GMT</pubDate>
    <dc:creator>Mike Stroyan</dc:creator>
    <dc:date>2000-09-06T14:18:16Z</dc:date>
    <item>
      <title>error 1523: Too many initializers</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/error-1523-too-many-initializers/m-p/2442797#M728963</link>
      <description>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:&lt;BR /&gt;&lt;BR /&gt;/usr/bin/c89 -D__unix -D__hpux &lt;BR /&gt;-I/usr/local/geostan/common/geostan &lt;BR /&gt;-I/inf821ud4/incl/esql -w -c GeoRcdDb.c  &lt;BR /&gt;&lt;BR /&gt;The code snippet looks like:&lt;BR /&gt;&lt;BR /&gt;GeoRcdMethods GeoRcdDbMethods= {newDb,deleteDb, InitDb,NoAdrDtl, &lt;BR /&gt;MinRcdSizeDb,ImportDb, ExportDb,ExportInputDb,     &lt;BR /&gt;DumpDb, &lt;BR /&gt;AdrLineDb,LstLineDb, UpdAdrLineDb,UpdLstLineDb,  cs_cust_idDb,cs_cust_idSizDb, cs_hhold_idDb,cs_hhold_idSizDb,&lt;BR /&gt;AddressDb,AddressSizDb, &lt;BR /&gt;CityDb,CitySizDb,&lt;BR /&gt;StateDb,StateSizDb,&lt;BR /&gt;ZipDb,ZipSizDb,&lt;BR /&gt;UpdAddressDb,UpdAddressSizDb,&lt;BR /&gt;UpdCityDb,UpdCitySizDb,&lt;BR /&gt;UpdStateDb,UpdStateSizDb,&lt;BR /&gt;UpdZipDb,UpdZipSizDb,&lt;BR /&gt;UpdLatitudeDb,UpdLatitudeSizDb,&lt;BR /&gt;UpdLongitudeDb,UpdLongitudeSizDb,&lt;BR /&gt;UpdBlockIdDb,UpdBlockIdSizDb,&lt;BR /&gt;SetWhereDb,GetNextRecordDb,&lt;BR /&gt;UpdateRecordDb&lt;BR /&gt;};&lt;BR /&gt;&lt;BR /&gt;Thanks in advance for any help.&lt;BR /&gt;&lt;BR /&gt;Blake Mortensen&lt;BR /&gt;mortensen.blake@amstr.com&lt;BR /&gt;</description>
      <pubDate>Tue, 05 Sep 2000 19:16:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/error-1523-too-many-initializers/m-p/2442797#M728963</guid>
      <dc:creator>Blake Mortensen</dc:creator>
      <dc:date>2000-09-05T19:16:56Z</dc:date>
    </item>
    <item>
      <title>Re: error 1523: Too many initializers</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/error-1523-too-many-initializers/m-p/2442798#M728964</link>
      <description>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.&lt;BR /&gt;&lt;BR /&gt;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.&lt;BR /&gt;&lt;BR /&gt;From /opt/ansic/lib/nls/msg/C/c.msgs-&lt;BR /&gt;&lt;BR /&gt;Error 1523&lt;BR /&gt;===============================================================================&lt;BR /&gt;&lt;BR /&gt;Too many initializers.&lt;BR /&gt;&lt;BR /&gt;An initializer list contains more initializers than elements in the object&lt;BR /&gt;being initialized.&lt;BR /&gt;&lt;BR /&gt;    int arr[3] = {0, 1, 2, 3};&lt;BR /&gt;    main()&lt;BR /&gt;    {&lt;BR /&gt;        static struct {int i; char c;} s = {4,'e',55};&lt;BR /&gt;    }&lt;BR /&gt;&lt;BR /&gt;Either increase the size of the object being initialized or decrease the&lt;BR /&gt;number of initializers.  For example,&lt;BR /&gt;&lt;BR /&gt;    int arr[4] = {0, 1, 2, 3};&lt;BR /&gt;or&lt;BR /&gt;    int arr[3] = {0, 1, 2};&lt;BR /&gt;and&lt;BR /&gt;    static struct {int i; char c; int j;} s = {4,'e',55};&lt;BR /&gt;or&lt;BR /&gt;    static struct {int i; char c;} s = {4,'e'};&lt;BR /&gt;</description>
      <pubDate>Wed, 06 Sep 2000 14:18:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/error-1523-too-many-initializers/m-p/2442798#M728964</guid>
      <dc:creator>Mike Stroyan</dc:creator>
      <dc:date>2000-09-06T14:18:16Z</dc:date>
    </item>
  </channel>
</rss>

