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: lakha001@cerritos.edu Subject: Re: C program under DEC/Alpha Date: 1998/03/22 Message-ID: <3515D0D0.EC35971A@cerritos.edu>#1/1 X-Deja-AN: 336856157 Content-Transfer-Encoding: 7bit References: <351460D6.C20A915@cerritos.edu> Mime-Version: 1.0 To: Ivan.Reid@PSI.ch Content-Type: text/plain; charset=us-ascii Organization: HoloNet National Internet Access System: 510-704-1058/modem Newsgroups: comp.sys.dec Aiight... I modified the program the way you said... it compiles aiight, but is complaining about symbols when I link it. $ type new.c #include void main() { FILE *fi; FILE *popen(); int pclose(); fi = popen("PMDF MAIL", "w"); fprintf(fi, "send\n"); fprintf(fi, "lakha001@cerritos.edu\n\n"); fprintf(fi, "This is a test\n"); fprintf(fi, "Mail sent using C program\n"); fprintf(fi, "^Z\n"); pclose(fi); } $ CC/DECC/PREFIX_LIBRARY_ENTRIES=ALL_ENTRIE New.c $ link new.obj FILE: new %LINK-W-NUDFSYMS, 2 undefined symbols: %LINK-I-UDFSYM, PCLOSE %LINK-I-UDFSYM, POPEN %LINK-W-USEUNDEF, undefined symbol POPEN referenced in psect $LINK$ offset %X00000040 in module NEW file FOO_BAR:[MY.LAKHA001]NEW.OBJ;3 %LINK-W-USEUNDEF, undefined symbol PCLOSE referenced in psect $LINK$ offset %X00000090 in module NEW file FOO_BAR:[MY.LAKHA001]NEW.OBJ;3 Thanks, Mansoor. PS: Please reply and post back to the newsgroup. My news reader is a pain and it's hard for me to search and look back at any replies to my origional POST. 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. > > >rem The program itself. > > >#include > > >void main() > >{ > > FILE *fi; > FILE *popen(); > int pclose(); > /* Takes care of the assumed function types and mismatch warnings */ > > > fi = popen("PMDF MAIL", "w"); > > fprintf(fi, "send\n"); > > fprintf(fi, "lakha001@cerritos.edu\n\n"); > > fprintf(fi, "This is a test\n"); > > fprintf(fi, "Mail sent using C program\n"); > > fprintf(fi, "^Z\n"); > > pclose(new); > pclose(fi); > /* typing/transcription error there! */ > > >Please respond directly by mailing me back since I dont frequent the > >newsgroups. > > Ask here, get an answer here... > > -- > Ivan Reid, Paul Scherrer Institute, CH. reid@psi.ch > Support Jayne Hitchcock: http://www.geocities.com/hollywood/6172/helpjane.htm