Mail Archives: djgpp/2002/09/03/03:30:39
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 <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.
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.
: <P>help!</P>
: <P><BR>(1):<BR>i downloaded & installed gpp 3.1 and all other associated zips recently.now when i compile with:<BR>gpp -o file.exe file.cpp</P>
: <P> it tells me:</P>
Please don't post HTML.
Right,
MartinS
- Raw text -