<?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 Porting software from aCC to gcc, and having some errors in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/porting-software-from-acc-to-gcc-and-having-some-errors/m-p/2707451#M723526</link>
    <description>Hi again! First, I want to thank you all for promptly helping me to install gcc 3.0.4 in my HPUX 11!&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Now, my next problem ;)&lt;BR /&gt;&lt;BR /&gt;We have a lot of libraries, written in C++ and we used aCC to compile them. Now, I am trying to compile the same libraries using gcc. Several of the .C files compile just fine and I get the .o (object) files without any problem. But some of my c++ files are complaining about ostream (probably a namespace problem).&lt;BR /&gt;&lt;BR /&gt;So, I would like to know if any of you know how to make my code work under gcc without having to actually change it. Is there any flags or something I can use to set gcc so he won't use the new style streams?&lt;BR /&gt;&lt;BR /&gt;Here is my code:&lt;BR /&gt;&lt;BR /&gt;friend ostream&amp;amp; operator&amp;lt;&amp;lt;(ostream&amp;amp; os, const ACTKEY&amp;amp; key) ;&lt;BR /&gt;&lt;BR /&gt;Here is my error:&lt;BR /&gt;types.h:153: warning: ISO C++ forbids &lt;BR /&gt;   declaration of `ostream' with no type&lt;BR /&gt;types.h:153: `ostream' is neither function nor &lt;BR /&gt;   member function; cannot be declared friend&lt;BR /&gt;types.h:153: parse error before `&amp;amp;' token&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Thanks a lot again.</description>
    <pubDate>Fri, 19 Apr 2002 17:56:27 GMT</pubDate>
    <dc:creator>Fernando C. Jeronymo</dc:creator>
    <dc:date>2002-04-19T17:56:27Z</dc:date>
    <item>
      <title>Porting software from aCC to gcc, and having some errors</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/porting-software-from-acc-to-gcc-and-having-some-errors/m-p/2707451#M723526</link>
      <description>Hi again! First, I want to thank you all for promptly helping me to install gcc 3.0.4 in my HPUX 11!&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Now, my next problem ;)&lt;BR /&gt;&lt;BR /&gt;We have a lot of libraries, written in C++ and we used aCC to compile them. Now, I am trying to compile the same libraries using gcc. Several of the .C files compile just fine and I get the .o (object) files without any problem. But some of my c++ files are complaining about ostream (probably a namespace problem).&lt;BR /&gt;&lt;BR /&gt;So, I would like to know if any of you know how to make my code work under gcc without having to actually change it. Is there any flags or something I can use to set gcc so he won't use the new style streams?&lt;BR /&gt;&lt;BR /&gt;Here is my code:&lt;BR /&gt;&lt;BR /&gt;friend ostream&amp;amp; operator&amp;lt;&amp;lt;(ostream&amp;amp; os, const ACTKEY&amp;amp; key) ;&lt;BR /&gt;&lt;BR /&gt;Here is my error:&lt;BR /&gt;types.h:153: warning: ISO C++ forbids &lt;BR /&gt;   declaration of `ostream' with no type&lt;BR /&gt;types.h:153: `ostream' is neither function nor &lt;BR /&gt;   member function; cannot be declared friend&lt;BR /&gt;types.h:153: parse error before `&amp;amp;' token&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Thanks a lot again.</description>
      <pubDate>Fri, 19 Apr 2002 17:56:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/porting-software-from-acc-to-gcc-and-having-some-errors/m-p/2707451#M723526</guid>
      <dc:creator>Fernando C. Jeronymo</dc:creator>
      <dc:date>2002-04-19T17:56:27Z</dc:date>
    </item>
  </channel>
</rss>

