Thank you for mingw-w64.
I am writing a DLL extension in C (not C++) and I came across a problem
when I write test.c as:
$cat test.c
#include <dwrite.h>
compiling the above causes an error.
An easy way to reproduce this error is to not bother with the test.c file
and run (in msys):
$ echo |gcc -xc -include /mingw/i686-w64-mingw32/include/dwrite.h -
In file included from c:\mingw\i686-w64-mingw32\include\objbase.h:14:0,
from c:\mingw\i686-w64-mingw32\include\ole2.h:17,
from c:\mingw\i686-w64-mingw32\include\wtypes.h:12,
from c:\mingw\i686-w64-mingw32\include\winscard.h:10,
from c:\mingw\i686-w64-mingw32\include\windows.h:97,
from c:\mingw\i686-w64-mingw32\include\rpc.h:16,
from c:\mingw\i686-w64-mingw32\include\unknwn.h:7,
from c:/mingw/i686-w64-mingw32/include/dwrite.h:18,
from <command-line>:0:
c:/mingw/i686-w64-mingw32/include/dwrite.h:1946:15: error: duplicate member
'GetFontCollection'
STDMETHOD(GetFontCollection)(THIS_
^
c:/mingw/i686-w64-mingw32/include/dwrite.h:1950:15: error: duplicate member
'GetFontFamilyNameLength'
STDMETHOD(GetFontFamilyNameLength)(THIS_
^
c:/mingw/i686-w64-mingw32/include/dwrite.h:1954:15: error: duplicate member
'GetFontFamilyName'
STDMETHOD(GetFontFamilyName)(THIS_
^
c:/mingw/i686-w64-mingw32/include/dwrite.h:1959:15: error: duplicate member
'GetFontWeight'
STDMETHOD(GetFontWeight)(THIS_
^
c:/mingw/i686-w64-mingw32/include/dwrite.h:1963:15: error: duplicate member
'GetFontStyle'
STDMETHOD(GetFontStyle)(THIS_
^
c:/mingw/i686-w64-mingw32/include/dwrite.h:1967:15: error: duplicate member
'GetFontStretch'
STDMETHOD(GetFontStretch)(THIS_
^
c:/mingw/i686-w64-mingw32/include/dwrite.h:1971:15: error: duplicate member
'GetFontSize'
STDMETHOD(GetFontSize)(THIS_
^
c:/mingw/i686-w64-mingw32/include/dwrite.h:1995:15: error: duplicate member
'GetLocaleNameLength'
STDMETHOD(GetLocaleNameLength)(THIS_
^
c:/mingw/i686-w64-mingw32/include/dwrite.h:1999:15: error: duplicate member
'GetLocaleName'
STDMETHOD(GetLocaleName)(THIS_
^
In the first error, the problem seems to be that the GetFontCollection
function is overloaded and C doesn't allow the same name for two members of
a struct.
If anyone can indicate a fix for one of these errors, I will prepare a
patch.
Thanks,
Jack
Searching, I found a similar problem here:
http://sourceforge.net/p/mingw-w64/mailman/mingw-w64-public/thread/53F33D3A.6080208%40codeweavers.com/#msg32735087
------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public