<?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: Compilation problem with HP UNIC GCC in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/compilation-problem-with-hp-unic-gcc/m-p/5082085#M92647</link>
    <description>&lt;!--!*#--&gt;My C++ knowledge is remarkably weak, but I&lt;BR /&gt;get better results when I include one more&lt;BR /&gt;statement, and when I use a C++ compiler:&lt;BR /&gt;&lt;BR /&gt;dy # cat ex1a.cpp&lt;BR /&gt;#include &lt;IOSTREAM&gt;&lt;BR /&gt;&lt;BR /&gt;using namespace std;&lt;BR /&gt;&lt;BR /&gt;int main()&lt;BR /&gt;{&lt;BR /&gt;    cout &amp;lt;&amp;lt;" Hello World "&amp;lt;&amp;lt; endl;&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;dy # g++ ex1a.cpp&lt;BR /&gt;&lt;BR /&gt;dy # ./a.out&lt;BR /&gt; Hello World&lt;BR /&gt;&lt;BR /&gt;For the record:&lt;BR /&gt;&lt;BR /&gt;dy # uname -a&lt;BR /&gt;HP-UX dy B.11.11 U 9000/785 2012616114 unlimited-user license&lt;BR /&gt;&lt;BR /&gt;dy # g++ --version&lt;BR /&gt;g++ (GCC) 4.2.2&lt;BR /&gt;[...]&lt;/IOSTREAM&gt;</description>
    <pubDate>Thu, 29 Nov 2007 15:31:28 GMT</pubDate>
    <dc:creator>Steven Schweda</dc:creator>
    <dc:date>2007-11-29T15:31:28Z</dc:date>
    <item>
      <title>Compilation problem with HP UNIC GCC</title>
      <link>https://community.hpe.com/t5/operating-system-linux/compilation-problem-with-hp-unic-gcc/m-p/5082084#M92646</link>
      <description>Hi All,&lt;BR /&gt;&lt;BR /&gt;      I have installed GCC-4.2.1 and trying to compile the sample cpp file.&lt;BR /&gt;&lt;BR /&gt;      my cpp file ex1.cpp looks as below&lt;BR /&gt;&lt;BR /&gt;   #include &lt;IOSTREAM&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;    int main()&lt;BR /&gt;    {&lt;BR /&gt;       cout &amp;lt;&amp;lt;" Hello World "&amp;lt;&amp;lt; endl;&lt;BR /&gt;&lt;BR /&gt;       }&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;if i give gcc ex1.cpp&lt;BR /&gt;&lt;BR /&gt;     the following errors are popping up. &lt;BR /&gt;&lt;BR /&gt;ld: Unsatisfied symbol "std::basic_string&lt;CHAR&gt;, std::allocator&lt;CHAR&gt; &amp;gt;::size() const" in file /var/tmp//cc3k7lkb.o&lt;BR /&gt;ld: Unsatisfied symbol "__gxx_personality_v0" in file /var/tmp//cc3k7lkb.o&lt;BR /&gt;ld: Unsatisfied symbol "std::basic_string&lt;CHAR&gt;, std::allocator&lt;CHAR&gt; &amp;gt;::operator[](unsigned long) const" in file /var/tmp//cc3k7lkb.o&lt;BR /&gt;ld: Unsatisfied symbol "std::ios_base::Init::~Init()" in file /var/tmp//cc3k7lkb.o&lt;BR /&gt;ld: Unsatisfied symbol "std::ios_base::Init::Init()" in file /var/tmp//cc3k7lkb.o&lt;BR /&gt;5 errors.&lt;BR /&gt;collect2: ld returned 1 exit status&lt;BR /&gt;bash-2.04$&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;    Can anybody tell me what is happening here?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;  thanks and regards&lt;BR /&gt;Vikram&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/CHAR&gt;&lt;/CHAR&gt;&lt;/CHAR&gt;&lt;/CHAR&gt;&lt;/IOSTREAM&gt;</description>
      <pubDate>Thu, 29 Nov 2007 14:12:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/compilation-problem-with-hp-unic-gcc/m-p/5082084#M92646</guid>
      <dc:creator>CA1490051</dc:creator>
      <dc:date>2007-11-29T14:12:48Z</dc:date>
    </item>
    <item>
      <title>Re: Compilation problem with HP UNIC GCC</title>
      <link>https://community.hpe.com/t5/operating-system-linux/compilation-problem-with-hp-unic-gcc/m-p/5082085#M92647</link>
      <description>&lt;!--!*#--&gt;My C++ knowledge is remarkably weak, but I&lt;BR /&gt;get better results when I include one more&lt;BR /&gt;statement, and when I use a C++ compiler:&lt;BR /&gt;&lt;BR /&gt;dy # cat ex1a.cpp&lt;BR /&gt;#include &lt;IOSTREAM&gt;&lt;BR /&gt;&lt;BR /&gt;using namespace std;&lt;BR /&gt;&lt;BR /&gt;int main()&lt;BR /&gt;{&lt;BR /&gt;    cout &amp;lt;&amp;lt;" Hello World "&amp;lt;&amp;lt; endl;&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;dy # g++ ex1a.cpp&lt;BR /&gt;&lt;BR /&gt;dy # ./a.out&lt;BR /&gt; Hello World&lt;BR /&gt;&lt;BR /&gt;For the record:&lt;BR /&gt;&lt;BR /&gt;dy # uname -a&lt;BR /&gt;HP-UX dy B.11.11 U 9000/785 2012616114 unlimited-user license&lt;BR /&gt;&lt;BR /&gt;dy # g++ --version&lt;BR /&gt;g++ (GCC) 4.2.2&lt;BR /&gt;[...]&lt;/IOSTREAM&gt;</description>
      <pubDate>Thu, 29 Nov 2007 15:31:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/compilation-problem-with-hp-unic-gcc/m-p/5082085#M92647</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2007-11-29T15:31:28Z</dc:date>
    </item>
    <item>
      <title>Re: Compilation problem with HP UNIC GCC</title>
      <link>https://community.hpe.com/t5/operating-system-linux/compilation-problem-with-hp-unic-gcc/m-p/5082086#M92648</link>
      <description>try g++</description>
      <pubDate>Thu, 29 Nov 2007 21:00:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/compilation-problem-with-hp-unic-gcc/m-p/5082086#M92648</guid>
      <dc:creator>Srimalik</dc:creator>
      <dc:date>2007-11-29T21:00:28Z</dc:date>
    </item>
    <item>
      <title>Re: Compilation problem with HP UNIC GCC</title>
      <link>https://community.hpe.com/t5/operating-system-linux/compilation-problem-with-hp-unic-gcc/m-p/5082087#M92649</link>
      <description>&lt;!--!*#--&gt;&amp;gt; try g++&lt;BR /&gt;&lt;BR /&gt;Now, why didn't I think of that?  No, wait.&lt;BR /&gt;I did.&lt;BR /&gt;&lt;BR /&gt;On the other hand:&lt;BR /&gt;&lt;BR /&gt;dy # g++ ex1.cpp&lt;BR /&gt;ex1.cpp: In function 'int main()':&lt;BR /&gt;ex1.cpp:5: error: 'cout' was not declared in this scope&lt;BR /&gt;ex1.cpp:5: error: 'endl' was not declared in this scope&lt;BR /&gt;&lt;BR /&gt;which is why I added:&lt;BR /&gt;&lt;BR /&gt;using namespace std;&lt;BR /&gt;&lt;BR /&gt;Sometimes it pays actually to _try_ a&lt;BR /&gt;suggestion before offering it.&lt;BR /&gt;&lt;BR /&gt;But thanks for playing.</description>
      <pubDate>Thu, 29 Nov 2007 21:13:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/compilation-problem-with-hp-unic-gcc/m-p/5082087#M92649</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2007-11-29T21:13:10Z</dc:date>
    </item>
    <item>
      <title>Re: Compilation problem with HP UNIC GCC</title>
      <link>https://community.hpe.com/t5/operating-system-linux/compilation-problem-with-hp-unic-gcc/m-p/5082088#M92650</link>
      <description>Hi Steve,&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;    yes it is working with g++, but problem i have to use gcc only. I also tried adding &lt;BR /&gt;&lt;BR /&gt;     using namespace std;&lt;BR /&gt;&lt;BR /&gt;     but not working!!!!!&lt;BR /&gt;      Also i want to clearify her, whether both   &lt;BR /&gt; gcc and g++ are same ?  Can a g++ compiler compile complex and big C programs ?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;thanks and regards&lt;BR /&gt;Vikram</description>
      <pubDate>Thu, 29 Nov 2007 21:48:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/compilation-problem-with-hp-unic-gcc/m-p/5082088#M92650</guid>
      <dc:creator>CA1490051</dc:creator>
      <dc:date>2007-11-29T21:48:55Z</dc:date>
    </item>
    <item>
      <title>Re: Compilation problem with HP UNIC GCC</title>
      <link>https://community.hpe.com/t5/operating-system-linux/compilation-problem-with-hp-unic-gcc/m-p/5082089#M92651</link>
      <description>&amp;gt; [...] i have to use gcc only. [...]&lt;BR /&gt;&lt;BR /&gt;Why?  gcc is a C compiler.  g++ is a C++&lt;BR /&gt;compiler.  Both are included in the GCC (the&lt;BR /&gt;GNU Compiler Collection).&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://gcc.gnu.org/" target="_blank"&gt;http://gcc.gnu.org/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&amp;gt; [...] but not working!!!!!&lt;BR /&gt;&lt;BR /&gt;If I can show you exactly what did work, why&lt;BR /&gt;can't you show us exactly what didn't work?&lt;BR /&gt;&lt;BR /&gt;&amp;gt; [...] whether both&lt;BR /&gt;&amp;gt; gcc and g++ are same ?&lt;BR /&gt;&lt;BR /&gt;Do they do the same things?  Obviously not.&lt;BR /&gt;&lt;BR /&gt;&amp;gt; Can a g++ compiler compile complex and big&lt;BR /&gt;&amp;gt; C programs ?&lt;BR /&gt;&lt;BR /&gt;Why would I use a C++ compiler on a complex&lt;BR /&gt;and big C program?  Or any other C program?&lt;BR /&gt;I normally use a C compiler on a C program,&lt;BR /&gt;and a C++ compiler on a C++ program.  It only&lt;BR /&gt;_seems_ more complicated that way.</description>
      <pubDate>Thu, 29 Nov 2007 22:21:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/compilation-problem-with-hp-unic-gcc/m-p/5082089#M92651</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2007-11-29T22:21:34Z</dc:date>
    </item>
    <item>
      <title>Re: Compilation problem with HP UNIC GCC</title>
      <link>https://community.hpe.com/t5/operating-system-linux/compilation-problem-with-hp-unic-gcc/m-p/5082090#M92652</link>
      <description>My C and C++ is weak , but as far as I remember gcc is GNU C compliler and g++ is C++ compiler and so C++ program cannot be compiled with gcc.&lt;BR /&gt;&lt;BR /&gt;You may check google gcc vs g++&lt;BR /&gt;Hope this help!!!&lt;BR /&gt;BR,&lt;BR /&gt;Kapil</description>
      <pubDate>Thu, 29 Nov 2007 22:47:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/compilation-problem-with-hp-unic-gcc/m-p/5082090#M92652</guid>
      <dc:creator>Kapil Jha</dc:creator>
      <dc:date>2007-11-29T22:47:34Z</dc:date>
    </item>
    <item>
      <title>Re: Compilation problem with HP UNIC GCC</title>
      <link>https://community.hpe.com/t5/operating-system-linux/compilation-problem-with-hp-unic-gcc/m-p/5082091#M92653</link>
      <description>&amp;gt;Steven: why can't you show us exactly what didn't work?&lt;BR /&gt;&lt;BR /&gt;This should be obvious.  :-) It seems that gcc will compile C++ sources.  But it won't link them.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;Why would I use a C++ compiler on a complex and big C program?&lt;BR /&gt;&lt;BR /&gt;Because you want the extra strong type checking? :-)&lt;BR /&gt;&lt;BR /&gt;&amp;gt;I normally use a C compiler on a C program,&lt;BR /&gt;and a C++ compiler on a C++ program.&lt;BR /&gt;&lt;BR /&gt;Exactly.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;I get better results when I include one more statement: using namespace std;&lt;BR /&gt;&lt;BR /&gt;If you are using aC++ and going back and forth between -AP and -AA, you should use:&lt;BR /&gt;namespace std {} using namespace std;</description>
      <pubDate>Thu, 29 Nov 2007 23:19:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/compilation-problem-with-hp-unic-gcc/m-p/5082091#M92653</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2007-11-29T23:19:26Z</dc:date>
    </item>
    <item>
      <title>Re: Compilation problem with HP UNIC GCC</title>
      <link>https://community.hpe.com/t5/operating-system-linux/compilation-problem-with-hp-unic-gcc/m-p/5082092#M92654</link>
      <description>Hi All,&lt;BR /&gt;&lt;BR /&gt;  My Cpp code is as follows &lt;BR /&gt;&lt;BR /&gt;  #include &lt;IOSTREAM&gt;&lt;BR /&gt;    using namespace std;&lt;BR /&gt;&lt;BR /&gt;int main()&lt;BR /&gt;{&lt;BR /&gt;cout &amp;lt;&amp;lt;" Hello World "&amp;lt;&amp;lt; endl;&lt;BR /&gt;&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;And the error messages i am getting is as follows.&lt;BR /&gt;&lt;BR /&gt;bash-2.04$ gcc HelloWorld.cpp&lt;BR /&gt;ld: Unsatisfied symbol "std::basic_string&lt;CHAR&gt;, std::allocator&lt;CHAR&gt; &amp;gt;::size() const" in file /var/tmp//ccZjzzfc.o&lt;BR /&gt;ld: Unsatisfied symbol "__gxx_personality_v0" in file /var/tmp//ccZjzzfc.o&lt;BR /&gt;ld: Unsatisfied symbol "std::basic_string&lt;CHAR&gt;, std::allocator&lt;CHAR&gt; &amp;gt;::operator[](unsigned long) const" in file /var/tmp//ccZjzzfc.o&lt;BR /&gt;ld: Unsatisfied symbol "std::ios_base::Init::~Init()" in file /var/tmp//ccZjzzfc.o&lt;BR /&gt;ld: Unsatisfied symbol "std::basic_ostream&lt;CHAR&gt; &amp;gt;::operator&amp;lt;&amp;lt;(std::basic_ostream&lt;CHAR&gt; &amp;gt;&amp;amp; (*)(std::basic_ostream&lt;CHAR&gt; &amp;gt;&amp;amp;))" in file /var/tmp//ccZjzzfc.o&lt;BR /&gt;ld: Unsatisfied symbol "std::ios_base::Init::Init()" in file /var/tmp//ccZjzzfc.o&lt;BR /&gt;ld: Unsatisfied symbol "std::basic_ostream&lt;CHAR&gt; &amp;gt;&amp;amp; std::operator&amp;lt;&amp;lt; &amp;lt;:char_traits&amp;gt; &amp;gt;(std::basic_ostream&lt;CHAR&gt; &amp;gt;&amp;amp;, char const*)" in file /var/tmp//ccZjzzfc.o&lt;BR /&gt;ld: Unsatisfied symbol "std::basic_ostream&lt;CHAR&gt; &amp;gt;&amp;amp; std::endl&lt;CHAR&gt; &amp;gt;(std::basic_ostream&lt;CHAR&gt; &amp;gt;&amp;amp;)" in file /var/tmp//ccZjzzfc.o&lt;BR /&gt;ld: Unsatisfied symbol "std::cout" in file /var/tmp//ccZjzzfc.o&lt;BR /&gt;9 errors.&lt;BR /&gt;collect2: ld returned 1 exit status&lt;BR /&gt;bash-2.04$ &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;  I thought gcc and g++ are similar. But, now it seems gcc cannot be used for c++ programs.&lt;BR /&gt;   The reason i want to use gcc is i want to link to a library file that is generated by gcc (library contains just a function which i want to call from the C++ Program ).&lt;BR /&gt;&lt;BR /&gt;  My idea is not to cause any conflicts between the lib file and the code which i want to compile with g++...&lt;BR /&gt;&lt;BR /&gt;  Since both are GNU compilers i think there should not be any conflicts?&lt;BR /&gt;&lt;BR /&gt;  Please correct me if i am wrong..&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;thanks and regards&lt;BR /&gt;Vikram&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/CHAR&gt;&lt;/CHAR&gt;&lt;/CHAR&gt;&lt;/CHAR&gt;&lt;/CHAR&gt;&lt;/CHAR&gt;&lt;/CHAR&gt;&lt;/CHAR&gt;&lt;/CHAR&gt;&lt;/CHAR&gt;&lt;/CHAR&gt;&lt;/CHAR&gt;&lt;/IOSTREAM&gt;</description>
      <pubDate>Thu, 29 Nov 2007 23:47:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/compilation-problem-with-hp-unic-gcc/m-p/5082092#M92654</guid>
      <dc:creator>CA1490051</dc:creator>
      <dc:date>2007-11-29T23:47:21Z</dc:date>
    </item>
    <item>
      <title>Re: Compilation problem with HP UNIC GCC</title>
      <link>https://community.hpe.com/t5/operating-system-linux/compilation-problem-with-hp-unic-gcc/m-p/5082093#M92655</link>
      <description>&lt;!--!*#--&gt;&amp;gt; I thought gcc and g++ are similar.&lt;BR /&gt;&lt;BR /&gt;They are related, but they have different&lt;BR /&gt;names for a reason.&lt;BR /&gt;&lt;BR /&gt;&amp;gt; The reason i want to use gcc is i want to&lt;BR /&gt;&amp;gt; link to a library file that is generated by&lt;BR /&gt;&amp;gt; gcc (library contains just a function which&lt;BR /&gt;&amp;gt; i want to call from the C++ Program ).&lt;BR /&gt;&lt;BR /&gt;I would not expect any special problems doing&lt;BR /&gt;that.  There are some things which you may&lt;BR /&gt;need to do with the C function prototypes in&lt;BR /&gt;your C++ code, but that's normal.&lt;BR /&gt;&lt;BR /&gt;I would try a making a simple C++ program&lt;BR /&gt;which calls one of the functions in your C&lt;BR /&gt;library, compile the C code with gcc, compile&lt;BR /&gt;the C++ code with g++, and link using g++.&lt;BR /&gt;If that fails, come back with the new error&lt;BR /&gt;messages.&lt;BR /&gt;&lt;BR /&gt;If you've never seen anything like this:&lt;BR /&gt;&lt;BR /&gt;#ifdef __cplusplus&lt;BR /&gt;    extern "C" {&lt;BR /&gt;#endif&lt;BR /&gt;&lt;BR /&gt;then you'll probably need to do some reading&lt;BR /&gt;on how to combine C and C++ programs.</description>
      <pubDate>Fri, 30 Nov 2007 00:03:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/compilation-problem-with-hp-unic-gcc/m-p/5082093#M92655</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2007-11-30T00:03:35Z</dc:date>
    </item>
    <item>
      <title>Re: Compilation problem with HP UNIC GCC</title>
      <link>https://community.hpe.com/t5/operating-system-linux/compilation-problem-with-hp-unic-gcc/m-p/5082094#M92656</link>
      <description>&amp;gt;The reason i want to use gcc is i want to link to a library file that is generated by gcc &lt;BR /&gt;&lt;BR /&gt;You still need g++ to link.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;My idea is not to cause any conflicts between the lib file and the code which i want to compile with g++&lt;BR /&gt;&lt;BR /&gt;Mangling issues have to be solved with source changes, as Steven mentions.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;Since both are GNU compilers i think there should not be any conflicts?&lt;BR /&gt;&lt;BR /&gt;It's the same ABI.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;Steven: then you'll probably need to do some reading on how to combine C and C++ programs.&lt;BR /&gt;&lt;BR /&gt;See the following:&lt;BR /&gt;&lt;A href="http://docs.hp.com/en/10946/otherlangs.htm#callinghpc" target="_blank"&gt;http://docs.hp.com/en/10946/otherlangs.htm#callinghpc&lt;/A&gt;</description>
      <pubDate>Fri, 30 Nov 2007 00:22:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/compilation-problem-with-hp-unic-gcc/m-p/5082094#M92656</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2007-11-30T00:22:15Z</dc:date>
    </item>
    <item>
      <title>Re: Compilation problem with HP UNIC GCC</title>
      <link>https://community.hpe.com/t5/operating-system-linux/compilation-problem-with-hp-unic-gcc/m-p/5082095#M92657</link>
      <description>Hi All,&lt;BR /&gt;&lt;BR /&gt;        Thank you very much for your support&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;thanks and regards&lt;BR /&gt;Vikram</description>
      <pubDate>Fri, 30 Nov 2007 06:01:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/compilation-problem-with-hp-unic-gcc/m-p/5082095#M92657</guid>
      <dc:creator>CA1490051</dc:creator>
      <dc:date>2007-11-30T06:01:07Z</dc:date>
    </item>
    <item>
      <title>Re: Compilation problem with HP UNIC GCC</title>
      <link>https://community.hpe.com/t5/operating-system-linux/compilation-problem-with-hp-unic-gcc/m-p/5082096#M92658</link>
      <description>&lt;BR /&gt;Now, why didn't I think of that?  No, wait.&lt;BR /&gt;I did.&lt;BR /&gt;&lt;BR /&gt;On the other hand:&lt;BR /&gt;&lt;BR /&gt;dy # g++ ex1.cpp&lt;BR /&gt;ex1.cpp: In function 'int main()':&lt;BR /&gt;ex1.cpp:5: error: 'cout' was not declared in this scope&lt;BR /&gt;ex1.cpp:5: error: 'endl' was not declared in this scope&lt;BR /&gt;&lt;BR /&gt;These errors can be solved by two ways:&lt;BR /&gt;&lt;BR /&gt;1) using namspace std directive.&lt;BR /&gt;2) changing #include&lt;IOSTREAM&gt; to &lt;IOSTREAM.H&gt;&lt;BR /&gt;&lt;BR /&gt;The second one will give a warning though, as using iostream.h is depricated.&lt;BR /&gt;&lt;/IOSTREAM.H&gt;&lt;/IOSTREAM&gt;</description>
      <pubDate>Fri, 30 Nov 2007 12:18:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/compilation-problem-with-hp-unic-gcc/m-p/5082096#M92658</guid>
      <dc:creator>Srimalik</dc:creator>
      <dc:date>2007-11-30T12:18:35Z</dc:date>
    </item>
    <item>
      <title>Re: Compilation problem with HP UNIC GCC</title>
      <link>https://community.hpe.com/t5/operating-system-linux/compilation-problem-with-hp-unic-gcc/m-p/5082097#M92659</link>
      <description>&amp;gt;Srikrishan: These errors can be solved by two ways:&lt;BR /&gt;&lt;BR /&gt;You forgot qualification:&lt;BR /&gt; std::cout &amp;lt;&amp;lt;" Hello World "&amp;lt;&amp;lt; std::endl;</description>
      <pubDate>Fri, 30 Nov 2007 14:43:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/compilation-problem-with-hp-unic-gcc/m-p/5082097#M92659</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2007-11-30T14:43:08Z</dc:date>
    </item>
    <item>
      <title>Re: Compilation problem with HP UNIC GCC</title>
      <link>https://community.hpe.com/t5/operating-system-linux/compilation-problem-with-hp-unic-gcc/m-p/5082098#M92660</link>
      <description>symptoms of old age :)</description>
      <pubDate>Sat, 01 Dec 2007 00:46:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/compilation-problem-with-hp-unic-gcc/m-p/5082098#M92660</guid>
      <dc:creator>Srimalik</dc:creator>
      <dc:date>2007-12-01T00:46:13Z</dc:date>
    </item>
  </channel>
</rss>

