This information is taken from the version information resource. Windows executables may contain resource files embedded in them. Typically, a script resource ( .rc file) is created in Microsoft Visual Studio, and the Visual Studio Resource Compiler compiles it into an executable for you. VS also contains a beautiful visual resource editor for editing various types of resources (string tables, icons, bitmaps, cursors, menus, dialog boxes, version information, etc.).
With GCC, you will need to create the script resource yourself. See MSDN for more information on the resource type VERSIONINFO . When you have created a valid script resource, you can use windres to compile it into an object ( .o ) file. This page has a good example of how to do this. Finally, as soon as you have an object file, you simply link it to the rest of the object files, as usual.
source share