From: SMTP%"hoffman@xdelta.enet.dec.com" 10-OCT-1994 12:25:07.59 To: EVERHART CC: Subj: Re: POSIX and VAXCRTL From: hoffman@xdelta.enet.dec.com (Stephen Hoffman) X-Newsgroups: comp.os.vms Subject: Re: POSIX and VAXCRTL Date: 10 Oct 1994 16:04:52 GMT Organization: Digital Equipment Corporation Lines: 36 Distribution: world Message-ID: <37bon4$8vm@jac.zko.dec.com> Reply-To: hoffman@xdelta.enet.dec.com (Stephen Hoffman) NNTP-Posting-Host: XDELTA X-Newsreader: mxrn 6.18-16 To: Info-VAX@Mvb.Saic.Com X-Gateway-Source-Info: USENET In article <373nfa$uus@metro.atlanta.com>, michael@lysis.com (Michael Horner) writes: |>Can anyone provide some insight on the proper mechanism for linking a |>POSIX application with the C RTL? All my efforts so far have resulted |>in a mess of conflicting attributes for the various psects. I would recommend using DEC C for OpenVMS VAX, as it is the upgrade for VAX C, and it is ANSI-compatible. The procedures for linking VAX C objects with POSIX requires you to link with the POSIXC$RTL_D.EXE or POSIXC$RTL_G.EXE shareable images. There are two linker options files: Sys$Library:POSIXC$D_RTL_OPTION.OPT, or POSIXC$G_RTL_OPTION.OPT. You will need to compile with the POSIX include files, rather than the default VAX C include files. (c89 does this automatically, if you use CC, you need the following logical names: X11 must translate to DECW$INCLUDE; SYS must translate to POSIX$INCLUDE, and both C$INCLUDE and VAXC$INCLUDE must translate to the following searchlist: DECW$INCLUDE, POSIX$INCLUDE, SYS$LIBRARY.) The link procedure -- to link with POSIX and with other applications that use VAXCRTL -- is at Sys$Library:POSIXC$LINK_DECW.COM. This is covered in detail in the Guide to Programming with VMS POSIX -- in section 3.2 in the V1.1 documentation. (This document is on the documentation CD-ROM.) (I don't have the POSIX V2.0 documentation handy, but it should provide the details of working with DEC C.) -- ------------------------------ Opinionative ------------------------------- Stephen Hoffman, EMT-I hoffman@xdelta.enet.dec.com OpenVMS Engineering, Digital Equipment Corporation, Nashua NH