<?xml version="1.0" encoding="iso-8859-1"?>
<rss version="2.0">
<channel>
  <title>Linux Format forums</title>
  <link>http://www.linuxformat.com/forums/index.php</link>
  <description>Help, discussion, magazine feedback and more</description>
  <language>english</language>
  <copyright>(c) Copyright Thu May 23, 2013 3:38 am by Linux Format forums</copyright>
  <managingEditor>webmaster@linuxformat.com</managingEditor>
  <webMaster>webmaster@linuxformat.com</webMaster>
  <pubDate>Thu May 23, 2013 3:38 am</pubDate>
  <lastBuildDate>Thu May 23, 2013 3:38 am</lastBuildDate>
  <docs>http://backend.userland.com/rss</docs>
  <generator>phpBB2 RSS Syndication Mod by Lucas</generator>
  <ttl>1</ttl>

  <image>
    <title>Linux Format forums</title>
    <url></url>
    <link>http://www.linuxformat.com/forums/</link>
    <description>Help, discussion, magazine feedback and more</description>
  </image>

                                      <item>
                                        <title>RE: depreciated libraries</title>
                                        <link>http://www.linuxformat.com/forums/viewtopic.php?p=26025#26025</link>
                                        <description>&lt;br /&gt;
                                      Author: &lt;a href='http://www.linuxformat.com/forums/profile.php?mode=viewprofile&amp;u=115'&gt;Gordon&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;
                                      Posted: Sun Jun 25, 2006 10:12 am&lt;br /&gt;&lt;br /&gt;
                                      &lt;br /&gt;&lt;br /&gt;
                                      What warning did you get when you used the &amp;lt;iostream&amp;gt; declaration?</description>
                                        <comments>http://www.linuxformat.com/forums/viewtopic.php?p=26025#26025</comments>
                                        <author>Gordon</author>
                                        <pubDate>Sun Jun 25, 2006 10:12 am</pubDate>
                                        <guid isPermaLink="true">http://www.linuxformat.com/forums/viewtopic.php?p=26025#26025</guid>
                                      </item>
                                      <item>
                                        <title>RE: depreciated libraries</title>
                                        <link>http://www.linuxformat.com/forums/viewtopic.php?p=25984#25984</link>
                                        <description>&lt;br /&gt;
                                      Author: &lt;a href='http://www.linuxformat.com/forums/profile.php?mode=viewprofile&amp;u=5530'&gt;GMorgan&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;
                                      Posted: Sat Jun 24, 2006 2:17 am&lt;br /&gt;&lt;br /&gt;
                                      &lt;br /&gt;&lt;br /&gt;
                                      iostream is the central input and output header for C++, its crucial to most C++ programs. You could use cstdio or stdio.h* but that is orignal C rather than C++. Your using Ubuntu aren't you, have you tried sudo apt-get install build-essential, it should ensure that your uptodate with the libraries.&lt;br /&gt;
&lt;br /&gt;
*the original C headers used the .h notation. In C++ they dropped the .h. C++ also included original C functions repacked for C++ but with c in front of the original name. Hence stdio.h becomes cstdio, they both perform the same functions. iostream should work though and is the standard way of doing things in C++.</description>
                                        <comments>http://www.linuxformat.com/forums/viewtopic.php?p=25984#25984</comments>
                                        <author>GMorgan</author>
                                        <pubDate>Sat Jun 24, 2006 2:17 am</pubDate>
                                        <guid isPermaLink="true">http://www.linuxformat.com/forums/viewtopic.php?p=25984#25984</guid>
                                      </item>
                                      <item>
                                        <title>RE: depreciated libraries</title>
                                        <link>http://www.linuxformat.com/forums/viewtopic.php?p=25974#25974</link>
                                        <description>&lt;br /&gt;
                                      Author: &lt;a href='http://www.linuxformat.com/forums/profile.php?mode=viewprofile&amp;u=127'&gt;alloydog&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;
                                      Posted: Fri Jun 23, 2006 8:08 pm&lt;br /&gt;&lt;br /&gt;
                                      &lt;br /&gt;&lt;br /&gt;
                                      The full warning is:&lt;br /&gt;
&lt;/span&gt;&lt;table width=&quot;90%&quot; cellspacing=&quot;1&quot; cellpadding=&quot;3&quot; border=&quot;0&quot; align=&quot;center&quot;&gt;&lt;tr&gt; 	  &lt;td&gt;&lt;span class=&quot;genmed&quot;&gt;&lt;b&gt;Code:&lt;/b&gt;&lt;/span&gt;&lt;/td&gt;	&lt;/tr&gt;	&lt;tr&gt;	  &lt;td class=&quot;code&quot;&gt;#ifdef __DEPRECATED&lt;br /&gt;
#warning This file includes at least one deprecated or antiquated header. \&lt;br /&gt;
Please consider using one of the 32 headers found in section 17.4.1.2 of the&lt;br /&gt;
C++ standard.&amp;nbsp; Examples include substituting the &amp;lt;X&amp;gt; heqader for the &amp;gt;X.h&amp;gt; \&lt;br /&gt;
header for C++ includes, or &amp;lt;sstream&amp;gt; instead of the deprecated header \&lt;br /&gt;
&amp;lt;strstream.h&amp;gt;&amp;nbsp; To diasble this warning use -Wno-deprecated.&lt;br /&gt;
#endif&lt;/td&gt;	&lt;/tr&gt;&lt;/table&gt;&lt;span class=&quot;postbody&quot;&gt; I tried using just &lt;span style=&quot;font-weight: bold&quot;&gt;&amp;lt;iostream&amp;gt;&lt;/span&gt;, but I then got a different warning.&lt;br /&gt;
I think &lt;span style=&quot;font-weight: bold&quot;&gt;&amp;lt;iostream&amp;gt;&lt;/span&gt; has been replaced with something different.&lt;br /&gt;
&lt;br /&gt;
Using &lt;span style=&quot;font-weight: bold&quot;&gt;&amp;lt;iostream.h&amp;gt;&lt;/span&gt;, the programme still compiled and ran OK.&lt;br /&gt;
&lt;br /&gt;
I am using the &quot;&lt;span style=&quot;font-style: italic&quot;&gt;Teach Yourself C++ in 21 days&lt;/span&gt;&quot;.</description>
                                        <comments>http://www.linuxformat.com/forums/viewtopic.php?p=25974#25974</comments>
                                        <author>alloydog</author>
                                        <pubDate>Fri Jun 23, 2006 8:08 pm</pubDate>
                                        <guid isPermaLink="true">http://www.linuxformat.com/forums/viewtopic.php?p=25974#25974</guid>
                                      </item>
                                      <item>
                                        <title>RE: depreciated libraries</title>
                                        <link>http://www.linuxformat.com/forums/viewtopic.php?p=25971#25971</link>
                                        <description>&lt;br /&gt;
                                      Author: &lt;a href='http://www.linuxformat.com/forums/profile.php?mode=viewprofile&amp;u=115'&gt;Gordon&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;
                                      Posted: Fri Jun 23, 2006 5:04 pm&lt;br /&gt;&lt;br /&gt;
                                      &lt;br /&gt;&lt;br /&gt;
                                      This warning means that you have used the declaration&lt;br /&gt;
&lt;/span&gt;&lt;table width=&quot;90%&quot; cellspacing=&quot;1&quot; cellpadding=&quot;3&quot; border=&quot;0&quot; align=&quot;center&quot;&gt;&lt;tr&gt; 	  &lt;td&gt;&lt;span class=&quot;genmed&quot;&gt;&lt;b&gt;Code:&lt;/b&gt;&lt;/span&gt;&lt;/td&gt;	&lt;/tr&gt;	&lt;tr&gt;	  &lt;td class=&quot;code&quot;&gt;&lt;br /&gt;
#include &amp;lt;iostream.h&amp;gt;&lt;br /&gt;
&lt;/td&gt;	&lt;/tr&gt;&lt;/table&gt;&lt;span class=&quot;postbody&quot;&gt;&lt;br /&gt;
inside your source file but for proper C++ you neead to use&lt;br /&gt;
&lt;/span&gt;&lt;table width=&quot;90%&quot; cellspacing=&quot;1&quot; cellpadding=&quot;3&quot; border=&quot;0&quot; align=&quot;center&quot;&gt;&lt;tr&gt; 	  &lt;td&gt;&lt;span class=&quot;genmed&quot;&gt;&lt;b&gt;Code:&lt;/b&gt;&lt;/span&gt;&lt;/td&gt;	&lt;/tr&gt;	&lt;tr&gt;	  &lt;td class=&quot;code&quot;&gt;&lt;br /&gt;
#include &amp;lt;iostream&amp;gt;&lt;br /&gt;
&lt;/td&gt;	&lt;/tr&gt;&lt;/table&gt;&lt;span class=&quot;postbody&quot;&gt;&lt;br /&gt;
For the proper (2nd) method to work correctly you may also need to use the statement&lt;br /&gt;
&lt;/span&gt;&lt;table width=&quot;90%&quot; cellspacing=&quot;1&quot; cellpadding=&quot;3&quot; border=&quot;0&quot; align=&quot;center&quot;&gt;&lt;tr&gt; 	  &lt;td&gt;&lt;span class=&quot;genmed&quot;&gt;&lt;b&gt;Code:&lt;/b&gt;&lt;/span&gt;&lt;/td&gt;	&lt;/tr&gt;	&lt;tr&gt;	  &lt;td class=&quot;code&quot;&gt;&lt;br /&gt;
using namespace std;&lt;br /&gt;
&lt;/td&gt;	&lt;/tr&gt;&lt;/table&gt;&lt;span class=&quot;postbody&quot;&gt;&lt;br /&gt;
somewhere near the beginning of your code and also call the compiler with&lt;br /&gt;
&lt;/span&gt;&lt;table width=&quot;90%&quot; cellspacing=&quot;1&quot; cellpadding=&quot;3&quot; border=&quot;0&quot; align=&quot;center&quot;&gt;&lt;tr&gt; 	  &lt;td&gt;&lt;span class=&quot;genmed&quot;&gt;&lt;b&gt;Code:&lt;/b&gt;&lt;/span&gt;&lt;/td&gt;	&lt;/tr&gt;	&lt;tr&gt;	  &lt;td class=&quot;code&quot;&gt;&lt;br /&gt;
g++ -o helloworld Helloworld.cpp&lt;br /&gt;
&lt;/td&gt;	&lt;/tr&gt;&lt;/table&gt;&lt;span class=&quot;postbody&quot;&gt;&lt;br /&gt;
&lt;br /&gt;
Are you using &quot;Teach Yourself C++ in 21 days&quot; or &quot;Teach yourself C++ for linux in 21 days&quot;?</description>
                                        <comments>http://www.linuxformat.com/forums/viewtopic.php?p=25971#25971</comments>
                                        <author>Gordon</author>
                                        <pubDate>Fri Jun 23, 2006 5:04 pm</pubDate>
                                        <guid isPermaLink="true">http://www.linuxformat.com/forums/viewtopic.php?p=25971#25971</guid>
                                      </item>
                                      <item>
                                        <title>depreciated libraries</title>
                                        <link>http://www.linuxformat.com/forums/viewtopic.php?p=25965#25965</link>
                                        <description>&lt;br /&gt;
                                      Author: &lt;a href='http://www.linuxformat.com/forums/profile.php?mode=viewprofile&amp;u=127'&gt;alloydog&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;
                                      Posted: Fri Jun 23, 2006 12:15 pm&lt;br /&gt;&lt;br /&gt;
                                      &lt;br /&gt;&lt;br /&gt;
                                      I posted this one before, ages ago, but it looks as if it has been cleared out, as the forum posts don't seem to go back that far.&lt;br /&gt;
&lt;br /&gt;
Anyway, When I used &lt;span style=&quot;font-weight: bold&quot;&gt;Xwpe&lt;/span&gt; to compile &lt;span style=&quot;font-weight: bold&quot;&gt;&lt;span style=&quot;font-style: italic&quot;&gt;Helloworld.cpp&lt;/span&gt;&lt;/span&gt;, I got a wordy warning about the library used, in this case &lt;span style=&quot;font-weight: bold&quot;&gt;&lt;span style=&quot;font-style: italic&quot;&gt;iostream.h&lt;/span&gt;&lt;/span&gt; being depreciated.&lt;br /&gt;
&lt;br /&gt;
I am using &quot;&lt;span style=&quot;font-style: italic&quot;&gt;Teach Yourself C++ in 21 Days&lt;/span&gt;&quot;, which is a few years old.&lt;br /&gt;
&lt;br /&gt;
So, what libraries should I be using?</description>
                                        <comments>http://www.linuxformat.com/forums/viewtopic.php?p=25965#25965</comments>
                                        <author>alloydog</author>
                                        <pubDate>Fri Jun 23, 2006 12:15 pm</pubDate>
                                        <guid isPermaLink="true">http://www.linuxformat.com/forums/viewtopic.php?p=25965#25965</guid>
                                      </item></channel></rss>