I've the following problem:
An application, which I'm developing (C++) under cygwin requires the
header-file <w32api/ole2.h>.
During compilation, "gcc" outputs the following error-massages and warnings:
        'com-interface' only supported with -fvtable-thunks.
        Warning: 'com-interface' attribute directive ignored.
These messages occur for most of the header-files included by
<w32api/ole2.h> and the compilation exits with error.
An example of the offending code:
        header-file unknwn.h: 23 (andf before)
                DECLARE_INTERFACE(IUnknown)
                {
                        STDMETHOD(QueryInterface)(THIS_ REFIID, PVOID *)
PURE;
                        STDMETHOD(ULONG, AddReff)(THIS) PURE;
                        STDMETHOD(ULONG, Release)(THIS) PURE;
                };
        -> I'm not sure what -fvtable-thunks means.
            At any rate I can't find an option for gcc (version: 2.95.3-5)
with this name.
I would be most appreciative, if anybody could help me with this problem?
all the best
Tony Griffiths.

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

Reply via email to