From: SMTP%"moravec@ph1.Uni-Koeln.DE" 6-MAY-1993 16:58:13.55 To: EVERHART CC: Subj: Re: X11/Xaw in #include - portability question From: moravec@ph1.Uni-Koeln.DE (Andreas Moravec) X-Newsgroups: comp.os.vms Subject: Re: X11/Xaw in #include - portability question Date: 6 May 1993 17:40:39 GMT Organization: University of Cologne, I. Physik. Inst., Germany Lines: 63 Distribution: world Message-ID: <1sbiinINNu1o@rs1.rrz.Uni-Koeln.DE> Reply-To: moravec@ph1.Uni-Koeln.DE NNTP-Posting-Host: newton.ph1.uni-koeln.de To: Info-VAX@KL.SRI.COM X-Gateway-Source-Info: USENET In article <5MAY199311213995@seqvax.caltech.edu>, mathog@seqvax.caltech.edu (David Mathog) writes: >I had asked how to compile C programs under VMS with lines like: > > #include ... >In article <1s70teINNqk8@gap.caltech.edu>, carl@SOL1.GPS.CALTECH.EDU writes... > >> >>Before compiling, redefine DECW$INCLUDE to be a searchlist logical, the first >>element of which is the current value of the logical name, and the second of >>which is the directory in which Xaw resides. >> > >We have determined that this does *not* work for the "X11/Xaw" construct, >although it does for a construct like . > >That this include form cannot be handled by VAX C is also indicated by the >examples in SYS$EXAMPLES:[DECW.UTILS], where in all of the MIT programs >that use includes of X11/Xmu this form has been ifdef'd out for VMS, and >replaced by > > #include That is not necessary, DEC people do not know their compiler very well. > >So, the questions remain: > > 1. Can VAX C 3.2 be made to accept #include yes, try following (works fine for me - VAXc 3.2, VMS 5.5-2HW): $! to use MIT Athena widget set, include files $! (override default in DECW$LOGICAL_NAMES) $ VALUE1 = f$trnlnm("SYS$COMMON") - ".]" + ".DECW$INCLUDE.]" $ VALUE2 = f$trnlnm("SYS_SITE") - ".]" + ".DECW$INCLUDE.]" $ define/system/executive X11 'VALUE1','VALUE2',DECW$INCLUDE $sho logi x11/sys/fu "X11" [exec] = "NEWTON$DKA500:[SYS0.SYSCOMMON.DECW$INCLUDE.]" (LNM$SYSTEM_TABLE) = "NEWTON$DKA500:[SYS_SITE.DECW$INCLUDE.]" = "DECW$INCLUDE" instead of the normal DEC form: "X11" = "DECW$INCLUDE" [Note: I have a directory tree which mimicks the SYS$COMMON: one for my non-DEC software] > 2. Is this form of include "standard"? yes, this form is used to get the header files from some sort of library "path", typically /usr/lib or SYS$LIBRARY: Andreas. -+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ KOSMA = Koelner Observatorium fuer SubMillimeter-Astronomie Andreas Moravec TEL +49 (221) 470 3558 I. Physikalisches Institut FAX +49 (221) 470 5162 Universitaet zu Koeln TELEX 888 2291 UNIK D Zuelpicher Str. 77 INTERNET moravec@ph1.Uni-Koeln.DE 5000 Koeln 41, Germany X.400 S=Moravec;OU=Ph1;P=Uni-Koeln;A=DBP;C=DE