HP OpenVMS Systemsask the wizard | 
	
 The Question is: 
 
I have some programs which have been written in VAXC on non-alpha VMS (version
 6.2) which I am trying to port to ALPHA VMS using DECC.
 
Because of beacoup errors gotten when I did a straight compile, I tried the
 CC/STANDARD=VAXC instead.  The following is one of many similar error messages
 that came up:
 
$ cc vmstar/standard=vaxc/nowarn
 
    __union  {
....^
%CC-E-DECLVARNOMEM, A variant struct or variant union may occur only as a
 member of a struct or union.
at line number 351 in module NAMDEF of text library
 SYS$COMMON:[SYSLIB]SYS$STARLET_C.TLB;1
 
I then created a simple program that included a number of libraries that are
 not used:
 
#include stdio
#include time
#include ssdef
#include iodef
#include descrip
#include ctype
#include strdef
#include rms
#include stsdef
#include file
#include stat
#include types
#include string
#include errno
 
main ()
 
  printf ("Hello world!\n");
 
 
I was able to compile (sans options) and run this program fine.  But when I
 used the "/vaxc=standard" option, I got the same errors as before.
 
Can you tell me what is going on please?
 
The Answer is : Works OK here: $ cc x $ cc/stand=vaxc x $ cc/ver Compaq C V6.4-004 on OpenVMS Alpha V7.2-1 
 
 
  |