Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
From: hoffman@xdelta.enet.dec.nospam (Hoff Hoffman)
Subject: Re: C program under DEC/Alpha
Date: 1998/03/24	[thread overview]
Message-ID: <6f9c6r$8gn@usenet.pa.dec.com> (raw)
In-Reply-To: 351460D6.C20A915@cerritos.edu



In article <351460D6.C20A915@cerritos.edu>, lakha001@cerritos.edu writes:
:Can someone help me out with this.

  It would help if you listed the operating system -- based on the
  error messages, this system is clearly running OpenVMS -- and the
  version of OpenVMS and (in this case) the C compiler.  And for
  OpenVMS questions, posting in comp.os.vms is a better choice.

: 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.

  With DEC C, one often sees the use of the /PREFIX=ALL qualifier,
  to force the routines to be prefixed for the LINK.  (There is some
  magic going on here, for now it is best to simply add "/PREFIX=ALL"
  to the DEC C compiler incantation.  It's rather easier to explain
  this as "magic", by the way. :-)

  Also note that the popen() and similar calls were added in the DEC C
  run-time support in OpenVMS V7.0 and later.  To use these calls on
  versions of OpenVMS prior to V7.0, one needs to avail ones self of the
  DEC C V5.6 and later "backport" library, as described in the DEC C
  documentation set.  (To see the current OpenVMS version, look at the
  first line of the output from a SHOW SYSTEM command.)

  There exists callable mail interface in OpenVMS, see the OpenVMS
  Utility Routines Reference Manual for details.

  Prior to this release, I would expect one would need to use a single
  line such as the following:

    system("MAIL filespec user/subject=\"subjecttext\" " );

  I'm not sure that PMDF will work this way, but MAIL does...

  Or one could use mailboxes, and pass the commands into the
  subprocess one at a time, specifying the mailbox as the input
  device for a lib$spawn() command, or via a system() call with
  the command specification of "@mbxdevname:".  Remember to send
  along a ^Z (EOF, <CTRL/Z>) or EXIT as the last command...

  Or one could use a text file, and execute it via @filespec,
  via a call to lib$spawn() or via system().

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

  Ask here, get an answer here.

 -------------------------- pure personal opinion ---------------------------
 Hoff (Stephen) Hoffman   OpenVMS Engineering   hoffman@xdelta.ZZenet.dec.com
  note to those folks not contributing spam -- there is no ZZ in my address




  parent reply	other threads:[~1998-03-24  5:00 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 [this message]
1998-03-30  5:00 ` Bob Koehler
read-only archive

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