From: eplmst AT lu DOT erisoft DOT se (Martin Stromberg) Newsgroups: comp.os.msdos.djgpp Subject: Re: iostream deprecated and file size Date: 3 Sep 2002 07:02:55 GMT Organization: Ericsson Erisoft AB, Sweden Lines: 72 Message-ID: References: <20020903040546 DOT 17731 DOT qmail AT web14806 DOT mail DOT yahoo DOT com> NNTP-Posting-Host: lws256.lu.erisoft.se X-Newsreader: TIN [version 1.2 PL2] To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Vikrant Naik (nvikrant AT yahoo DOT com) wrote: : --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. Don't do that. Can you explain to me why it would be a good idea to copy files to correct some problem? : 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. You are coding according to an old version of C++. I suggest you get hold of a current book or tutorial and learn current standard C++. If that is not an option downgrade gcc (and gpp) to 2.95.*. : (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' You really want to compile with optimisations. "-O2" is good. However C++ is a complex language so it brings a lot of luggage with itself. : 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. You need to adjust your mail/news tool to break lines at ~70 columns. Thank you. :

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:

Please don't post HTML. Right, MartinS