This is the mail archive of the cygwin mailing list for the Cygwin 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]

Re: windres: zlib.rc:4: syntax error


Ok using the very latest zlib distribution I was able to compile the rc file:

$ windres -DGCC_WINDRES -i win32/zlib1.rc -o win32/zlib1.res

Simple bad luck...

Sorry for the noise,
-M

On 2/21/07, Mathieu Malaterre <mathieu.malaterre@gmail.com> wrote:
Hello there,

  Has anyone of you any experience in using windres. I simply wanted
to try it out on a random res file. Here is what I get:

$ windres -i zlib.rc -o zlib.res
windres: zlib.rc:4: syntax error

Am I missing something here ? I could only find a very old post on that subject:
http://www.cygwin.com/ml/cygwin/1998-01/msg00600.html

Thanks
-Mathieu

$ cat zlib.rc
#include <windows.h>

#define IDR_VERSION1  1
IDR_VERSION1    VERSIONINFO     MOVEABLE IMPURE LOADONCALL DISCARDABLE
  FILEVERSION    1,1,3,0
  PRODUCTVERSION 1,1,3,0
  FILEFLAGSMASK VS_FFI_FILEFLAGSMASK
  FILEFLAGS     0
  FILEOS        VOS_DOS_WINDOWS32
  FILETYPE      VFT_DLL
  FILESUBTYPE   0       // not used
BEGIN
  BLOCK "StringFileInfo"
  BEGIN
    BLOCK "040904E4"
    //language ID = U.S. English, char set = Windows, Multilingual

    BEGIN
      VALUE "FileDescription", "zlib data compression library\0"
      VALUE "FileVersion",      "1.1.3\0"
      VALUE "InternalName",     "zlib\0"
      VALUE "OriginalFilename", "zlib.dll\0"
      VALUE "ProductName",      "ZLib.DLL\0"
      VALUE "Comments","DLL support by Alessandro Iacopetti & Gilles Vollant\0"
      VALUE "LegalCopyright", "(C) 1995-1998 Jean-loup Gailly & Mark Adler\0"
    END
  END
  BLOCK "VarFileInfo"
  BEGIN
    VALUE "Translation", 0x0409, 1252
  END
END



--
Mathieu

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


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