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
%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
I then created a simple program that included a number of libraries that are
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
Compaq C V6.4-004 on OpenVMS Alpha V7.2-1