Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
* C program under DEC/Alpha
@ 1998-03-21  5:00 lakha001
  1998-03-22  5:00 ` Dr Ivan D Reid, muSR Facility
                   ` (2 more replies)
  0 siblings, 3 replies; 9+ messages in thread
From: lakha001 @ 1998-03-21  5:00 UTC (permalink / raw)



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 <stdio.h>

void main()
{
        FILE *fi;
        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);
}

rem Compiling

$ 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

        fi = popen("PMDF MAIL", "w");
........^
%CC-W-CVTDIFTYPES, In this statement, "popen(...)" of type "int", is
being conve
rted to "pointer to pointer to struct _iobuf".
at line number 6 in file FOO_BAR:[MY.LAKHA001]NEW.C;2

        pclose(new);
........^
%CC-I-IMPLICITFUNC, In this statement, the identifier "pclose" is
implicitly dec
lared as a function.
at line number 12 in file FOO_BAR:[MY.LAKHA001]NEW.C;2

        pclose(new);
...............^
%CC-E-UNDECLARED, In this statement, "new" is not declared.
at line number 12 in file FOO_BAR:[MY.LAKHA001]NEW.C;2
$

Please respond directly by mailing me back since I dont frequent the
newsgroups.

Thanks,
Mansoor.




^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~1998-03-30  5:00 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1998-03-21  5:00 C program under DEC/Alpha lakha001
1998-03-22  5:00 ` Dr Ivan D Reid, muSR Facility
1998-03-22  5:00   ` lakha001
1998-03-23  5:00   ` Dr Ivan D Reid, muSR Facility
1998-03-23  5:00     ` Greg Thomas
1998-03-23  5:00       ` lakha001
1998-03-24  5:00         ` Greg Thomas
1998-03-24  5:00 ` Hoff Hoffman
1998-03-30  5:00 ` Bob Koehler

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox