From: "Brett Porter" Newsgroups: comp.os.msdos.djgpp Subject: Re: hello.c = 190kB hello.exe ? Date: Thu, 24 Sep 1998 11:32:02 +1000 Organization: University of Wollongong, Australia Lines: 36 Message-ID: <6uc7b9$7sk$1@wyrm.its.uow.edu.au> References: <360823EE DOT 1F5FEEFA AT metronet DOT de> NNTP-Posting-Host: ceast29.uow.edu.au NNTP-Posting-Date: 24 Sep 1998 01:30:17 GMT To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk Juergen Bevier wrote in message <360823EE DOT 1F5FEEFA AT metronet DOT de>... >Hello, > >Just installed DJGPP together with RHIDE. >As I compiled the following: > >#include >main(){ > cout << "hello world"; >} > >the exe-file was 190kB (on WIN 95). >The same .cc compiled with Linux and wpe is about 10kB. >Can somebody let me know whats wrong? > There is nothing wrong. On Linux, shared libraries are used so the executables are small. For DJGPP (and almost any DOS compiler) you must link in libc and other libraries, which make the executable big. There are several ways to decrease the size of the executable. This is addressed in the FAQ, please refer to this before posting to the newsgroup in future. Regards, Brett -+-+- Brett Porter http://members.xoom.com/brett_porter Programmer for Softorange Interactive http://www.softorange.com -+-+-