home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / sys / amiga / programm / 16001 < prev    next >
Encoding:
Text File  |  1992-11-17  |  1.5 KB  |  35 lines

  1. Newsgroups: comp.sys.amiga.programmer
  2. Path: sparky!uunet!charon.amdahl.com!pacbell.com!iggy.GW.Vitalink.COM!cs.widener.edu!eff!sol.ctr.columbia.edu!usc!rpi!utcsri!newsflash.concordia.ca!mizar.cc.umanitoba.ca!access.usask.ca!kakwa.ucs.ualberta.ca!ee.ualberta.ca!charro
  3. From: charro@ee.ualberta.ca (Dan Charrois)
  4. Subject: GCC and streams
  5. Message-ID: <charro.722049463@ee.ualberta.ca>
  6. Keywords: GCC stderr streams
  7. Sender: news@kakwa.ucs.ualberta.ca
  8. Nntp-Posting-Host: bode.ee.ualberta.ca
  9. Organization: University Of Alberta, Edmonton Canada
  10. Date: Wed, 18 Nov 1992 01:17:43 GMT
  11. Lines: 22
  12.  
  13. I have a question regarding the gcc compiler (2.2.2).
  14.  
  15. Since no include files came with gcc, I told it to use those which
  16. came with Lattice C..  but I have a small problem...
  17.  
  18. When trying to compile a simple program that just printed a message to
  19. stderr using fprintf, I got the message (during linking, I believe),
  20. that __iob wasn't defined anywhere.  Looking at the stdio.h which came
  21. with Lattice, I see that stderr is &_iob[2], and _iob[] is itself
  22. declared as external.  Therefore, I assume that Lattice is finding out
  23. where the standard streams are kept and returning the pointers through
  24. _iob.  What's gcc's method?
  25.  
  26. If anyone has any information on how to get gcc to understand what I
  27. mean by stderr, It would be great if you could help me out.  (I
  28. imagine it has problems with stdin and stdout as well, though I
  29. haven't checked to be sure...)
  30.  
  31. Thanks!   Dan
  32. -- 
  33. Dan Charrois - University of Alberta, Electrical Engineering
  34. INTERNET: charro@bode.ee.ualberta.ca 
  35.