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: koehler@bessta.gsfc.nasa.aspm.gov (Bob Koehler) Subject: Re: C program under DEC/Alpha Date: 1998/03/30 Message-ID: <6fogra$pts@post.gsfc.nasa.gov>#1/1 X-Deja-AN: 339157778 Distribution: world References: <351460D6.C20A915@cerritos.edu> Organization: NASA Goddard Space Flight Center -- Greenbelt, Maryland USA Reply-To: koehler@bessta.gsfc.nasa.aspm.gov Newsgroups: comp.sys.dec In article <351460D6.C20A915@cerritos.edu>, lakha001@cerritos.edu writes: >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. > >$ CC/DECC/PREFIX_LIBRARY_ENTRIES=ALL_ENTRIE New.c > > fi = popen("PMDF MAIL", "w"); >.............^ >%CC-I-IMPLICITFUNC, In this statement, the identifier "popen" is >implicitly decl >ared as a function. >at line number 6 in file FOO_BAR:[MY.LAKHA001]NEW.C;2 > You need a later version of VMS. popen is new for VMS 7.0, and stdio.h knows that. If you're using a 6.x you may be able to use the "backport" kit which gets you the new C library for older vesions than 7.0. stdio.h may or may not be updated by the backport kit, you'll have to check (only the copy in sys$library:decc$rtldef.tlb is actually used). ------------------------------------------------------------------------------ Bob Koehler | Computer Sciences Corporation Hubble Space Telescope Payload | System Sciences Division Flight Software Team | please remove ".aspm" when replying