This is the mail archive of the
cygwin@sourceware.cygnus.com
mailing list for the Cygwin project.
RE: g++ COM problem with function pointers and -O2
- To: cygwin at sourceware dot cygnus dot com
- Subject: RE: g++ COM problem with function pointers and -O2
- From: "Fifer, Eric" <EFifer at sanwaint dot com>
- Date: Wed, 10 May 2000 11:51:55 +0100
- Cc: 'Mumit Khan' <khan at NanoTech dot Wisc dot EDU>
After seeing the description of the C++ parser bug with function
attributes under the "g++/linker bug on cygwin1.1.0 (win32)"
thread, I went back to look at the code causing my problem.
I switched some declarations around, from:
typedef HRESULT (STDAPICALLTYPE FNCOCREATEINSTANCEEX)
(REFCLSID, IUnknown*, DWORD, COSERVERINFO*, DWORD, MULTI_QI*);
FNCOCREATEINSTANCEEX *pfnCoCreateInstanceEx;
to:
HRESULT STDAPICALLTYPE (*pfnCoCreateInstanceEx)(REFCLSID,
IUnknown*, DWORD,COSERVERINFO*, DWORD, MULTI_QI*);
And this also works around my problem.
Could this be another manifestation of the same bug?
Thanks,
Eric Fifer
--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com