From: Weiqi Gao Newsgroups: comp.os.msdos.djgpp Subject: Re: djgpp on NT? Date: Mon, 01 Jun 1998 19:43:06 -0500 Organization: Spectrum Healthcare Services Lines: 34 Message-ID: <35734A9A.8A7CCCF6@a.crl.com> References: <19980527010023 DOT AAF19094 AT ppp114 DOT cartsys DOT com> <6kv7n8$2v8$1 AT supernews DOT com> NNTP-Posting-Host: a116016.stl1.as.crl.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk Michael Richardson wrote: > > Ok...Still on NT here, and I'm a newbie...Wanted to ask: Why is it, when I > comile the simple "Hello World!" program, it outputs a 384k file? Consider yourself lucky. On my machine the size is 897k if I compile it in the morning, and a whopping 933k if I compile it in the afternoon. If I change the exclamation mark ("!") to a full stop ("."), the size will go down to about 400k. > When I use gxx hello.cpp -o hello.exe > and the program is: > #include > int main() > { cout << "Hello World!\n"; > return 0; } > it compiles a 384 program...Why? And when I delete teh #include line and > change cout << to printf ("Hello World!\n");, it still compiles it to > 113k...isn't this waaaaaaay too huge for that simple program? Is there any > way to optimize it to make it smaller? > Thanks... > > >Does it work on NT? Please point me to some FAQ, thanks > > > >This is covered in the README.1ST, as well as in section 8.7 of the FAQ > >(ftp://ftp.simtel.net/pub/simtelnet/gnu/djgpp/v2/faq210b.zip). You are > >supposed to use `gxx' instead of `gcc' when linking C++ programs. (That may > >be `gpp' depending on the GCC version). Read the FAQ! -- Weiqi Gao weiqigao AT a DOT crl DOT com