home *** CD-ROM | disk | FTP | other *** search
- 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
- From: silvert@biome.bio.ns.ca (Bill Silvert)
- Newsgroups: comp.sys.sgi
- Subject: C problems (was Re: compiling metamail)
- Message-ID: <1993Jan10.004920.13004@biome.bio.ns.ca>
- Date: 10 Jan 93 00:49:20 GMT
- Reply-To: silvert@biome.bio.dfo.ca (Bill Silvert)
- Organization: Habitat Ecology Div., Bedford Inst. Oceanography
- Lines: 24
-
- Thanks for the one posting that suggested a solution. However, I found
- the answer, and since it is a common one I felt a further posting on the
- subject is called for.
-
- In this case and others, a file contains this sort of code:
-
- ...
- x = DoSomething(...);
- ...
-
- static int DoSomething(...) { ... }
-
- On an SGI system this causes DoSomething to be an unsatisfied external
- unless the function occurs before the invocation, or at least is
- declared before it is invoked. Apparently on other systems this is
- acceptable.
-
- I don't know whether the SGI touchiness agrees with the standard, but
- this is a real pain. Does anyone have a general solution?
- --
- ------------------------------------------------------------------------
- William Silvert, Habitat Ecology Division, Bedford Inst. of Oceanography
- P. O. Box 1006, Dartmouth, Nova Scotia, CANADA B2Y 4A2. Tel. (902)426-1577
- InterNet Address: silvert@biome.bio.dfo.ca
-