Article 143275 of comp.os.vms: Path: nntpd.lkg.dec.com!pa.dec.com!decwrl!amd!netcomsv!uu4news.netcom.com!netcomsv!uu3news.netcom.com!ix.netcom.com!howland.reston.ans.net!newsfeed.internetmci.com!news.mathworks.com!zombie.ncsc.mil!admaix.sunydutchess.edu!ub!newsstand.cit.cornell.edu!news.tc.cornell.edu!newsserver.sdsc.edu!news.cerf.net!hacgate2.hac.com!usenet From: Dave Rathnow Newsgroups: comp.os.vms Subject: Re: Return codes for MAIL$ routine Date: Thu, 21 Mar 1996 14:48:09 -0800 Organization: Hughes Aircraft of Canada Ltd. Lines: 56 Message-ID: <3151DCA9.62C6@dev.hcsd.hac.ca> NNTP-Posting-Host: 172.16.16.20 Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Mailer: Mozilla 2.0 (X11; I; SunOS 5.4 sun4c) I dont know if this got out so I'm reposting it..... I've run into this problem before and found sometimes there is no compiler upgrade that will give me the symbols I need. The reason being that VMS changes/enhancements haven't filtered down to the language teams yet. You can either extract the symbolic names from STARLET or LIB macro libraries and create your own include files or do this: Using MAILMSGDEF as the example: 1. Create a macro file that looks like this: .title /Stuff not in H files/ .library /sys$library:starlet.mlb/ .library /sys$library:lib.mlb/ !Optional but you can add more stuff $MAILMSGDEF GLOBAL .end. Call this file MYLIB.MAR 2. In your C file, add this: . . #ifndef MAIL$_NOEXIST globalvalue unsigned long int MAIL$_NOEXIST #endif . . etc Let's call this MYC.C 3. Link'em all together: $MAC MYLIB $CC MYC $LINK MYC,MYLIB You can use this technique for anything define in STARLET or LIB. Useful for getting at other thing in OVMS land.....For the most part you can use the GLOBALVALUE symbols anywhere you use the #defines. There ARE exceptions though (eg: switch statements) Cheers, Dave. -- Dave Rathnow | Hughes Aircraft of Canada Ltd. | "A modern day warrior is someone Richmond, B.C., Canada | who takes up the challange of living..." drath@dev.hcsd.hac.ca |