From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1164f8,b514935fdcccf632 X-Google-Attributes: gid1164f8,public From: reid@psi.ch (Dr Ivan D Reid, muSR Facility) Subject: Re: C program under DEC/Alpha Date: 1998/03/23 Message-ID: #1/1 X-Deja-AN: 336769070 References: <351460D6.C20A915@cerritos.edu> Reply-To: Ivan.Reid@PSI.ch Organization: Paul Scherrer Institute Newsgroups: comp.sys.dec In article , Dr Ivan D Reid, muSR Facility wrote: >In article <351460D6.C20A915@cerritos.edu>, lakha001@cerritos.edu wrote: >>Can someone help me out with this. I am trying to write a simple C >>program on DEC/Alpha system. For some reason, it just won't compile. I >>am not sure what I am missing out. I looked at the HELP pages on the >>system and the CC run time routines do show popen as a command. I've had further contact from Mansoor. My suggestions allowed him to get the programme to compile but it now won't link, due to undefined references popen and pclose. Further investigation showed: a) the following conditional definitions within stdio.h #if _POSIX_C_SOURCE >= 2 || !defined(_ANSI_C_SOURCE) && __CRTL_VER >= 70000000 __FILE_ptr32 popen(const char *__command, const char *__mode); int pclose(FILE *__stream); #endif b) entries for decc$popen and decc$pclose in SYS$COMMON:[SYSLIB]DECC$CRTL.OLB Since I'm running under OpenVMS V6.2, the conditional definitions aren't executed. However, manually inserting them into the test programme and using the flag /prefix=all still fails to cure the linking problem. Could someone with more experience of modern DEC C comment further? -- Ivan Reid, Paul Scherrer Institute, CH. reid@psi.ch Support Jayne Hitchcock: http://www.geocities.com/hollywood/6172/helpjane.htm