From: Andrew Cottrell Newsgroups: comp.os.msdos.djgpp Subject: Re: (3) HELP Please with C++ Date: Sun, 20 Jul 2003 18:33:15 +1000 Organization: HOME Message-ID: <4jkkhvou9h0nntcvobpfkoe4s9mcilvnop@4ax.com> References: X-Newsreader: Forte Agent 1.93/32.576 English (American) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Lines: 28 NNTP-Posting-Date: 20 Jul 2003 16:33:15 WST NNTP-Posting-Host: 202.154.115.197 X-Trace: 1058689995 news.swiftel.com.au 6692 202.154.115.197 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com >OK! 2.953 creates a file roughly 520 bytes smaller for 'C' Please do a search in the archives at www.delorie.com and you will get your answer. It has been asked allot. >Why is the C++ executable 507,145 bytes??? See answer above. >How does one get the EXE size down to something practical? Do a search on google for UPX and then search the archives at www.delorie.com for UPX issues, if they are applicable to your setup. >I am lost as to why STD:: is required under DJGPP, and >not under other compilers I have. It would be nice to understand >the reasoning here.... THANKS! It all depends on how old you other C++ compielrs are and which standard they adhere to. The C++ standard has required this for a few years now. Allot of C++ compilers are not compliant with the standard and as such you can get away with it, but with each release of GCC it adheres to the standards (C and C++ are different) more than the previous version. If you want more details on this then have a read of the GCC docs and have a look at the GCC home page on the web to see if you can find more info. Andrew