<?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: Getting error &amp;quot; error #2029: expected an expression&amp;quot; while compiling C code for va_arg in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/getting-error-quot-error-2029-expected-an-expression-quot-while/m-p/5074668#M92161</link>
    <description>Break it up into parts so that it is easier to troubleshoot and if it compiles viz.,&lt;BR /&gt;&lt;BR /&gt;const char *ch;&lt;BR /&gt;char *ch2;&lt;BR /&gt;&lt;BR /&gt;ch2 = va_arg(ap, char *);&lt;BR /&gt;strcpy(ch, (const char *)ch2);</description>
    <pubDate>Wed, 17 Oct 2007 09:47:07 GMT</pubDate>
    <dc:creator>Sandman!</dc:creator>
    <dc:date>2007-10-17T09:47:07Z</dc:date>
    <item>
      <title>Getting error " error #2029: expected an expression" while compiling C code for va_arg</title>
      <link>https://community.hpe.com/t5/operating-system-linux/getting-error-quot-error-2029-expected-an-expression-quot-while/m-p/5074667#M92160</link>
      <description>Hi !&lt;BR /&gt;&lt;BR /&gt;while i m compiling my program i keep getting this kind of error:&lt;BR /&gt;======================&lt;BR /&gt;line 1662: error #2029: expected an expression&lt;BR /&gt;                        strcpy(ch,va_arg(ap,char *));&lt;BR /&gt;======================&lt;BR /&gt;Pointing out  char * as the trouble parameters.&lt;BR /&gt;&lt;BR /&gt;I have made a little program using va_arg and it builds just fine.&lt;BR /&gt;&lt;BR /&gt;So I m searching why i have this problem since this code run for years now on HP-UX&lt;BR /&gt;&lt;BR /&gt;We just migrate to Itanuim, with the evaluation package :&lt;BR /&gt;B9007AAEVAL           C.11.31.03.EVAL2 HP C/aC++ Developer's Bundle for Evaluation License&lt;BR /&gt;&lt;BR /&gt;Do someone have an idea about this problem ?&lt;BR /&gt;Syntax for build :&lt;BR /&gt;cc  -c -I. -I/home/proj/inc appli.c -o appli.o&lt;BR /&gt;&lt;BR /&gt;By advance.&lt;BR /&gt;Thank you</description>
      <pubDate>Wed, 17 Oct 2007 07:58:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/getting-error-quot-error-2029-expected-an-expression-quot-while/m-p/5074667#M92160</guid>
      <dc:creator>bruneau</dc:creator>
      <dc:date>2007-10-17T07:58:53Z</dc:date>
    </item>
    <item>
      <title>Re: Getting error " error #2029: expected an expression" while compiling C code for va_arg</title>
      <link>https://community.hpe.com/t5/operating-system-linux/getting-error-quot-error-2029-expected-an-expression-quot-while/m-p/5074668#M92161</link>
      <description>Break it up into parts so that it is easier to troubleshoot and if it compiles viz.,&lt;BR /&gt;&lt;BR /&gt;const char *ch;&lt;BR /&gt;char *ch2;&lt;BR /&gt;&lt;BR /&gt;ch2 = va_arg(ap, char *);&lt;BR /&gt;strcpy(ch, (const char *)ch2);</description>
      <pubDate>Wed, 17 Oct 2007 09:47:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/getting-error-quot-error-2029-expected-an-expression-quot-while/m-p/5074668#M92161</guid>
      <dc:creator>Sandman!</dc:creator>
      <dc:date>2007-10-17T09:47:07Z</dc:date>
    </item>
    <item>
      <title>Re: Getting error " error #2029: expected an expression" while compiling C code for va_arg</title>
      <link>https://community.hpe.com/t5/operating-system-linux/getting-error-quot-error-2029-expected-an-expression-quot-while/m-p/5074669#M92162</link>
      <description>&lt;!--!*#--&gt;Thank you for the anwser.&lt;BR /&gt;&lt;BR /&gt;in fact i already have this kind of error.&lt;BR /&gt;=============&lt;BR /&gt;va_list ap;&lt;BR /&gt;&lt;BR /&gt;-------&lt;BR /&gt;line 1268: error #2029: expected an expression&lt;BR /&gt;                                                va_arg(ap, char);&lt;BR /&gt;                                                           ^&lt;BR /&gt;=============                                                           &lt;BR /&gt;&lt;BR /&gt;(also I have tried your modification to be sure)&lt;BR /&gt;&lt;BR /&gt;In fact... an internal procedure from our software added the line&lt;BR /&gt;#define _PA_RISC2_0&lt;BR /&gt;before generating the final .c file....&lt;BR /&gt;&lt;BR /&gt;So, not a bug , just a definition that do not have to be here.....&lt;BR /&gt;&lt;BR /&gt;Thank you for you answer&lt;BR /&gt;And sorry for having opening such a case.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 17 Oct 2007 11:08:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/getting-error-quot-error-2029-expected-an-expression-quot-while/m-p/5074669#M92162</guid>
      <dc:creator>bruneau</dc:creator>
      <dc:date>2007-10-17T11:08:59Z</dc:date>
    </item>
    <item>
      <title>Re: Getting error " error #2029: expected an expression" while compiling C code for va_arg</title>
      <link>https://community.hpe.com/t5/operating-system-linux/getting-error-quot-error-2029-expected-an-expression-quot-while/m-p/5074670#M92163</link>
      <description>My mistake.&lt;BR /&gt;&lt;BR /&gt;All is ok now.&lt;BR /&gt;Thank you for your help !</description>
      <pubDate>Wed, 17 Oct 2007 11:10:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/getting-error-quot-error-2029-expected-an-expression-quot-while/m-p/5074670#M92163</guid>
      <dc:creator>bruneau</dc:creator>
      <dc:date>2007-10-17T11:10:52Z</dc:date>
    </item>
    <item>
      <title>Re: Getting error " error #2029: expected an expression" while compiling C code for va_arg</title>
      <link>https://community.hpe.com/t5/operating-system-linux/getting-error-quot-error-2029-expected-an-expression-quot-while/m-p/5074671#M92164</link>
      <description>&amp;gt;an internal procedure from our software added the line: #define _PA_RISC2_0&lt;BR /&gt;&lt;BR /&gt;Yes, that would change &lt;VARARGS.H&gt; so that the IPF compiler wouldn't know what to do.&lt;/VARARGS.H&gt;</description>
      <pubDate>Thu, 18 Oct 2007 00:24:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/getting-error-quot-error-2029-expected-an-expression-quot-while/m-p/5074671#M92164</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2007-10-18T00:24:07Z</dc:date>
    </item>
  </channel>
</rss>

