home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.sgi
- Path: sparky!uunet!newsflash.concordia.ca!nstn.ns.ca!cs.dal.ca!biome!silvert
- From: silvert@biome.bio.ns.ca (Bill Silvert)
- Subject: C compiler problem
- Message-ID: <1993Jan21.202055.15307@biome.bio.ns.ca>
- Organization: Habitat Ecology Div., Bedford Inst. Oceanography
- Distribution: na
- Date: Thu, 21 Jan 1993 20:20:55 GMT
- Lines: 17
-
- I've run into a curious problem compiling the program getwxmap, which
- fetches a weather map and displays it on the screen. It crashes with a
- core dump, but if I make the replacement:
-
- change
- if ((tosite = (FILE *) popen (command, "w")) == (FILE *) NULL)
- to
- if ((tosite = (FILE *) popen (command, "w")) == (FILE *) 0)
-
- it compiles and runs fine. NULL should be defined by stdio.h, and I've
- tried including a redundant definition in the file before this code, but
- the debugger reports that NULL is not defined.
- --
- ------------------------------------------------------------------------
- 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
-