Asa Jay wrote:
> I tried compiling with mingw64 under windows 7. This raised the attached
> error, which I could bypass by setting the -fpermissive flag manually in
> Make_ming.mak. I don't think this is the intended way, which is why I report
> this here.
>
> This is the minimal failing call that I used:
> mingw32-make.exe -f Make_ming.mak all ARCH=x86-64 GUI=yes DIRECTX=yes
>
> Error output:
> 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
> return InterlockedIncrement(&cRefCount_);
> ^
> In file included from D:/mingw64/x86_64-w64-mingw32/include/winnt.h:26:0,
> from D:/mingw64/x86_64-w64-mingw32/include/minwindef.h:146,
> from D:/mingw64/x86_64-w64-mingw32/include/windef.h:8,
> from D:/mingw64/x86_64-w64-mingw32/include/windows.h:69,
> from gui_dwrite.cpp:20:
> D:/mingw64/x86_64-w64-mingw32/include/psdk_inc/intrin-impl.h:978:10: error:
> initializing ar
> __LONG32 _InterlockedIncrement(__LONG32 volatile *Addend) {
> ^
> 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
> long newCount = InterlockedDecrement(&cRefCount_);
> ^
> In file included from D:/mingw64/x86_64-w64-mingw32/include/winnt.h:26:0,
> from D:/mingw64/x86_64-w64-mingw32/include/minwindef.h:146,
> from D:/mingw64/x86_64-w64-mingw32/include/windef.h:8,
> from D:/mingw64/x86_64-w64-mingw32/include/windows.h:69,
> from gui_dwrite.cpp:20:
> D:/mingw64/x86_64-w64-mingw32/include/psdk_inc/intrin-impl.h:987:10: error:
> initializing ar
> __LONG32 _InterlockedDecrement(__LONG32 volatile *Addend) {
> ^
> Make_ming.mak:778: recipe for target 'gobjx86-64/gui_dwrite.o' failed
> mingw32-make.exe: *** [gobjx86-64/gui_dwrite.o] Error 1
As I suggested to Axel:
Can you remove the "unsigned" in line 380, in the declaration of
cRefCount_ and check that this fixes the error?
--
A)bort, R)etry, B)ang it with a large hammer
/// 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.