Guopeng Wen wrote:

> I just found that I can build Windows native executable with cygwin
> (again) using new mingw64-i686-* packages.  Those packages are used
> for win32 target development.
> 
> When I try to build I found the following error:
>     In file included from if_ole.cpp:44:0:
>     if_ole.h:49:54: error: declaration of C function
>     =91void* MIDL_user_allocate(size_t)=92 conflicts with
>     /usr/i686-w64-mingw32/sys-root/mingw/include/rpcndr.h:97:20: error:
>     previous declaration =91void* MIDL_user_allocate(SIZE_T)=92 here
> 
> Here's the command line I used to build Vim GUI under cygwin:
>     cd src && \
>     make GUI=3Dyes OLE=3Dyes ARCH=3Di686 WINVER=3D0x0500 NETBEANS=3Dno \
>     CROSS_COMPILE=3D/usr/bin/i686-w64-mingw32- STATIC_STDCPLUS=3Dyes \
>     -f Make_ming.mak
> 
> The error can be easily fixed with the attached patch (conditional
> compilation for prototypes).  I've verified that patch with the
> following build environment:
> - MinGW
> - mingw64-i686 under cygwin
> - Visual Studio 2010

Thanks, I'll include it.

-- 
hundred-and-one symptoms of being an internet addict:
103. When you find yourself in the "Computer" section of Barnes & Noble
     enjoying yourself.

 /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

-- 
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

Raspunde prin e-mail lui