Closed

Description
Adding -D_MSC_VER also not working and I got a lot of errors
gcc4.9
In file included from D:/mingw32/i686-w64-mingw32/include/combaseapi.h:154:0,
from D:/mingw32/i686-w64-mingw32/include/objbase.h:14,
from D:/mingw32/i686-w64-mingw32/include/ole2.h:17,
from D:/mingw32/i686-w64-mingw32/include/wtypes.h:12,
from D:/mingw32/i686-w64-mingw32/include/winscard.h:10,
from D:/mingw32/i686-w64-mingw32/include/windows.h:97,
from mmap.h:6,
from peglint.cc:11:
D:/mingw32/i686-w64-mingw32/include/unknwnbase.h: In member function 'HRESULT IUnknown::QueryInterface(Q**)':
D:/mingw32/i686-w64-mingw32/include/unknwnbase.h:74:39: error: expected primary-expression before ')' token
return QueryInterface(__uuidof(Q), (void **)pp);
^
D:/mingw32/i686-w64-mingw32/include/unknwnbase.h:74:39: error: there are no arguments to '__uuidof' that depend on a template parameter, so a declaration of '__uuidof' must be available [-fpermissive]
D:/mingw32/i686-w64-mingw32/include/unknwnbase.h:74:39: note: (if you use '-fpermissive', G++ will accept your code, but allowing the use of an undeclared name is deprecated)
In file included from D:/mingw32/i686-w64-mingw32/include/urlmon.h:289:0,
from D:/mingw32/i686-w64-mingw32/include/objbase.h:163,
from D:/mingw32/i686-w64-mingw32/include/ole2.h:17,
from D:/mingw32/i686-w64-mingw32/include/wtypes.h:12,
from D:/mingw32/i686-w64-mingw32/include/winscard.h:10,
from D:/mingw32/i686-w64-mingw32/include/windows.h:97,
from mmap.h:6,
from peglint.cc:11:
D:/mingw32/i686-w64-mingw32/include/servprov.h: In member function 'HRESULT IServiceProvider::QueryService(const GUID&, Q**)':
D:/mingw32/i686-w64-mingw32/include/servprov.h:66:46: error: expected primary-expression before ')' token
return QueryService(guidService, __uuidof(Q), (void **)pp);
^
D:/mingw32/i686-w64-mingw32/include/servprov.h:66:46: error: there are no arguments to '__uuidof' that depend on a template parameter, so a declaration of '__uuidof' must be available [-fpermissive]
Metadata
Metadata
Assignees
Labels
No labels