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

  1. Path: sparky!uunet!gatech!rutgers!ub!acsu.buffalo.edu!ubvmsb.cc.buffalo.edu!oistony
  2. From: oistony@ubvmsb.cc.buffalo.edu (Anthony M. Petro)
  3. Newsgroups: comp.os.os2.misc
  4. Subject: Re: GNU GCC 2.1
  5. Message-ID: <BtuqKr.2vF@acsu.buffalo.edu>
  6. Date: 31 Aug 92 14:21:00 GMT
  7. References: <tdhnfmg.genie@netcom.com>
  8. Sender: nntp@acsu.buffalo.edu
  9. Organization: University at Buffalo
  10. Lines: 51
  11. News-Software: VAX/VMS VNEWS 1.41
  12. Nntp-Posting-Host: ubvmsb.cc.buffalo.edu
  13.  
  14. In article <tdhnfmg.genie@netcom.com>, genie@netcom.com (The Genie) writes...
  15. >Hi.  I just downloaded the GNU GCC 2.1 package from hobbes and
  16. >successfully installed it into my 386 OS/2 system.  Playing around
  17. >with C, I couldn't get even the simplest hello.c (not from the
  18. >sample) program to compile correctly.  I'm sure there are
  19. >no errors in the 4 line program.
  20. >I type "gcc hello.c"
  21. >After 3-4 seconds of disk usage, OS/2 responds:
  22. >SYS1808:
  23. >The process has stopped.  The software diagnostic
  24. >code (exception code) is  0006.
  25.  
  26. i downloaded gcc 2.1 and installed it, and then installed the 2.2.2 
  27. binaries over the 2.1 binaries.  according to the note in the 2.2.2 
  28. directory, one needs only the files gccbin.zoo and gcclib.zoo to 
  29. upgrade from 2.1; i found the content of gcclib.zoo to be identical to 
  30. the ones provided by 2.1 and installed only the binaries.
  31.  
  32. there are two text files entitled readme and install in the \doc 
  33. directory (created by extracting the zoo files).  one of them, readme 
  34. i believe, gives a few hints about using gcc in os/2, like not using 
  35. the gcc linker but instead using link386.exe provided by os/2.
  36.  
  37. the other file describes environment variables that must be 
  38. initialized for proper gcc operation.  i copied these into my 
  39. config.sys, rebooted, and was able to compile sample1.c and sample2.c.
  40.  
  41. linking these with link386.exe gave me runnable executables.  however, 
  42. i can't find any documentation on link386.exe.  when i linked 
  43. sample1.o, link386 bitched that i didn't specify an executable file 
  44. type or something like that, and warned that it was assuming the app 
  45. was WINDOWSCOMPAT or something like that.  regardless, sample1.exe 
  46. worked from an os/2 prompt, but "Hello world" isn't exactly a robust 
  47. test.
  48.  
  49. other than that i'm completely clueless.  does anyone have any 
  50. documentation (or reference thereto) for link386.exe?
  51.  
  52. >What is wrong here?  Is it because I need a math co-processor?
  53. >Help!  And thanks in advance.
  54. >Gene
  55. anthony m. petro   "beethoven"    i can say what i want; i'm just an undergrad
  56. oistony@UBVMSD.BITNET             "frame by frame,
  57. oistony@mednet.bitnet              death by drowning,
  58. petro@sun.acsu.buffalo.edu         in your own
  59.                                    in your own...
  60.                                    analysis..."
  61.