<?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/4760608#M657130</link>
    <description>IÂ´m sorry about my posts. You are right, the compiler that i have been used is a HP C/HP-UX compiler (i canÂ´t see the exact version because i use an rare aplication to compile).&lt;BR /&gt;&lt;BR /&gt;Regards and thx.&lt;BR /&gt;&lt;BR /&gt;P.S.: &lt;BR /&gt;&amp;gt; [...] you're trying to use an initializer&lt;BR /&gt;&amp;gt; on an unallocated array.&lt;BR /&gt;&lt;BR /&gt;I tried other posibilities because the first array declaration didnÂ´t work and i thought this declaration should work.</description>
    <pubDate>Thu, 03 Mar 2011 15:49:15 GMT</pubDate>
    <dc:creator>edu martin lucas</dc:creator>
    <dc:date>2011-03-03T15:49:15Z</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/4760603#M657125</link>
      <description>Hi, i can´t understand the problem in my code...&lt;BR /&gt;&lt;BR /&gt;Could you help me with this error??&lt;BR /&gt;&lt;BR /&gt;char *descripcion_errorcd_2 [] = { &lt;BR /&gt; "", &lt;BR /&gt; "",&lt;BR /&gt; "",&lt;BR /&gt; "Deal successfully logged in STAR ",&lt;BR /&gt; "Deal exceeded clients credit line in STAR ", &lt;BR /&gt; "ERROR trading with STAR ", /* 5 */&lt;BR /&gt; "WARNING: Deal logged in STAR. Not all blocking operations cancelled ",&lt;BR /&gt;&lt;BR /&gt; /* otros mensajes para IFOPE y algunas del LOG*/&lt;BR /&gt;&lt;BR /&gt; "IFJ73100 Error al descontratar ope_nu es 0 ",&lt;BR /&gt; "IFJ73100 Error al descontratar: %d ",&lt;BR /&gt; "Operacion Rechazada", &lt;BR /&gt; "IFJ73100 Error rellenando estructuras para contratar", /* 10 */&lt;BR /&gt; "IFJ73100 Error en la contratacion de la operacion: %ld ",&lt;BR /&gt; "IFJ73100 Error en consulta de estado del mercado", // "Error consulting currency market"&lt;BR /&gt; "IFJ73100 Mercado deshabilitado", // "Currency Market disabled"&lt;BR /&gt; "IFJ73100 Error al liberar la operacion: %ld , %ld", &lt;BR /&gt;    "Operacion liberada en STAR", /* 15 */&lt;BR /&gt; "IFJ73100 Error en la contratacion del plazo: %ld ",&lt;BR /&gt; "IFJ73100 Error en la contratacion spot: %ld ",&lt;BR /&gt; "IFJ73100 Error de BBDD en la contratacion",&lt;BR /&gt; "IFJ73100 Error al confirmar la operacion: %ld ", &lt;BR /&gt; "Operacion confirmada en STAR",/*20*/&lt;BR /&gt; "Error en la obtencion del producto",&lt;BR /&gt; "Error al realizar ROLLBACK/COMMIT en la confirmación",&lt;BR /&gt; "Error al realizar ROLLBACK/COMMIT en la liberación",&lt;BR /&gt; "",&lt;BR /&gt; "Operacion confirmada en Excedido", /*25*/&lt;BR /&gt; "Operacion liberada en Excedido" &lt;BR /&gt;};</description>
      <pubDate>Thu, 03 Mar 2011 08:43:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/error-1523-too-many-initializers/m-p/4760603#M657125</guid>
      <dc:creator>edu martin lucas</dc:creator>
      <dc:date>2011-03-03T08:43:55Z</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/4760604#M657126</link>
      <description>Hola Edu,&lt;BR /&gt;&lt;BR /&gt;Please check this, please find Error 1523:&lt;BR /&gt;&lt;A href="http://docs.hp.com/en/5921/errors.html" target="_blank"&gt;http://docs.hp.com/en/5921/errors.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Rgds</description>
      <pubDate>Thu, 03 Mar 2011 09:57:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/error-1523-too-many-initializers/m-p/4760604#M657126</guid>
      <dc:creator>Jose Mosquera</dc:creator>
      <dc:date>2011-03-03T09:57:34Z</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/4760605#M657127</link>
      <description>The short answer is that you're trying to use an initializer on an unallocated array. Replace:&lt;BR /&gt;&lt;BR /&gt;*descripcion_errorcd_2[]&lt;BR /&gt;&lt;BR /&gt;with:&lt;BR /&gt;&lt;BR /&gt;*descripcion_errorcd_2[27]&lt;BR /&gt;&lt;BR /&gt;And it should work for you.</description>
      <pubDate>Thu, 03 Mar 2011 13:02:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/error-1523-too-many-initializers/m-p/4760605#M657127</guid>
      <dc:creator>mvpel</dc:creator>
      <dc:date>2011-03-03T13:02:57Z</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/4760606#M657128</link>
      <description>Thx all for the anwsers. I tried what you posted but it didnÂ´t work neither. Finally, i change my array like that and it works!! :&lt;BR /&gt;&lt;BR /&gt;char *descripcion_errorcd_2 [] = { &lt;BR /&gt; "", &lt;BR /&gt; "",&lt;BR /&gt; "",&lt;BR /&gt; "Deal successfully logged in STAR ",&lt;BR /&gt; "Deal exceeded clients credit line in STAR ", &lt;BR /&gt; "ERROR trading with STAR ", /* 5 */&lt;BR /&gt; "WARNING: Deal logged in STAR. Not all blocking operations cancelled ",&lt;BR /&gt;&lt;BR /&gt; /* otros mensajes para IFOPE y algunas del LOG*/&lt;BR /&gt;&lt;BR /&gt; "IFJ73100 Error al descontratar ope_nu es 0 ",&lt;BR /&gt; "IFJ73100 Error al descontratar: %d ",&lt;BR /&gt; "Operacion Rechazada", &lt;BR /&gt; "IFJ73100 Error rellenando estructuras para contratar", /* 10 */&lt;BR /&gt; "IFJ73100 Error en la contratacion de la operacion: %ld ",&lt;BR /&gt; "IFJ73100 Error en consulta de estado del mercado", // "Error consulting currency market"&lt;BR /&gt; "IFJ73100 Mercado deshabilitado", // "Currency Market disabled"&lt;BR /&gt; "IFJ73100 Error al liberar la operacion: %ld , %ld", &lt;BR /&gt;    "Operacion liberada en STAR", /* 15 */&lt;BR /&gt; "IFJ73100 Error en la contratacion del plazo: %ld ",&lt;BR /&gt; "IFJ73100 Error en la contratacion spot: %ld ",&lt;BR /&gt; "IFJ73100 Error de BBDD en la contratacion",&lt;BR /&gt; "IFJ73100 Error al confirmar la operacion: %ld ", &lt;BR /&gt; "Operacion confirmada en STAR",/*20*/&lt;BR /&gt; "Error en la obtencion del producto",&lt;BR /&gt; "Error al realizar ROLLBACK/COMMIT en la confirmaciÃ³n",&lt;BR /&gt; "Error al realizar ROLLBACK/COMMIT en la liberaciÃ³n",&lt;BR /&gt; ""&lt;BR /&gt;};&lt;BR /&gt;&lt;BR /&gt;char *descripcion_error_excedido [] = {&lt;BR /&gt; "Operacion confirmada en Excedido", &lt;BR /&gt; "Operacion liberada en Excedido" &lt;BR /&gt;};&lt;BR /&gt;&lt;BR /&gt;P.S.: i tried with that too:&lt;BR /&gt;char *descripcion_errorcd_2 [26]&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 03 Mar 2011 15:01:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/error-1523-too-many-initializers/m-p/4760606#M657128</guid>
      <dc:creator>edu martin lucas</dc:creator>
      <dc:date>2011-03-03T15:01:00Z</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/4760607#M657129</link>
      <description>&lt;!--!*#--&gt;&amp;gt; The short answer is [...]&lt;BR /&gt;&lt;BR /&gt;Ok, but what's the _right_ answer?&lt;BR /&gt;&lt;BR /&gt;&amp;gt; [...] you're trying to use an initializer&lt;BR /&gt;&amp;gt; on an unallocated array.&lt;BR /&gt;&lt;BR /&gt;Really?  I didn't think that C was that lame.&lt;BR /&gt;&lt;BR /&gt;&amp;gt; Hi, i can't understand the problem in my&lt;BR /&gt;&amp;gt; code...&lt;BR /&gt;&lt;BR /&gt;Neither can I, but with my weak psychic&lt;BR /&gt;powers, I can't be sure what "my code" really&lt;BR /&gt;is, nor can I see which compiler you're&lt;BR /&gt;using, or how.  I pasted your posted array&lt;BR /&gt;declaration into an example program, and it&lt;BR /&gt;seems to work for me on some non-HP-UX&lt;BR /&gt;systems which I have up at the moment:&lt;BR /&gt;&lt;BR /&gt;alp $ type 1471496.c&lt;BR /&gt;#include &lt;STDIO.H&gt;&lt;BR /&gt;&lt;BR /&gt;int main( int argc, char ** argv)&lt;BR /&gt;{&lt;BR /&gt;char *descripcion_errorcd_2 [] = {&lt;BR /&gt;"",&lt;BR /&gt;"",&lt;BR /&gt;      [... all of that stuff...]&lt;BR /&gt;"Operacion confirmada en Excedido", /*25*/&lt;BR /&gt;"Operacion liberada en Excedido"&lt;BR /&gt;};&lt;BR /&gt;&lt;BR /&gt;    printf( " err[ 15]: &amp;gt;%s&amp;lt;.\n", descripcion_errorcd_2[ 15]);&lt;BR /&gt;&lt;BR /&gt;    return 0;&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;alp $ cc /version&lt;BR /&gt;HP C V7.3-009 on OpenVMS Alpha V8.3&lt;BR /&gt;&lt;BR /&gt;alp $ cc 1471496.c&lt;BR /&gt;alp $ link 1471496&lt;BR /&gt;alp $ run 1471496&lt;BR /&gt; err[ 15]: &amp;gt;Operacion liberada en STAR&amp;lt;.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;ra&amp;gt; uname -a&lt;BR /&gt;SunOS ra 5.10 Generic_141444-09 sun4u sparc SUNW,UltraSPARC-IIi-cEngine&lt;BR /&gt;&lt;BR /&gt;ra&amp;gt; cc -V&lt;BR /&gt;cc: Sun C 5.9 SunOS_sparc Patch 124867-01 2007/07/12&lt;BR /&gt;[...]&lt;BR /&gt;&lt;BR /&gt;ra&amp;gt; gcc --version&lt;BR /&gt;gcc (GCC) 3.4.6&lt;BR /&gt;[...]&lt;BR /&gt;&lt;BR /&gt;ra&amp;gt; cc -o 1471496 1471496.c&lt;BR /&gt;ra&amp;gt; ./1471496&lt;BR /&gt; err[ 15]: &amp;gt;Operacion liberada en STAR&amp;lt;.&lt;BR /&gt;&lt;BR /&gt;ra&amp;gt; gcc -o 1471496g 1471496.c&lt;BR /&gt;ra&amp;gt; ./1471496g&lt;BR /&gt; err[ 15]: &amp;gt;Operacion liberada en STAR&amp;lt;.&lt;BR /&gt;&lt;BR /&gt;I don't have a genuine HP C compiler, but, so&lt;BR /&gt;far as I can see, everybody loves _my_&lt;BR /&gt;program.&lt;BR /&gt;&lt;BR /&gt;If you attach an actual test case next time,&lt;BR /&gt;then perhaps one of us non-psychics could&lt;BR /&gt;figure out what's happening at your end.&lt;/STDIO.H&gt;</description>
      <pubDate>Thu, 03 Mar 2011 15:18:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/error-1523-too-many-initializers/m-p/4760607#M657129</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2011-03-03T15:18:57Z</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/4760608#M657130</link>
      <description>IÂ´m sorry about my posts. You are right, the compiler that i have been used is a HP C/HP-UX compiler (i canÂ´t see the exact version because i use an rare aplication to compile).&lt;BR /&gt;&lt;BR /&gt;Regards and thx.&lt;BR /&gt;&lt;BR /&gt;P.S.: &lt;BR /&gt;&amp;gt; [...] you're trying to use an initializer&lt;BR /&gt;&amp;gt; on an unallocated array.&lt;BR /&gt;&lt;BR /&gt;I tried other posibilities because the first array declaration didnÂ´t work and i thought this declaration should work.</description>
      <pubDate>Thu, 03 Mar 2011 15:49:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/error-1523-too-many-initializers/m-p/4760608#M657130</guid>
      <dc:creator>edu martin lucas</dc:creator>
      <dc:date>2011-03-03T15:49:15Z</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/4760609#M657131</link>
      <description>&lt;!--!*#--&gt;&amp;gt; I'm sorry about my posts.&lt;BR /&gt;&lt;BR /&gt;So, fix the problem(s).&lt;BR /&gt;&lt;BR /&gt;&amp;gt; You are right, [...]&lt;BR /&gt;&lt;BR /&gt;Who's right?  About what?&lt;BR /&gt;&lt;BR /&gt;&amp;gt; [...] the compiler that i have been used is&lt;BR /&gt;&amp;gt; a HP C/HP-UX compiler [...]&lt;BR /&gt;&lt;BR /&gt;Within rather broad limits, C is C.  Three&lt;BR /&gt;different compilers all liked _my_ example&lt;BR /&gt;program.  I still haven't seen _your_ example&lt;BR /&gt;program.&lt;BR /&gt;&lt;BR /&gt;&amp;gt; [...] (i can't see the exact version&lt;BR /&gt;&amp;gt; because i use an rare aplication to&lt;BR /&gt;&amp;gt; compile).&lt;BR /&gt;&lt;BR /&gt;So, I don't really know what you're trying to&lt;BR /&gt;compile, and I don't really know how you're&lt;BR /&gt;trying to compile it.  How much help were you&lt;BR /&gt;expecting to get?</description>
      <pubDate>Thu, 03 Mar 2011 16:24:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/error-1523-too-many-initializers/m-p/4760609#M657131</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2011-03-03T16:24:14Z</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/4760610#M657132</link>
      <description>&amp;gt;I change my array like that and it works!&lt;BR /&gt;&lt;BR /&gt;You might want to also explain what you did.  With all those lines it's hard to see you split the array.&lt;BR /&gt;&lt;BR /&gt;One way to get 1523 is to declare the array with a smaller dimension first:&lt;BR /&gt;char *descripcion_errorcd_2[25];&lt;BR /&gt;char *descripcion_errorcd_2[] = { ...&lt;BR /&gt;&lt;BR /&gt;Create a .i file and scan for that variable: -E -.i&lt;BR /&gt;Or insert the actual dimension (or just use 1000) and see if the compiler will tell you the location of the conflicting shorter declaration.&lt;BR /&gt;&lt;BR /&gt;&amp;gt; can't see the exact version&lt;BR /&gt;&lt;BR /&gt;Just use "cc -V".&lt;BR /&gt;&lt;BR /&gt;&amp;gt;mvpel: The short answer is that you're trying to use an initializer on an unallocated array.&lt;BR /&gt;&lt;BR /&gt;As Steven said, that's not how C works.  C allows programmers to leave out the dimension and the compiler will calculate it.&lt;BR /&gt;&lt;BR /&gt;So the real short answer is to look for conflicts in the declaration of the variable.</description>
      <pubDate>Thu, 03 Mar 2011 18:28:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/error-1523-too-many-initializers/m-p/4760610#M657132</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2011-03-03T18:28:27Z</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/4760611#M657133</link>
      <description>&amp;gt;ME: One way to get 1523 is to declare the array with a smaller dimension first:&lt;BR /&gt;char *descripcion_errorcd_2[25];&lt;BR /&gt;char *descripcion_errorcd_2[] = { ...&lt;BR /&gt;&lt;BR /&gt;If you do this, the error message points to the line with the index larger the the dimension:&lt;BR /&gt;error #2146: too many initializer values&lt;BR /&gt;  "Operacion confirmada en Excedido", /*25*/&lt;BR /&gt;</description>
      <pubDate>Fri, 04 Mar 2011 09:50:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/error-1523-too-many-initializers/m-p/4760611#M657133</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2011-03-04T09:50:24Z</dc:date>
    </item>
  </channel>
</rss>

