home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / sys / sgi / 18650 < prev    next >
Encoding:
Internet Message Format  |  1993-01-10  |  1.4 KB

  1. Path: sparky!uunet!europa.asd.contel.com!howland.reston.ans.net!spool.mu.edu!olivea!charnel!sifon!newsflash.concordia.ca!nstn.ns.ca!cs.dal.ca!biome!silvert
  2. From: silvert@biome.bio.ns.ca (Bill Silvert)
  3. Newsgroups: comp.sys.sgi
  4. Subject: C problems (was Re: compiling metamail)
  5. Message-ID: <1993Jan10.004920.13004@biome.bio.ns.ca>
  6. Date: 10 Jan 93 00:49:20 GMT
  7. Reply-To: silvert@biome.bio.dfo.ca (Bill Silvert)
  8. Organization: Habitat Ecology Div., Bedford Inst. Oceanography
  9. Lines: 24
  10.  
  11. Thanks for the one posting that suggested a solution.  However, I found
  12. the answer, and since it is a common one I felt a further posting on the
  13. subject is called for.
  14.  
  15. In this case and others, a file contains this sort of code:
  16.  
  17.     ...
  18.     x = DoSomething(...);
  19.     ...
  20.  
  21. static int DoSomething(...) { ... }
  22.  
  23. On an SGI system this causes DoSomething to be an unsatisfied external
  24. unless the function occurs before the invocation, or at least is
  25. declared before it is invoked.  Apparently on other systems this is
  26. acceptable.
  27.  
  28. I don't know whether the SGI touchiness agrees with the standard, but
  29. this is a real pain.  Does anyone have a general solution?
  30. -- 
  31. ------------------------------------------------------------------------
  32. William Silvert, Habitat Ecology Division, Bedford Inst. of Oceanography
  33. P. O. Box 1006, Dartmouth, Nova Scotia, CANADA B2Y 4A2.  Tel. (902)426-1577
  34. InterNet Address: silvert@biome.bio.dfo.ca
  35.