<?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: need help to compile a C program in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/need-help-to-compile-a-c-program/m-p/3690558#M795037</link>
    <description>You have ported the output of yacc/bison (field_y.c) rather than porting the yacc source (field_y.y?) that generated this C source. If you will instead run the yacc/bison source through the HP-UX version of yacc/bison to generate an HP-UX version of field_y.c, I think your problems will disappear.</description>
    <pubDate>Tue, 13 Dec 2005 14:01:13 GMT</pubDate>
    <dc:creator>A. Clay Stephenson</dc:creator>
    <dc:date>2005-12-13T14:01:13Z</dc:date>
    <item>
      <title>need help to compile a C program</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/need-help-to-compile-a-c-program/m-p/3690557#M795036</link>
      <description>Hi,&lt;BR /&gt;  I need help to compile a C program on HP-UX 11.11. I was able successfully compile same program on Linux. Can somebody tell me what should i do based on the error below. I have attached the C program which i am trying to compile. Thanks.&lt;BR /&gt;&lt;BR /&gt;gcc -D_HPUX_SOURCE -I/usr/local/include -O3 -I../.. -I../../lib -I../../lib/ctype -I../../lib/regexp/  -c field_y.c&lt;BR /&gt;field_y.c:335: error: syntax error before "fieldstype"&lt;BR /&gt;field_y.c:335: warning: no semicolon at end of struct or union&lt;BR /&gt;field_y.c:965: error: syntax error before "fieldstype"&lt;BR /&gt;field_y.c: In function `fielddestruct':&lt;BR /&gt;field_y.c:975: error: `fieldvaluep' undeclared (first use in this function)&lt;BR /&gt;field_y.c:975: error: (Each undeclared identifier is reported only once&lt;BR /&gt;field_y.c:975: error: for each function it appears in.)&lt;BR /&gt;field_y.c:977: error: `fieldmsg' undeclared (first use in this function)&lt;BR /&gt;field_y.c:981: error: `fieldtype' undeclared (first use in this function)&lt;BR /&gt;field_y.c: At top level:&lt;BR /&gt;field_y.c:1012: error: syntax error before "fieldlval"&lt;BR /&gt;field_y.c:1012: warning: data definition has no type or storage class&lt;BR /&gt;field_y.c: In function `fieldparse':&lt;BR /&gt;field_y.c:1064: error: `fieldstype' undeclared (first use in this function)&lt;BR /&gt;field_y.c:1064: error: syntax error before "fieldvsa"&lt;BR /&gt;field_y.c:1065: error: `fieldvs' undeclared (first use in this function)&lt;BR /&gt;field_y.c:1065: error: `fieldvsa' undeclared (first use in this function)&lt;BR /&gt;field_y.c:1066: error: `fieldvsp' undeclared (first use in this function)&lt;BR /&gt;field_y.c:1076: error: syntax error before "fieldval"&lt;BR /&gt;field_y.c:1153: error: invalid application of `sizeof' to incomplete type `fieldalloc' &lt;BR /&gt;field_y.c:1156: error: dereferencing pointer to incomplete type&lt;BR /&gt;field_y.c:1156: error: dereferencing pointer to incomplete type&lt;BR /&gt;field_y.c:1156: error: invalid application of `sizeof' to incomplete type `fieldalloc' &lt;BR /&gt;field_y.c:1156: error: dereferencing pointer to incomplete type&lt;BR /&gt;field_y.c:1156: error: invalid use of undefined type `union fieldalloc'&lt;BR /&gt;field_y.c:1157: error: dereferencing pointer to incomplete type&lt;BR /&gt;field_y.c:1157: error: dereferencing pointer to incomplete type&lt;BR /&gt;field_y.c:1157: error: invalid application of `sizeof' to incomplete type `fieldalloc' &lt;BR /&gt;field_y.c:1157: error: dereferencing pointer to incomplete type&lt;BR /&gt;field_y.c:1157: error: invalid use of undefined type `union fieldalloc'&lt;BR /&gt;field_y.c:1277: error: `fieldval' undeclared (first use in this function)&lt;BR /&gt;*** Error exit code 1&lt;BR /&gt;&lt;BR /&gt;Stop.&lt;BR /&gt;*** Error exit code 1&lt;BR /&gt;&lt;BR /&gt;Stop.&lt;BR /&gt;</description>
      <pubDate>Tue, 13 Dec 2005 11:25:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/need-help-to-compile-a-c-program/m-p/3690557#M795036</guid>
      <dc:creator>HPP</dc:creator>
      <dc:date>2005-12-13T11:25:14Z</dc:date>
    </item>
    <item>
      <title>Re: need help to compile a C program</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/need-help-to-compile-a-c-program/m-p/3690558#M795037</link>
      <description>You have ported the output of yacc/bison (field_y.c) rather than porting the yacc source (field_y.y?) that generated this C source. If you will instead run the yacc/bison source through the HP-UX version of yacc/bison to generate an HP-UX version of field_y.c, I think your problems will disappear.</description>
      <pubDate>Tue, 13 Dec 2005 14:01:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/need-help-to-compile-a-c-program/m-p/3690558#M795037</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2005-12-13T14:01:13Z</dc:date>
    </item>
    <item>
      <title>Re: need help to compile a C program</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/need-help-to-compile-a-c-program/m-p/3690559#M795038</link>
      <description>Clay,&lt;BR /&gt;  Thanks much for the great TIP. It worked!!!!!!!!!!!!!!!!!!!!&lt;BR /&gt;&lt;BR /&gt;100 points for your answer.&lt;BR /&gt;&lt;BR /&gt;Thanks again.</description>
      <pubDate>Tue, 13 Dec 2005 14:13:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/need-help-to-compile-a-c-program/m-p/3690559#M795038</guid>
      <dc:creator>HPP</dc:creator>
      <dc:date>2005-12-13T14:13:52Z</dc:date>
    </item>
  </channel>
</rss>

