home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / os / os2 / misc / 28856 < prev    next >
Encoding:
Internet Message Format  |  1992-09-01  |  1.6 KB

  1. Path: sparky!uunet!gatech!psuvax1!rutgers!njitgw.njit.edu!hertz.njit.edu!dic5340
  2. From: dic5340@hertz.njit.edu (David Charlap)
  3. Newsgroups: comp.os.os2.misc
  4. Subject: Re: GNU GCC 2.1
  5. Message-ID: <1992Sep1.132803.29677@njitgw.njit.edu>
  6. Date: 1 Sep 92 13:28:03 GMT
  7. References: <tdhnfmg.genie@netcom.com> <1992Sep1.000454.17192@murdoch.acc.Virginia.EDU>
  8. Sender: news@njit.edu
  9. Organization: New Jersey Institute of Technology, Newark, N.J.
  10. Lines: 35
  11. Nntp-Posting-Host: hertz.njit.edu
  12.  
  13. In article <1992Sep1.000454.17192@murdoch.acc.Virginia.EDU> wrp@cyclops.micr.Virginia.EDU (Bill Pearson) writes:
  14. >In article <tdhnfmg.genie@netcom.com> genie@netcom.com (The Genie) writes:
  15. >>
  16. >>Hi.  I just downloaded the GNU GCC 2.1 package from hobbes and
  17. >>successfully installed it into my 386 OS/2 system.  Playing around
  18. >>with C, I couldn't get even the simplest hello.c (not from the
  19. >>sample) program to compile correctly.  I'm sure there are
  20. >>no errors in the 4 line program.
  21. >>
  22. >>I type "gcc hello.c"
  23. >>After 3-4 seconds of disk usage, OS/2 responds:
  24. >>SYS1808:
  25. >>The process has stopped.  The software diagnostic
  26. >>code (exception code) is  0006.
  27. >>
  28. >
  29. >    This should be an FAQ.  Try "gcc -o hello.exe hello.c".
  30. >If that does not work, try:
  31. >
  32. >    gcc -c hello.c
  33. >    link386 hello.obj,hello.exe,,,
  34.  
  35. GCC/2 will NOT link executable at this time.  (Read the README file
  36. that comes with it).  You must manually link.  Do this:
  37.  
  38. gcc -c hello.c
  39. link386 hello.obj, hello.exe, nul, os2.lib, nul;
  40.  
  41.  
  42.  
  43. -- 
  44.    |)  David Charlap           "I don't even represent myself
  45.   /|_  dic5340@hertz.njit.edu   sometimes so NJIT is right out!.
  46.  ((|,)
  47.   ~|~  Hi! I am a .signature virus, copy me into your .signature file.
  48.