From: Ian Chapman Newsgroups: comp.os.msdos.djgpp Subject: Re: Why are my c++ .exe's so large Date: Thu, 28 Oct 1999 10:47:03 -0400 Organization: Nortel Lines: 32 Message-ID: <381861E7.F5C15794@nortelnetworks.com> References: <380fd475 DOT 6115722 AT news3 DOT newscene DOT com> NNTP-Posting-Host: bcarib90.ca.nortel.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Mailer: Mozilla 4.7 [en] (Win95; U) X-Accept-Language: en To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Hi, this question has been asked before. Look up the detailed answers in the mail archives. Essentially it's the interface to dos/win9x and a few other things and also if you have the debug flags on during compile a ton of other stuff is included. Unless you are really good keep the debug stuff on. Regards Ian. Katy wrote: > > > Hello everyone, > > I downloaded all djgpp files for Win98 from the official djgpp > website, using the picker, and I installed it and configured it as the > documentation indicated. > > I am able to compile both c and c++ code, however, all my exe's that > are compiled with gpp are HUGE! > > For example a simple "Hello World" exe, is ~ 268,000 KB. > I use the following commands to compile the hello.cpp > gpp -c -o hello.o hello.cpp > gpp -o hello.exe hello.o > > How can I make my exe's smaller, is there a switch that I can use to > do this. > > Thanks in advance. > > Katy