gcc-c++ handling of default arguments
niXman
i.nixman@autistici.org
Mon Dec 8 15:51:00 GMT 2014
Michael Cronenworth 2014-12-08 18:27:
> Hello,
>
> I'm encountering an issue with gcc-c++ (4.9.2) and I'm not sure if it
> is a bug with gcc or the MinGW headers providing the functions.
Hi,
Please show the output of 'g++ -v'
> error: default argument missing for parameter 9 of 'virtual HRESULT
> ISWbemLocator::ConnectServer(BSTR, BSTR, BSTR, BSTR, BSTR, BSTR, LONG,
> IDispatch*, ISWbemServices**)'
> virtual HRESULT STDMETHODCALLTYPE ConnectServer(
> ^
>
> The function is defined as:
>
> virtual HRESULT STDMETHODCALLTYPE ConnectServer(
> BSTR strServer = L".",
> BSTR strNamespace = L"",
> BSTR strUser = L"",
> BSTR strPassword = L"",
> BSTR strLocale = L"",
> BSTR strAuthority = L"",
> LONG iSecurityFlags = 0,
> IDispatch *objWbemNamedValueSet = 0,
> ISWbemServices **objWbemServices) = 0;
>
>
> On the surface the syntax looks correct, but gcc does not agree. Who is
> correct?
>
> Thanks,
> Michael
--
Regards, niXman
___________________________________________________
Dual-target(32 & 64-bit) MinGW-W64 compilers for 32 and 64-bit Windows:
http://sourceforge.net/projects/mingw-w64/
___________________________________________________
Another online IDE: http://liveworkspace.org/
More information about the Gcc-help
mailing list