<?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 2020 in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/error-2020/m-p/5169694#M682045</link>
    <description>&lt;!--!*#--&gt;&amp;gt; My gcc [...]&lt;BR /&gt;&lt;BR /&gt;Which gcc is that?  "gcc -v"?  On what?&lt;BR /&gt;"uname -a"?&lt;BR /&gt;&lt;BR /&gt;&amp;gt; and I have the following code:&lt;BR /&gt;&lt;BR /&gt;And much more, which you haven't shared.  A&lt;BR /&gt;small, _complete_ test case would be easier&lt;BR /&gt;to debug.&lt;BR /&gt;&lt;BR /&gt;I find it interesting that the _first_&lt;BR /&gt;complaint refers to the _second_ parameter&lt;BR /&gt;(as if gcc thought that "Object" was a type,&lt;BR /&gt;but "FunctionArgList" was not).&lt;BR /&gt;&lt;BR /&gt;But I can't see enough of the code to do more&lt;BR /&gt;than make guesses.</description>
    <pubDate>Wed, 15 Apr 2009 14:48:31 GMT</pubDate>
    <dc:creator>Steven Schweda</dc:creator>
    <dc:date>2009-04-15T14:48:31Z</dc:date>
    <item>
      <title>#error 2020</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/error-2020/m-p/5169693#M682044</link>
      <description>My gcc return me the following mistakes:&lt;BR /&gt;&lt;BR /&gt;"saverest.c", line 69: error #2020: identifier "FunctionArgList" is undefined&lt;BR /&gt;  int ZtSave(Object, FunctionArgList)&lt;BR /&gt;                     ^&lt;BR /&gt;&lt;BR /&gt;"saverest.c", line 69: error #2141-D: unnamed prototyped parameters not allowed when body is present&lt;BR /&gt;  int ZtSave(Object, FunctionArgList)&lt;BR /&gt;      ^&lt;BR /&gt;&lt;BR /&gt;"saverest.c", line 70: error #2130: expected a "{"&lt;BR /&gt;  ZtId Object;&lt;BR /&gt;  ^&lt;BR /&gt;&lt;BR /&gt;and I have the following code:&lt;BR /&gt;&lt;BR /&gt;int ZtSave(Object,FunctionArgList)&lt;BR /&gt;ZtId Object;&lt;BR /&gt;ZtArgList FunctionArgList;&lt;BR /&gt;{&lt;BR /&gt;    Zt_FcnAttributes fcnatts;&lt;BR /&gt;    int iscls, oldErrLevel = ZtErrLevel;&lt;BR /&gt;.&lt;BR /&gt;.&lt;BR /&gt;.&lt;BR /&gt;&lt;BR /&gt;The problem is the declaration of ZtId Object and ZtArgList FunctionArglist, which is made after the function declaration. If I write the header like this:&lt;BR /&gt;int ZtSave(ZtId Object,ZtArgList FunctionArgList)&lt;BR /&gt;It works, and I have compiled other functions like this with the declaration after the header and it haven't return any mistake, and I don't know why, it could be because I need one more define in the Makefile? &lt;BR /&gt;&lt;BR /&gt;Thanks gurus.</description>
      <pubDate>Wed, 15 Apr 2009 09:58:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/error-2020/m-p/5169693#M682044</guid>
      <dc:creator>Eder Urruela</dc:creator>
      <dc:date>2009-04-15T09:58:26Z</dc:date>
    </item>
    <item>
      <title>Re: #error 2020</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/error-2020/m-p/5169694#M682045</link>
      <description>&lt;!--!*#--&gt;&amp;gt; My gcc [...]&lt;BR /&gt;&lt;BR /&gt;Which gcc is that?  "gcc -v"?  On what?&lt;BR /&gt;"uname -a"?&lt;BR /&gt;&lt;BR /&gt;&amp;gt; and I have the following code:&lt;BR /&gt;&lt;BR /&gt;And much more, which you haven't shared.  A&lt;BR /&gt;small, _complete_ test case would be easier&lt;BR /&gt;to debug.&lt;BR /&gt;&lt;BR /&gt;I find it interesting that the _first_&lt;BR /&gt;complaint refers to the _second_ parameter&lt;BR /&gt;(as if gcc thought that "Object" was a type,&lt;BR /&gt;but "FunctionArgList" was not).&lt;BR /&gt;&lt;BR /&gt;But I can't see enough of the code to do more&lt;BR /&gt;than make guesses.</description>
      <pubDate>Wed, 15 Apr 2009 14:48:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/error-2020/m-p/5169694#M682045</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2009-04-15T14:48:31Z</dc:date>
    </item>
    <item>
      <title>Re: #error 2020</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/error-2020/m-p/5169695#M682046</link>
      <description>&amp;gt;My gcc return me the following mistakes:&lt;BR /&gt;&lt;BR /&gt;Error 2020 is an aC++ error message, not gcc.&lt;BR /&gt;Did you use cc or aCC to compile?  What does your compile line look like?&lt;BR /&gt;&lt;BR /&gt;&amp;gt;The problem is the declaration of ZtId Object and ZtArgList FunctionArglist, which is made after the function declaration.&lt;BR /&gt;&lt;BR /&gt;This is a garbage K&amp;amp;R style definition, you should use C++ or ANSI C style prototypes.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;I have compiled other functions like this with the declaration after&lt;BR /&gt;&lt;BR /&gt;It only complained about FunctionArgList and not Object.  Has FunctionArgList appeared before?</description>
      <pubDate>Wed, 15 Apr 2009 19:10:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/error-2020/m-p/5169695#M682046</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2009-04-15T19:10:32Z</dc:date>
    </item>
    <item>
      <title>Re: #error 2020</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/error-2020/m-p/5169696#M682047</link>
      <description>&amp;gt;Steven: as if aC++ thought that "Object" was a type, but "FunctionArgList" was not.&lt;BR /&gt;&lt;BR /&gt;That's probably exactly the problem.</description>
      <pubDate>Wed, 15 Apr 2009 19:14:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/error-2020/m-p/5169696#M682047</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2009-04-15T19:14:38Z</dc:date>
    </item>
    <item>
      <title>Re: #error 2020</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/error-2020/m-p/5169697#M682048</link>
      <description>Sorry, I said gcc but I'm using cc. my command line to call the compiler is the next.&lt;BR /&gt;&lt;BR /&gt;cc -c -O   -Wp,-H256000 -DRELEASE -Dhpux -D_CLASSIC_TYPES -DX11R6 -I/hpi&lt;BR /&gt;vi/tape/usr/include/X11R2 -I/usr/include/X11R6 -I. -I../../inc saverest.c&lt;BR /&gt;&lt;BR /&gt;and the varible FunctionArgList is a ZtArgList variable, which is the typedef of one struct in one library, I have other variables as the same kind, and I know it isn't problem of the library because the compiler undestand them.&lt;BR /&gt;&lt;BR /&gt;Thanks!</description>
      <pubDate>Thu, 16 Apr 2009 09:02:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/error-2020/m-p/5169697#M682048</guid>
      <dc:creator>Eder Urruela</dc:creator>
      <dc:date>2009-04-16T09:02:45Z</dc:date>
    </item>
    <item>
      <title>Re: #error 2020</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/error-2020/m-p/5169698#M682049</link>
      <description>&amp;gt;the variable FunctionArgList is a ZtArgList variable... I have other variables as the same kind, and I know it isn't problem of the library because the compiler understand them.&lt;BR /&gt;&lt;BR /&gt;As Steven said, the problem is with Object, it's probably a type.&lt;BR /&gt;&lt;BR /&gt;As I said, you should get rid of the garbage K&amp;amp;R definitions.</description>
      <pubDate>Thu, 16 Apr 2009 09:16:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/error-2020/m-p/5169698#M682049</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2009-04-16T09:16:12Z</dc:date>
    </item>
    <item>
      <title>Re: #error 2020</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/error-2020/m-p/5169699#M682050</link>
      <description>What's the K&amp;amp;R definitions?&lt;BR /&gt;Sorry but I don't Know much about unix.&lt;BR /&gt;&lt;BR /&gt;Thanks and escuses for my little knowledge.</description>
      <pubDate>Thu, 16 Apr 2009 09:33:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/error-2020/m-p/5169699#M682050</guid>
      <dc:creator>Eder Urruela</dc:creator>
      <dc:date>2009-04-16T09:33:38Z</dc:date>
    </item>
    <item>
      <title>Re: #error 2020</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/error-2020/m-p/5169700#M682051</link>
      <description>&amp;gt;What's the K&amp;amp;R definitions? Sorry but I don't know much about unix.&lt;BR /&gt;&lt;BR /&gt;This is a C term, nothing to do with Unix.&lt;BR /&gt;&lt;BR /&gt;K&amp;amp;R is the initial version of C before it became an official standard.&lt;BR /&gt;&lt;BR /&gt;foo(x,y) int x,y { return x + y; }&lt;BR /&gt;This is a garbage K&amp;amp;R definition.&lt;BR /&gt;&lt;BR /&gt;int foo(int x, int y);&lt;BR /&gt;This is a C++ or ANSI C prototype.</description>
      <pubDate>Thu, 16 Apr 2009 10:26:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/error-2020/m-p/5169700#M682051</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2009-04-16T10:26:16Z</dc:date>
    </item>
    <item>
      <title>Re: #error 2020</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/error-2020/m-p/5169701#M682052</link>
      <description>Hi:&lt;BR /&gt;&lt;BR /&gt;&amp;gt; What's the K&amp;amp;R definitions?&lt;BR /&gt;&lt;BR /&gt;This might help, too:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://en.wikipedia.org/wiki/K%26R_C" target="_blank"&gt;http://en.wikipedia.org/wiki/K%26R_C&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://en.wikipedia.org/wiki/C99" target="_blank"&gt;http://en.wikipedia.org/wiki/C99&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Thu, 16 Apr 2009 10:53:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/error-2020/m-p/5169701#M682052</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2009-04-16T10:53:14Z</dc:date>
    </item>
    <item>
      <title>Re: #error 2020</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/error-2020/m-p/5169702#M682053</link>
      <description>&amp;gt;Steven: as if gcc thought that "Object" was a type, but "FunctionArgList" was not.&lt;BR /&gt;&lt;BR /&gt;Steven is correct.  This type of garbage K&amp;amp;R definition is only legal in K&amp;amp;R.  Neither HP C, aCC6 in C mode, nor gcc like this.  They see the initial type (Object) and assume it is a parameter-type-list.</description>
      <pubDate>Sat, 18 Apr 2009 04:00:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/error-2020/m-p/5169702#M682053</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2009-04-18T04:00:58Z</dc:date>
    </item>
    <item>
      <title>Re: #error 2020</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/error-2020/m-p/5169703#M682054</link>
      <description>Hi (again):&lt;BR /&gt;&lt;BR /&gt;&amp;gt; Dennis: Steven is correct.&lt;BR /&gt;&lt;BR /&gt;You're repeating yourself :-) You already affirmed that in your earlier post where you said, "As Steven said, the problem is with Object, it's probably a type."&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...&lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Sat, 18 Apr 2009 12:36:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/error-2020/m-p/5169703#M682054</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2009-04-18T12:36:24Z</dc:date>
    </item>
    <item>
      <title>Re: #error 2020</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/error-2020/m-p/5169704#M682055</link>
      <description>&amp;gt;JRF: You already affirmed that in your earlier post where you said, "... it's probably a type."&lt;BR /&gt;&lt;BR /&gt;This time I actually tried it with several compilers and I looked at the Standard.</description>
      <pubDate>Sat, 18 Apr 2009 22:07:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/error-2020/m-p/5169704#M682055</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2009-04-18T22:07:34Z</dc:date>
    </item>
    <item>
      <title>Re: #error 2020</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/error-2020/m-p/5169705#M682056</link>
      <description>Thaks everybody.</description>
      <pubDate>Mon, 27 Apr 2009 07:51:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/error-2020/m-p/5169705#M682056</guid>
      <dc:creator>Eder Urruela</dc:creator>
      <dc:date>2009-04-27T07:51:46Z</dc:date>
    </item>
  </channel>
</rss>

