I have a Native C++ Static Library. I am using Visual Studio 2012 in Windows and Eclipse in Linux.
Is there any Built-in functionality to give a Static Library Version information?
I tried following the same steps I took for my C++/CLI library but it doesn't seem to have any effect.
It builds but I don't see the version in any place.
How do you set versioning information to a Static Library?
- Is there built-in functionality in Visual Studio to this purpose?
- If not, What is the correct way for setting the Version information? Any best practices?
- How do you do it for Linux? (I build my Library for windows as a *.lib file and for Linux as a .a file, I need to keep version information)
Update
This is the VersionInfo with the SpecialBuild that Paul Suggested. The field doesn't show in any place.
VS_VERSION_INFO VERSIONINFO
FILEVERSION 61,0,0,1
PRODUCTVERSION 1,0,0,1
FILEFLAGSMASK 0x3fL
#ifdef _DEBUG
FILEFLAGS 0x21L
#else
FILEFLAGS 0x20L
#endif
FILEOS 0x40004L
FILETYPE 0x2L
FILESUBTYPE 0x0L
BEGIN
BLOCK "StringFileInfo"
BEGIN
BLOCK "040004b0"
BEGIN
VALUE "CompanyName", "TODO: <Company name>"
VALUE "FileDescription", "TODO: <File description>"
VALUE "FileVersion", "61.0.0.1"
VALUE "InternalName", "ExxonMobil.Rapid.Services.TEM"
VALUE "LegalCopyright", "Copyright (C) 2014"
VALUE "OriginalFilename", "ExxonMobil.Rapid.Services.TEM"
VALUE "ProductName", "TODO: <Product name>"
VALUE "ProductVersion", "1.0.0.1"
VALUE "SpecialBuild ", "Blah"
END
END
BLOCK "VarFileInfo"
BEGIN
VALUE "Translation", 0x400, 1200
END
END