This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

about windres


Hi,

I create the following .rc:
#include <windows.h>

2 ICON "icons/Ampempty.ico"

1 VERSIONINFO
FILEVERSION 1,1,0,0
PRODUCTVERSION 1,0,0,0
FILEOS VOS__WINDOWS32
{
  BLOCK "StringFileInfo"{
    BLOCK "0x0409"{
      VALUE "Comment", "This is testing program"
      VALUE "CompanyName","Imaginary Company"
      VALUE "FileDescription", "Experiment program"
      VALUE "FileVersion", "Build Ver1.0"
      VALUE "LegalCopyright","Copyright© foo"
      VALUE "OriginalFilename","foo.exe"
      VALUE "ProductName", "FOO"
      VALUE "ProductVersion", "P2D2"
    }
  }
}

I used windres to compile this script:
windres foo.rc -O coff -o foo.res

Then I compile my c source(foo.c) :
gcc -s -mwindows foo.res md5.o foo.c -mno-cygwin -e
_mainCRTStartup -o epos.exe

However, I only see the icon to my executable. But when I right-
clicked to view the property of the executable. Under the Version
tab of the Property, I see no info printed and totally blank. Why is it
so? Is it my .rc file wrong or my compilation is not linking to the res
file?

   Thank you in advance. :)

Regards
Michael


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]