www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2002/09/03/00:07:04

Message-ID: <20020903040546.17731.qmail@web14806.mail.yahoo.com>
Date: Mon, 2 Sep 2002 21:05:46 -0700 (PDT)
From: Vikrant Naik <nvikrant AT yahoo DOT com>
Subject: iostream deprecated and file size
To: djgpp AT delorie DOT com
MIME-Version: 1.0
Reply-To: djgpp AT delorie DOT com

--0-1668370503-1031025946=:16840
Content-Type: text/plain; charset=us-ascii


help!


(1):
i downloaded & installed gpp 3.1 and all other associated zips recently.now when i compile with:
gpp -o file.exe file.cpp

 it tells me:

"In file included from c:/djgpp/lang/cxx-v31/backward/iostream.h:31,
                 from c.cpp:3:
c:/djgpp/lang/cxx-v31/backward/backward_warning.h:32:2: warning: #warning This f
ile includes at least one deprecated or antiquated header. Please consider using
 one of the 32 headers found in section 17.4.1.2 of the C++ standard. Examples i
nclude substituting the <X> header for the <X.h> header for C++ includes, or <ss
tream> instead of the deprecated header <strstream.h>. To disable this warning u
se -Wno-deprecated."

i use #include<iostream.h> which i think is the cause of this error.
the prog however compiles and i do get the exe.
i tried using #include<iostream> as suggested but it says:
" `cout' undeclared (first use this function) ".......etc

i looked into C:\DJGPP\include and it doesnt have iostream.h
i copied the file "iostream" from C:\DJGPP\lang\cxx-v31 into C:\DJGPP\include but that doesnt work, it gives the same 'undeclared...' error.

i copied the file "iostream.h" from C:\DJGPP\lang\cxx-v31\backward into C:\DJGPP\include and then compiled but again the 'deprecated header' error

i commented out #include:     
//#include<iostream.h>, again the 'undeclared...' error.


i've read the faqs but they dont help.is it some library error?.i really dont know what to do.the progs compile and i do get the exes but the message constantly nags.

could someone plz tell me what to do?
someone mentioned something about explicitly stating the namespace. i dont know what that is.


(2):
when  i compile and get the exe, the exe file size is an unbelievable 1.42MB!!! 
ive used: gpp -o file.exe -s file.cpp , the -s switch, and the file size reduces to 255KB which again i think is really too much.when i used an earlier version of DJGPP i did not get such huge file sizes
now every time i have to use UPX to reduce file size which again comes to around 90KB.
can someone please tell me a way to reduce the initial file size.are there any more switches besides '-s'

if you are still with me thank you very much for going through this long email.i'll be  grateful if you can help me.
 thanks in advance.

   Vikrant Naik


 



---------------------------------
Do You Yahoo!?
Yahoo! Finance - Get real-time stock quotes
--0-1668370503-1031025946=:16840
Content-Type: text/html; charset=us-ascii

<P>help!</P>
<P><BR>(1):<BR>i downloaded &amp; installed gpp 3.1 and all other associated zips recently.now when i compile with:<BR>gpp -o file.exe file.cpp</P>
<P>&nbsp;it tells me:</P>
<P>"In file included from c:/djgpp/lang/cxx-v31/backward/iostream.h:31,<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; from c.cpp:3:<BR>c:/djgpp/lang/cxx-v31/backward/backward_warning.h:32:2: warning: #warning This f<BR>ile includes at least one deprecated or antiquated header. Please consider using<BR>&nbsp;one of the 32 headers found in section 17.4.1.2 of the C++ standard. Examples i<BR>nclude substituting the &lt;X&gt; header for the &lt;X.h&gt; header for C++ includes, or &lt;ss<BR>tream&gt; instead of the deprecated header &lt;strstream.h&gt;. To disable this warning u<BR>se -Wno-deprecated."</P>
<P>i use #include&lt;iostream.h&gt; which i think is the cause of this error.<BR>the prog however compiles and i do get the exe.<BR>i tried using #include&lt;iostream&gt; as suggested but it says:<BR>" `cout' undeclared (first use this function) ".......etc</P>
<P>i looked into C:\DJGPP\include and it doesnt have iostream.h<BR>i copied the file "iostream" from C:\DJGPP\lang\cxx-v31 into C:\DJGPP\include but that doesnt work, it gives the same 'undeclared...' error.</P>
<P>i copied the file "iostream.h" from C:\DJGPP\lang\cxx-v31\backward into C:\DJGPP\include and then compiled but again the 'deprecated header' error</P>
<P>i commented out #include:&nbsp;&nbsp;&nbsp;&nbsp; <BR>//#include&lt;iostream.h&gt;, again the 'undeclared...' error.</P>
<P><BR>i've read the faqs but they dont help.is it some library error?.i really dont know what to do.the progs compile and i do get the exes but the message constantly nags.</P>
<P>could someone plz tell me what to do?<BR>someone mentioned something about explicitly stating the namespace. i dont know what that is.</P>
<P><BR>(2):<BR>when&nbsp; i compile and get the exe, the exe file size is an unbelievable 1.42MB!!! <BR>ive used: gpp -o file.exe -s file.cpp , the -s switch, and the file size reduces to 255KB which again i think is really too much.when i used an earlier version of DJGPP i did not get such huge file sizes<BR>now every time i have to use UPX to reduce file size which again comes to around 90KB.<BR>can someone please tell me a way to reduce the initial file size.are there any more switches besides '-s'</P>
<P>if you are still with me thank you very much for going through this long email.i'll be&nbsp; grateful if you can help me.<BR>&nbsp;thanks in advance.</P>
<P>&nbsp;&nbsp; Vikrant Naik</P>
<P><BR>&nbsp;</P><p><br><hr size=1><b>Do You Yahoo!?</b><br>
<a href="http://rd.yahoo.com/finance/mailsig/new/*http://finance.yahoo.com">Yahoo! Finance</a> - Get real-time stock quotes
--0-1668370503-1031025946=:16840--

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019