Recently I found a build error when build Windows GUI version using
mingw64 package under cygwin on Windows 7:

    /usr/bin/i686-w64-mingw32-windres \
      --preprocessor="/usr/bin/i686-w64-mingw32-gcc -E -xc" \
      -DRC_INVOKED -DWIN32 -DWINVER=0x0500 \
      -D_WIN32_WINNT=0x0500 -DHAVE_PATHDEF -DFEAT_BIG \
      -DHAVE_GETTEXT -DHAVE_LOCALE_H -DDYNAMIC_GETTEXT \
      -DFEAT_CSCOPE -DFEAT_MBYTE -DFEAT_MBYTE_IME \
      -DDYNAMIC_IME -DDYNAMIC_ICONV vim.rc obj/vimres.res
    /usr/bin/i686-w64-mingw32-windres \
      --preprocessor="/usr/bin/i686-w64-mingw32-gcc -E -xc" \
      -DRC_INVOKED obj/vimres.res obj/vimrc.o
    windres: unexpected version string length 68 != 32 + 8

Here's the version I'm currently using:

    $ cygcheck -c mingw64-i686-gcc mingw64-x86_64-gcc
    Cygwin Package Information
    Package              Version        Status
    mingw64-i686-gcc     4.5.3-5        OK
    mingw64-x86_64-gcc   4.5.3-5        OK

The problem have already started with version 4.5.3-4.

I found that the error won't happen if I build "obj/vimrc.o" from
"vim.rc" directly, without going through the "vimres.res" step.  I
attached the patch.  The change should be OK as the resource for
GvimExt is built in the same way, and Make_cyg.mak also uses the
same 1-step strategy.

Regards!
-- 
Guopeng

-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

Attachment: make-ming-windres.patch
Description: Binary data

Raspunde prin e-mail lui