Message-ID: <20020903040546.17731.qmail@web14806.mail.yahoo.com> Date: Mon, 2 Sep 2002 21:05:46 -0700 (PDT) From: Vikrant Naik Subject: iostream deprecated and file size To: djgpp AT delorie DOT com MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="0-1668370503-1031025946=:16840" 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 header for the header for C++ includes, or instead of the deprecated header . To disable this warning u se -Wno-deprecated." i use #include which i think is the cause of this error. the prog however compiles and i do get the exe. i tried using #include 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, 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

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--