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
‘void* MIDL_user_allocate(size_t)’ conflicts with
/usr/i686-w64-mingw32/sys-root/mingw/include/rpcndr.h:97:20: error:
previous declaration ‘void* MIDL_user_allocate(SIZE_T)’ here
Here's the command line I used to build Vim GUI under cygwin:
cd src && \
make GUI=yes OLE=yes ARCH=i686 WINVER=0x0500 NETBEANS=no \
CROSS_COMPILE=/usr/bin/i686-w64-mingw32- STATIC_STDCPLUS=yes \
-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
--
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
if_ole.patch
Description: Binary data
