[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[no subject]



I'm trying to build (in Fedora-C3) an app with gcc-3.4.2 that used to be
built (in RH-7.3) with gcc-2.95.x, and I'm having trouble with (I think)
some anachronisms.

The module uses:
 #include <fstream>

The build then fails on the declaration:

  fstream f(PREPROG_FNAME, ios::out);

with the message:
 "preprogrammed.cc:201: error: `fstream' undeclared (first use this
function)"

If instead I use:
 #include <fstream.h>

the build fails to find 'ios'.

I don't see the "backwards" compatibility warning in the build trace. How
should this migration be handled? Do I just need to add '-I...' paths, and
if so, what should I use?

TIA.
 - Mills


</pre>
<!--X-Body-of-Message-End-->
<!--X-MsgBody-End-->
<!--X-Follow-Ups-->
<hr>
<ul><li><strong>Follow-Ups</strong>:
<ul>
<li><strong><a name="00751" href="msg00751.html">[ale] gcc-3.4.2 backwards-incompatibility?</a></strong>
<ul><li><em>From:</em> fd0man at gmail.com (Michael B. Trausch)</li></ul></li>
<li><strong><a name="00772" href="msg00772.html">[ale] gcc-3.4.2 backwards-incompatibility?</a></strong>
<ul><li><em>From:</em> jkf at wolfnet.org (Jason Fritcher)</li></ul></li>
</ul></li></ul>
<!--X-Follow-Ups-End-->
<!--X-References-->
<!--X-References-End-->
<!--X-BotPNI-->
<ul>
<li>Prev by Date:
<strong><a href="msg00749.html">[ale] HOW2 enable &quot;attachments&quot; under Evolution ?</a></strong>
</li>
<li>Next by Date:
<strong><a href="msg00751.html">[ale] gcc-3.4.2 backwards-incompatibility?</a></strong>
</li>
<li>Previous by thread:
<strong><a href="msg00745.html">[ale] Problem with hplip installation</a></strong>
</li>
<li>Next by thread:
<strong><a href="msg00751.html">[ale] gcc-3.4.2 backwards-incompatibility?</a></strong>
</li>
<li>Index(es):
<ul>
<li><a href="maillist.html#00750"><strong>Date</strong></a></li>
<li><a href="threads.html#00750"><strong>Thread</strong></a></li>
</ul>
</li>
</ul>

<!--X-BotPNI-End-->
<!--X-User-Footer-->
<!--X-User-Footer-End-->
</body>
</html>