 |
» |
|
 |
|
 |

Copyright (c) Digital Equipment Corporation 1990, 1991. All rights reserved
LAYERED PRODUCT: VAX PLI V3.4 OP/SYS: VMS, V5.4-V5.4-2
SOURCE: Digital Customer Support Center
OVERVIEW:
This article demonstates how to give an executable a version number
that can be determined with the ANALYZE/IMAGE command.
PROCEDURE:
First, generate a linker options file called OPTFILE.OPT that contains
the following line:
IDENTIFICATION="1.0"
(1.0 is the version number that is desired for the executable)
Second, compile a program and link the .OBJ produced from the
compilation with the linker options file:
$create MYPROG.PLI
sstartit: proc options(main);
dcl i fixed bin(31);
dcl x char(4) init('abcd');
i = length(x);
put skip list (' The length of the string X is ', i);
end sstartit;
$PLI MYPROG.PLI
$LINK MYPROG,OPTFILE/OPT
Now, issue the following command to see that the version was set.
$analyze/image myprog.exe
Under the IMAGE FILE IDENTIFICATION field in the output, you should
see the version that was placed in the linker options file.
Image Identification Information
image name: "MYPROG"
image file identification: "1.0" <========version number
link date/time: 27-DEC-1989 08:11:41.03
linker identification: "05-05"
|
buy online or call 1.800.AT.COMPAQ
|
|