delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/06/01/17:03:13

From: "Michael Richardson" <mrichardson AT macrohard DOT net>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: djgpp on NT?
Date: Mon, 1 Jun 1998 15:57:58 -0500
Organization: All USENET -- http://www.Supernews.com
Lines: 22
Message-ID: <6kv7n8$2v8$1@supernews.com>
References: <19980527010023 DOT AAF19094 AT ppp114 DOT cartsys DOT com>
NNTP-Posting-Host: 208.193.15.64
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

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?
When I use gxx hello.cpp -o hello.exe
and the program is:
#include <iostream.h>
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).


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019