#Which versions????
9 messages in this thread
I am trying to distinguish between different versions of several .library
files, they are of different byte sizes, but return the same version
number, my question is is there something I'm doing wrong with "version"
and if not which are the correct, up-to-date files to use.
AmigaGuide.library V39.11 63840 bytes
AmigaGuide.library V39.11 24800 bytes
Reqtools.library V38.1042 38140 bytes
Reqtools.library V38.1042 38432 bytes
I used the correct paths when using "version", but if I use a path to a
directory that neither file is in, I get the same response so I'm inclined
to think that in all cases I have been given the system installed library
version, not necessarily the file I'm trying to find the version of. As
you can see, I'm a little confused as to what I should be doing at this
point.
BTW, I checked the AmigaGuide archive here, and the AmigaGuide.library
files is a different size (62932) than the above mentioned two I have.
=Rick=
Are you using the FILE option of the version command ? Otherwise you'll get
the version number of the library that a program that opened that library will
get. (If you've powerpacked your libraries, the file option naturally won't
work; otherwise it should)
andy
No, I supposed I'm not using the file option of "version" since I didn't
even know about it…..I just tried using the FILE option and couldn't
figure out how it works "N,FILE"??? There is nothing in my WB 3.0 manual
about using version, as a matter of fact my workbench 3.0 manual that came
with my A1200 doesn't have much of anything in it <G>.
=Rick=
Well, you probably should pick up one of the books that describe the AmigaDOS
commands more fully, such as the Bantam AmigaDOS manual.
Basically, the FILE option is a switch keyword that tells the version command
to inspect the binary itself, rather than attempting to find out the version
number by opening the library. So to find out the version of an
amigaguide.library on a particular drive, you might say:
version df2:libs/amigaguide.library file
Version will scan the file, and report any embedded version number it may
contain (assuming it contains a version number according to the rules given in
the Style Guide)
andy
Andy-
Is it ALWAYS reliable to run Strings on a lib for version?
–Paul < Motorola Inside >
Strings ? I assume you mean Version ?
The short answer is no. It generally works with modern libraries. Basically, a
library can set up its own version number at time of first open
programatically, or it can include a RomTag which contains a version number.
For user convenience, most modern libraries _also_ contain an Amiga Style Guide
version string, which can be read directly from the binary by the version
command. However, this is not an absolute rule. (In addition, there's always
the chance of programmer error…especially if they maintain their version
numbers by hand rather than by an automated tool which creates a #define; in
that case its possible for the library to contain mismatched version numbers)
andy
That's filling in the details, thanks. I meant if you read just the ASCII
strings in the binary file, same thing as you explained though right?
–Paul < Motorola Inside >
Correct, Paul.
andy
Rick,
Place the word "file" after the full path specification,
7.Work:ap> version libs:Reqtools.library file
reqtools.library 38.1092
That should read the version number from the file on disk rather than a
memory resident library.
-sja