= From:	SMTP%"moravec@ph1.Uni-Koeln.DE"  6-MAY-1993 16:58:13.55  To:	EVERHART CC:	4 Subj:	Re: X11/Xaw in #include - portability question  0 From: moravec@ph1.Uni-Koeln.DE (Andreas Moravec) X-Newsgroups: comp.os.vms 7 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   1 In article <5MAY199311213995@seqvax.caltech.edu>, 1  mathog@seqvax.caltech.edu (David Mathog) writes: A >I had asked how to compile C programs under VMS with lines like:  >   >   #include <X11/Xaw/Command.h> ... O >In article <1s70teINNqk8@gap.caltech.edu>, carl@SOL1.GPS.CALTECH.EDU writes...  >  >>  O >>Before compiling, redefine DECW$INCLUDE to be a searchlist logical, the first N >>element of which is the current value of the logical name, and the second of. >>which is the directory in which Xaw resides. >> > K >We have determined that this does *not* work for the "X11/Xaw" construct,  9 >although it does for a construct like <X11/something.h>.  > K >That this include form cannot be handled by VAX C is also indicated by the H >examples in SYS$EXAMPLES:[DECW.UTILS], where in all of the MIT programsI >that use includes of X11/Xmu this form has been ifdef'd out for VMS, and 
 >replaced by   >  >   #include <Xmu/something.h>  G That is not necessary, DEC people do not know their compiler very well.    >  >So, the questions remain: > F > 1.  Can VAX C 3.2 be made to accept  #include <X11/Xmu/something.h>   ? 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"   6 instead of the normal DEC form: "X11" = "DECW$INCLUDE"D [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 of2 library "path", typically /usr/lib or SYS$LIBRARY:   Andreas.  P -+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+B        KOSMA = Koelner Observatorium fuer SubMillimeter-Astronomie:  Andreas Moravec               TEL      +49 (221) 470 3558:  I. Physikalisches Institut    FAX      +49 (221) 470 51627  Universitaet zu Koeln         TELEX    888 2291 UNIK D @  Zuelpicher Str. 77            INTERNET moravec@ph1.Uni-Koeln.DEO  5000 Koeln 41, Germany        X.400    S=Moravec;OU=Ph1;P=Uni-Koeln;A=DBP;C=DE   