home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / os / os2 / programm / 4786 < prev    next >
Encoding:
Internet Message Format  |  1992-09-08  |  2.2 KB

  1. Path: sparky!uunet!munnari.oz.au!yoyo.aarnet.edu.au!frodo.cc.flinders.edu.au!hobson.cc.flinders.edu.au!mmtl
  2. From: mmtl@hobson.cc.flinders.edu.au (T.Lampre)
  3. Newsgroups: comp.os.os2.programmer
  4. Subject: Re: GCC2.1 problems
  5. Message-ID: <1992Sep07.012022.60217@frodo.cc.flinders.edu.au>
  6. Date: 7 Sep 92 01:20:22 GMT
  7. References: <1992Sep3.143004.9353@murdoch.acc.Virginia.EDU> <1992Sep4.102238.1@cc.curtin.edu.au>
  8. Sender: @frodo.cc.flinders.edu.au
  9. Organization: Flinders University
  10. Lines: 36
  11.  
  12. In article <1992Sep4.102238.1@cc.curtin.edu.au> smackinl01@cc.curtin.edu.au writes:
  13. >Bill Pearson's problems may be related to the command line switches he was
  14. >using. From memory, his problem was that "GCC filename" would fail. With the
  15. >non-emx port, you need to use instead "GCC -c filename.c" to produce a x86
  16. >specific object file instead of the unix .o format. GCCv2.2.1 seems to have
  17. >difficulties creating object files in the .o format, so perhaps someone could
  18. >clarify this?
  19.  
  20. GCC/2 creates .o object code but immediately converts it to .obj using
  21. o2obj.exe. LINK386 does not understand .o object code. I hope that the
  22. next version of GCC/2 will be a bit more flexible in this regard as I
  23. intend to get support for cross compilation working. I will also be
  24. working to get some more meaningful error messages other than 'code 6'
  25. and stuff. 
  26.  
  27. BTW, code 6 means that the driver failed when trying to execute a
  28. program. This can be due to wrong path variables, or trying to invoke
  29. ld by using gcc -o foo.exe foo.c instead of gcc -c foo.c (or similar).
  30.  
  31. >
  32. >BTW: Has anyone noticed that the GCCv2.2.2 present on hobbes is lacking some of
  33. >its header files? These are (again, my memory isn't the best) the ones in the
  34. >gcc-include/machine directory.
  35.  
  36. ftp-os2.nmsu.edu:/pub/os2/2.0/programming/gcc2-2.2.2/gcchdr.zoo now
  37. contains all neccessary header files. Again, apologies for the oversight.
  38.  
  39. Trevor Lampre
  40. <mmtl@cc.flinders.edu.au>
  41. Flinders University of South Australia
  42.  
  43. P.S. The tentative release date for the next version of gcc is early
  44. October. Although I will try and meet this deadline I have been unable
  45. to do any work for the last two weeks due my son being ill and the
  46. death of my father. We will also be moving into out new home soon so
  47. this is a rather tiring time for my family and myself.
  48.