<?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: cc bug function in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/cc-bug-function/m-p/2602097#M725834</link>
    <description>But I made it.</description>
    <pubDate>Fri, 26 Oct 2001 11:56:46 GMT</pubDate>
    <dc:creator>MR GROSS</dc:creator>
    <dc:date>2001-10-26T11:56:46Z</dc:date>
    <item>
      <title>cc bug function</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cc-bug-function/m-p/2602094#M725831</link>
      <description>Hell&lt;BR /&gt;I use the cc compiler on HPUX10.20.&lt;BR /&gt;i made a function &lt;BR /&gt;void main()&lt;BR /&gt;{ int fd;&lt;BR /&gt;fd =open ( "file",O_RDONLY);&lt;BR /&gt;close (fd);&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;And i have this error when compiling&lt;BR /&gt;cc: "file" line 6 error 1588 :&lt;BR /&gt; "O_RDONLY" undefined&lt;BR /&gt;&lt;BR /&gt;can you help me,  it is a wrong syntaxe or i need  patch for my station ?&lt;BR /&gt;thanks&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 26 Oct 2001 11:05:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cc-bug-function/m-p/2602094#M725831</guid>
      <dc:creator>MR GROSS</dc:creator>
      <dc:date>2001-10-26T11:05:54Z</dc:date>
    </item>
    <item>
      <title>Re: cc bug function</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cc-bug-function/m-p/2602095#M725832</link>
      <description>Try including fcntl.h, i.e.:&lt;BR /&gt;&lt;BR /&gt;#include &lt;FCNTL.H&gt;&lt;BR /&gt;&lt;BR /&gt;-Santosh&lt;/FCNTL.H&gt;</description>
      <pubDate>Fri, 26 Oct 2001 11:19:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cc-bug-function/m-p/2602095#M725832</guid>
      <dc:creator>Santosh Nair_1</dc:creator>
      <dc:date>2001-10-26T11:19:22Z</dc:date>
    </item>
    <item>
      <title>Re: cc bug function</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cc-bug-function/m-p/2602096#M725833</link>
      <description>Hi Gross:&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Your problem is that you have not told the c preprocessor where to look for defines. In this case the answer is fcntl.h (File Control).&lt;BR /&gt;&lt;BR /&gt;You can save yourself quite a bit of trouble if you add these includes to just about all c programs.&lt;BR /&gt;&lt;BR /&gt;#include &lt;STDIO.H&gt;&lt;BR /&gt;#include &lt;STDLIB.H&gt;&lt;BR /&gt;#include &lt;FCNTL.H&gt;&lt;BR /&gt;&lt;BR /&gt;The &amp;lt;&amp;gt; tell tell c preprocess to look in the 'standard' locations or those defined with a -I cc option.&lt;BR /&gt;&lt;BR /&gt;&lt;/FCNTL.H&gt;&lt;/STDLIB.H&gt;&lt;/STDIO.H&gt;</description>
      <pubDate>Fri, 26 Oct 2001 11:52:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cc-bug-function/m-p/2602096#M725833</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2001-10-26T11:52:02Z</dc:date>
    </item>
    <item>
      <title>Re: cc bug function</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cc-bug-function/m-p/2602097#M725834</link>
      <description>But I made it.</description>
      <pubDate>Fri, 26 Oct 2001 11:56:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cc-bug-function/m-p/2602097#M725834</guid>
      <dc:creator>MR GROSS</dc:creator>
      <dc:date>2001-10-26T11:56:46Z</dc:date>
    </item>
  </channel>
</rss>

