home *** CD-ROM | disk | FTP | other *** search
- Path: mik.uky.edu!mgwill1
- From: mgwill1@mik.uky.edu (matthew williams)
- Newsgroups: comp.sys.amiga.programmer
- Subject: HUGE executable in g++
- Date: 9 Jan 96 14:22:38 GMT
- Organization: University of Kentucky, Dept. of Math Sciences
- Message-ID: <mgwill1.821197358@mik.uky.edu>
- NNTP-Posting-Host: 128.163.117.20
-
-
- I have been having a problem with GNU G++, I have a 10k source file that
- only includes the files iostream.h, iomanip.h, and stdio.h (i wrote it
- first with fstream.h but rewrote the code to use stdio.h because i
- thought fstream.h was making my executable large) and this 10k compiles
- into a 1454344 byte executable! (in a.out form) and nothing seems to make
- it into a reasonably sized executable, i compiled the program with this line:
-
- g++ -O2 -noixemul foo.cc -o foo -lnix
-
- The file produced by that is 541k (which is better but not good) and
- when i try to run it, CLI says file not executable and the programs
- execution flag is set! I dont know if this is GNU C++s fault or my own,
- the only thing i can think of why i cannot get a reseanably sized
- executable is that GNU C++ crashed my hard drive, and that i didnt
- replace all the corrupt files, but id think that if that was the case g++
- wouldnt work at all. If anyone has any insight on this please clue me in,
- also if you know of any options to call g++ that helps make more compact
- executables please let me know. Thanks
-