<?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: not sure ANSI C is installed properly in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/not-sure-ansi-c-is-installed-properly/m-p/3397638#M705993</link>
    <description>You look to be properly configured. A good check would be&lt;BR /&gt;&lt;BR /&gt;cc -v frog2.c to display the options and executables. At this point, my best guess is that CCOPTS is set and doing -Ac to put the compiler in "compatible" (meaning very old) mode.&lt;BR /&gt;</description>
    <pubDate>Mon, 11 Oct 2004 16:06:21 GMT</pubDate>
    <dc:creator>A. Clay Stephenson</dc:creator>
    <dc:date>2004-10-11T16:06:21Z</dc:date>
    <item>
      <title>not sure ANSI C is installed properly</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/not-sure-ansi-c-is-installed-properly/m-p/3397635#M705990</link>
      <description>i am getting the following error when compiling a program&lt;BR /&gt;&lt;BR /&gt;cc: "frog2.c", line 11: error 1705: Function prototypes are an ANSI feature.&lt;BR /&gt;&lt;BR /&gt;where line 11 is&lt;BR /&gt;&lt;BR /&gt;main(int argc, char *argv[])&lt;BR /&gt;&lt;BR /&gt;i noticed in the forums that the fix was to use the ANSI C compiler ...well i have one&lt;BR /&gt;&lt;BR /&gt;swlist | grep -i ansi&lt;BR /&gt;      B3900AA_APZ                   B.10.20.05     HP C/ANSI C Developer's Bundle for HP-UX 10.20 (S800)&lt;BR /&gt;&lt;BR /&gt;so just wondering if i am using it?&lt;BR /&gt;&lt;BR /&gt;which cc&lt;BR /&gt;       /usr/bin/cc&lt;BR /&gt;ll /usr/bin/cc&lt;BR /&gt;       lr-xr-xr-t   1 root       sys             17 Nov  1  1999 /usr/bin/cc -&amp;gt; /opt/ansic/bin/cc&lt;BR /&gt;&lt;BR /&gt;FYI: i have not written C code in over a decade</description>
      <pubDate>Mon, 11 Oct 2004 14:20:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/not-sure-ansi-c-is-installed-properly/m-p/3397635#M705990</guid>
      <dc:creator>Marc Ahrendt</dc:creator>
      <dc:date>2004-10-11T14:20:29Z</dc:date>
    </item>
    <item>
      <title>Re: not sure ANSI C is installed properly</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/not-sure-ansi-c-is-installed-properly/m-p/3397636#M705991</link>
      <description>I really never trust the "which" command; I always use "type" instead.&lt;BR /&gt;&lt;BR /&gt;I rather suspect that ANSI/C is installed but not yet configured.&lt;BR /&gt;&lt;BR /&gt;Do this:&lt;BR /&gt;swlist -l fileset -a state | grep -i "ANSI"&lt;BR /&gt;&lt;BR /&gt;to make sure that "configured" appears beside each component.&lt;BR /&gt;</description>
      <pubDate>Mon, 11 Oct 2004 14:39:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/not-sure-ansi-c-is-installed-properly/m-p/3397636#M705991</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2004-10-11T14:39:20Z</dc:date>
    </item>
    <item>
      <title>Re: not sure ANSI C is installed properly</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/not-sure-ansi-c-is-installed-properly/m-p/3397637#M705992</link>
      <description>below commands were run&lt;BR /&gt;&lt;BR /&gt;swlist -l fileset -a state | grep -i "ANSI"&lt;BR /&gt;# C-ANSI-C&lt;BR /&gt;  C-ANSI-C.C                            configured     &lt;BR /&gt;  C-ANSI-C.C-HELP                       configured     &lt;BR /&gt;  C-ANSI-C.C-MAN                        configured     &lt;BR /&gt;&lt;BR /&gt;which cc&lt;BR /&gt;/usr/bin/cc&lt;BR /&gt;&lt;BR /&gt;type cc&lt;BR /&gt;cc is a tracked alias for /usr/bin/cc</description>
      <pubDate>Mon, 11 Oct 2004 15:50:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/not-sure-ansi-c-is-installed-properly/m-p/3397637#M705992</guid>
      <dc:creator>Marc Ahrendt</dc:creator>
      <dc:date>2004-10-11T15:50:22Z</dc:date>
    </item>
    <item>
      <title>Re: not sure ANSI C is installed properly</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/not-sure-ansi-c-is-installed-properly/m-p/3397638#M705993</link>
      <description>You look to be properly configured. A good check would be&lt;BR /&gt;&lt;BR /&gt;cc -v frog2.c to display the options and executables. At this point, my best guess is that CCOPTS is set and doing -Ac to put the compiler in "compatible" (meaning very old) mode.&lt;BR /&gt;</description>
      <pubDate>Mon, 11 Oct 2004 16:06:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/not-sure-ansi-c-is-installed-properly/m-p/3397638#M705993</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2004-10-11T16:06:21Z</dc:date>
    </item>
    <item>
      <title>Re: not sure ANSI C is installed properly</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/not-sure-ansi-c-is-installed-properly/m-p/3397639#M705994</link>
      <description>Hi Marc,&lt;BR /&gt;&lt;BR /&gt;How about forcing the compiler to use 'ansi' mode.  'cc -Aa file.c'.&lt;BR /&gt;&lt;BR /&gt;Man cc for more information. &lt;BR /&gt;&lt;BR /&gt;-Sri</description>
      <pubDate>Mon, 11 Oct 2004 16:14:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/not-sure-ansi-c-is-installed-properly/m-p/3397639#M705994</guid>
      <dc:creator>Sridhar Bhaskarla</dc:creator>
      <dc:date>2004-10-11T16:14:32Z</dc:date>
    </item>
    <item>
      <title>Re: not sure ANSI C is installed properly</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/not-sure-ansi-c-is-installed-properly/m-p/3397640#M705995</link>
      <description>will assign your points later ...system not letting me do it now, but Sridhar you will get a 10&lt;BR /&gt;&lt;BR /&gt;cc -v -ofrog2 frog2.c&lt;BR /&gt;    cc: CCOPTS is not set.&lt;BR /&gt;    ...&lt;BR /&gt;&lt;BR /&gt;cc -Aa -ofrog2 frog2.c&lt;BR /&gt;    Worked!!!&lt;BR /&gt;&lt;BR /&gt;FYI: i got "cc -ofrog2 frog2.c" to work without the "-Aa" option by replacing&lt;BR /&gt;    void main(int argc, char *argv[])&lt;BR /&gt;with the following&lt;BR /&gt;    main(argc,argv)&lt;BR /&gt;    int argc;&lt;BR /&gt;    char **argv;</description>
      <pubDate>Tue, 12 Oct 2004 10:53:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/not-sure-ansi-c-is-installed-properly/m-p/3397640#M705995</guid>
      <dc:creator>Marc Ahrendt</dc:creator>
      <dc:date>2004-10-12T10:53:23Z</dc:date>
    </item>
    <item>
      <title>Re: not sure ANSI C is installed properly</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/not-sure-ansi-c-is-installed-properly/m-p/3397641#M705996</link>
      <description>Your last attempt reverted to K&amp;amp;R syntax so that the compile was okay. I don't feel like finding and loading a version of the ANSI C compiler as old as yours but since CCOPTS was not set, it appears that the default mode of your ANSI/C compiler is -Ac (K &amp;amp; R) rather than -Aa. I've never heard of a default for the ANSI/C compiler that was -Ac but I suppose that it's possible. A more likely explanation is that someone has altered the #defines in a header file so that K&amp;amp;R behavior results. Man 5 stdsyms for clues.&lt;BR /&gt;</description>
      <pubDate>Tue, 12 Oct 2004 11:58:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/not-sure-ansi-c-is-installed-properly/m-p/3397641#M705996</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2004-10-12T11:58:51Z</dc:date>
    </item>
  </channel>
</rss>

