home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / amiga / programmer / 5741 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.2 KB

  1. Path: news1.erols.com!newsmaster@erols.com
  2. From: Chris Cobb <ccobb@cseg.com>
  3. Newsgroups: comp.sys.amiga.programmer
  4. Subject: Re: GCC C++ questions
  5. Date: 19 Mar 1996 02:37:19 GMT
  6. Organization: CSEG, Inc.
  7. Message-ID: <4il6kv$3tc@news6.erols.com>
  8. References: <314c6829@usura.metropolis.nl>
  9. NNTP-Posting-Host: ccobb.erols.com
  10. Mime-Version: 1.0
  11. Content-Type: text/plain; charset=us-ascii
  12. Content-Transfer-Encoding: 7bit
  13. X-Mailer: Mozilla 1.22KIT (Windows; U; 16bit)
  14.  
  15. joskam@usura.metropolis.nl (Jurjen Oskam) wrote:
  16. >Hello there,
  17. >
  18. >It works fine, but look at this C++ program:
  19. >
  20. >#include <iostream.h>
  21. >
  22. >int main()
  23. >{
  24. >   cout << "Hello!" << endl ;
  25. >}
  26. >
  27. >This compiles OK, but the executable is 69KB! A bit too large, IMHO. ;-) 
  28.  
  29. What arguments did you use to compile this?
  30.  
  31. >I understand that GCC uses ixemul.library, and that there is another 
  32. >library that's better for programs not ported from UN*X, namely 
  33. >libnix.library. So, how do I install libnix.library (the docs say "don't 
  34. >forget to link it")? I don't know how to "link" it.
  35.  
  36. Try a -lnix (?) switch...the documentation (somewhere--I don't have it at 
  37. hand) explains how to use the other library.  Of course you don't get as 
  38. many system calls, but you may not need them for your application.
  39.  
  40. Chris
  41.  
  42.