www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/10/04/17:05:03

From: "David Grant" <dgrant79 AT hotmail DOT com>
Newsgroups: comp.os.msdos.djgpp
Subject: EXE file size
Date: Wed, 4 Oct 2000 13:36:16 -0700
Organization: ITServices, University of British Columbia
Lines: 23
Message-ID: <8rg4fg$sm6$1@nntp.itservices.ubc.ca>
X-Trace: nntp.itservices.ubc.ca 970691888 29382 204.50.79.66 (4 Oct 2000 20:38:08 GMT)
X-Complaints-To: abuse AT interchange DOT ubc DOT ca
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.00.2314.1300
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

How can I make my EXE files smaller.  I just made a Hello World program and
it is like 200,000 bytes!

It goes something like this:

#include<iostream.h>

int main()
{
    cout << "hello world!";
    return 0;
}

Then I compile it by typing: "gxx test.cpp -o test.exe"

I tried using gcc instead, but it didn't like my cout statement for some
reason.  How can I do a printf instead?  It didn't seem to like that either.

Thanks,

Dave


- Raw text -


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