Axel Bender wrote:

> Compiling gvim.exe (64bit) on Windows 7 using gcc results in the following 
> error - which doesn't show up with DIRECTX=no:
> 
> gcc -c -Iproto -DWIN32 -DWINVER=0x0500 -D_WIN32_WINNT=0x0500 -DHAVE_PATHDEF 
> -DFEAT_BIG -DMS_WIN64 -DHAVE_GETTEXT -DHAVE_LOCALE_H -DDYNAMIC_GETTEXT 
> -DFEAT_OLE -DFEAT_CSCOPE -DFEAT_DIRECTX -DDYNAMIC_DIRECTX -DFEAT_GUI_W32 
> -DFEAT_CLIPBOARD -DFEAT_MBYTE -DFEAT_MBYTE_IME -DDYNAMIC_IME -DDYNAMIC_ICONV 
> -pipe -w -march=x86-64 -Wall -Id:/tools/perl/lib/Core -DFEAT_PERL 
> -DDYNAMIC_PERL -DDYNAMIC_PERL_DLL=\"perl516.dll\" -DFEAT_PYTHON  
> -DDYNAMIC_PYTHON -DFEAT_PYTHON3  -DDYNAMIC_PYTHON3  -DFEAT_XPM_W32 -I 
> xpm/x64/include -I xpm/x64/../include -O3 -fomit-frame-pointer 
> -freg-struct-return -s gui_dwrite.cpp -o gobjx86-64/gui_dwrite.o
> 
> gui_dwrite.cpp: In member function 'virtual long unsigned int 
> GdiTextRenderer::AddRef()':
> gui_dwrite.cpp:339:41: error: invalid conversion from 'long unsigned int*' to 
> 'volatile long int*' [-fpermissive]
>   return InterlockedIncrement(&cRefCount_);
>                                          ^
> In file included from 
> d:/tools/mingw/mingw64/x86_64-w64-mingw32/include/winnt.h:26:0,
>                  from 
> d:/tools/mingw/mingw64/x86_64-w64-mingw32/include/minwindef.h:146,
>                  from 
> d:/tools/mingw/mingw64/x86_64-w64-mingw32/include/windef.h:8,
>                  from 
> d:/tools/mingw/mingw64/x86_64-w64-mingw32/include/windows.h:69,
>                  from gui_dwrite.cpp:20:
> d:/tools/mingw/mingw64/x86_64-w64-mingw32/include/psdk_inc/intrin-impl.h:978:10:
>  note: initializing argument 1 of 'long int _InterlockedIncrement(volatile 
> long int*)'
>  __LONG32 _InterlockedIncrement(__LONG32 volatile *Addend) {
>           ^

Can you remove the "unsigned" in line 380, in the declaration of
cRefCount_ and check that this fixes the error?

> gui_dwrite.cpp: In member function 'virtual long unsigned int 
> GdiTextRenderer::Release()':
> gui_dwrite.cpp:344:50: error: invalid conversion from 'long unsigned int*' to 
> 'volatile long int*' [-fpermissive]
>   long newCount = InterlockedDecrement(&cRefCount_);
>                                                   ^
> In file included from 
> d:/tools/mingw/mingw64/x86_64-w64-mingw32/include/winnt.h:26:0,
>                  from 
> d:/tools/mingw/mingw64/x86_64-w64-mingw32/include/minwindef.h:146,
>                  from 
> d:/tools/mingw/mingw64/x86_64-w64-mingw32/include/windef.h:8,
>                  from 
> d:/tools/mingw/mingw64/x86_64-w64-mingw32/include/windows.h:69,
>                  from gui_dwrite.cpp:20:
> d:/tools/mingw/mingw64/x86_64-w64-mingw32/include/psdk_inc/intrin-impl.h:987:10:
>  note: initializing argument 1 of 'long int _InterlockedDecrement(volatile 
> long int*)'
>  __LONG32 _InterlockedDecrement(__LONG32 volatile *Addend) {
>           ^
> make: *** [gobjx86-64/gui_dwrite.o] Error 1

Looks like the same problem.

-- 
All good vision statements are created by groups of people with bloated
bladders who would rather be doing anything else.
                                (Scott Adams - The Dilbert principle)

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

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Raspunde prin e-mail lui