From: Richard Wagner Newsgroups: comp.os.msdos.djgpp Subject: Re: (3) HELP Please with C++ Date: Sun, 20 Jul 2003 11:18:55 -0400 Organization: Posted via Supernews, http://www.supernews.com Message-ID: <6eclhvc4tdlmredb31vl9rpiotjkeoflbo@4ax.com> References: <3405-Sun20Jul2003112929+0300-eliz AT elta DOT co DOT il> X-Newsreader: Forte Agent 1.91/32.564 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Complaints-To: abuse AT supernews DOT com Lines: 58 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com WOW! Who sayz you kan't teech an old dawg gnu triques !!! * C++ */ #include using namespace std; int main(void) { cout << "Hello World!" << endl; } .....A 07-20-2003 11:12:30 118 8CB9B5E4 Hw1.cpp .....A 07-20-2003 11:13:02 253952 3F7FEA21 hw1.exe gxx -s Hw1.cpp -o hw1.exe All I needed to learn was this magical gem: using namespace std; I wonder what other discoveries are to be made ;-) WHO else wants in (the discussion)... KEEP it going! WHATS your opinion of: C++ In Plain English, Brian Overland.... most superb book I've seen! //RadSurfer// On Sun, 20 Jul 2003 11:29:30 +0200, "Eli Zaretskii" wrote: >> From: RadSurfer >> Newsgroups: comp.os.msdos.djgpp >> Date: Sun, 20 Jul 2003 02:29:54 -0400 >> >> Why is the C++ executable 507,145 bytes??? >> >> yikes! >> >> More discussion please.... >> How does one get the EXE size down to something practical? > >By reading the FAQ, of course (section 8.14). > >> BTW: A nearly similar Borland BCC32 compile of HW.CPP >> results in >> .....A 07-20-2003 01:42 100 5357307D HW.CPP >> .....A 07-20-2003 01:42 4958 95E194DE HW.obj >> .....A 07-20-2003 01:42 143360 53C13363 HW.exe >> >> 1/5th the EXE size of the DJGPP !! > >I'm guessing that BCC32 supports a subset of ANSI C++ and that its >exe file is stripped of debugging info. Again, see the FAQ for more >about this.