Hi All,
All compilers are broken in C++ mode for hbwin / axcore.c, this means
msvc and owatcom in default builds.
Any chance fixing these?
--- msvc
../../axcore.c(155) : error C2143: syntax error : missing ';' before '*'
../../axcore.c(155) : error C4430: missing type specifier - int
assumed. Note: C++ does not support default-int
../../axcore.c(155) : error C4430: missing type specifier - int
assumed. Note: C++ does not support default-int
../../axcore.c(184) : error C2039: 'lpVtbl' : is not a member of 'ISink'
../../axcore.c(154) : see declaration of 'ISink'
../../axcore.c(184) : error C2227: left of '->Release' must point to
class/struct/union/generic type
../../axcore.c(190) : error C2664: 'IsEqualGUID' : cannot convert
parameter 2 from 'const IID *' to 'const GUID &'
Reason: cannot convert from 'const IID *' to 'const GUID'
No constructor could take the source type, or constructor
overload resolution was ambiguous
../../axcore.c(190) : error C2664: 'IsEqualGUID' : cannot convert
parameter 2 from 'const IID *' to 'const GUID &'
Reason: cannot convert from 'const IID *' to 'const GUID'
No constructor could take the source type, or constructor
overload resolution was ambiguous
../../axcore.c(193) : error C2039: 'lpVtbl' : is not a member of 'ISink'
../../axcore.c(154) : see declaration of 'ISink'
../../axcore.c(193) : error C2227: left of '->AddRef' must point to
class/struct/union/generic type
../../axcore.c(202) : error C2365: 'AddRef' : redefinition; previous
definition was 'formerly unknown identifier'
../../axcore.c(208) : error C2365: 'Release' : redefinition; previous
definition was 'formerly unknown identifier'
../../axcore.c(261) : error C2664: 'IsEqualGUID' : cannot convert
parameter 2 from 'const IID *' to 'const GUID &'
Reason: cannot convert from 'const IID *' to 'const GUID'
No constructor could take the source type, or constructor
overload resolution was ambiguous
../../axcore.c(281) : warning C4244: 'argument' : conversion from
'int' to 'USHORT', possible loss of data
../../axcore.c(291) : error C4430: missing type specifier - int
assumed. Note: C++ does not support default-int
../../axcore.c(291) : error C2146: syntax error : missing ';' before
identifier 'ISink_Vtbl'
../../axcore.c(291) : error C4430: missing type specifier - int
assumed. Note: C++ does not support default-int
../../axcore.c(292) : error C2440: 'initializing' : cannot convert
from 'HRESULT (__stdcall *)(IDispatch *,const IID &,void **)' to
'int'
There is no context in which this conversion is possible
../../axcore.c(293) : error C2078: too many initializers
../../axcore.c(331) : error C2039: 'lpVtbl' : is not a member of 'ISink'
../../axcore.c(154) : see declaration of 'ISink'
../../axcore.c(331) : error C2059: syntax error : ')'
---
--- owatcom
../../axcore.c(155): Error! E336: col(17) declaration specifiers are
required to declare 'IDispatchVtbl'
../../axcore.c(155): Error! E006: col(17) syntax error; probable
cause: missing ';'
../../axcore.c(160): Error! E498: col(3) syntax error before 'ISink';
probable cause: incorrectly spelled type name
../../axcore.c(165): Error! E121: col(29) syntax error
../../axcore.c(167): Error! E029: col(8) symbol 'pSink' has not been declared
../../axcore.c(172): Error! E029: col(8) symbol 'pSink' has not been declared
../../axcore.c(184): Error! E029: col(9) symbol 'pSink' has not been declared
../../axcore.c(190): Error! E473: col(40) function argument(s) do not
match those in prototype
../../axcore.c(190): Note! N392: col(40) definition: 'int IsEqualGUID(
_GUID const &, _GUID const & )'
../../axcore.c(190): Note! N643: col(40) cannot convert argument 2
defined in: ../../axcore.c(190) (col 40)
../../axcore.c(190): Note! N630: col(40) source conversion type is
'_GUID const *'
../../axcore.c(190): Note! N631: col(40) target conversion type is
'_GUID const (lvalue)'
../../axcore.c(190): Error! E473: col(78) function argument(s) do not
match those in prototype
../../axcore.c(190): Note! N392: col(78) definition: 'int IsEqualGUID(
_GUID const &, _GUID const & )'
../../axcore.c(190): Note! N643: col(78) cannot convert argument 2
defined in: ../../axcore.c(190) (col 78)
../../axcore.c(190): Note! N630: col(78) source conversion type is
'_GUID const *'
../../axcore.c(190): Note! N631: col(78) target conversion type is
'_GUID const (lvalue)'
../../axcore.c(193): Error! E121: col(18) syntax error
../../axcore.c(203): Error! E121: col(24) syntax error
../../axcore.c(204): Error! E028: col(1) expecting ';' but found '}'
../../axcore.c(207): Error! E337: col(32) static function declared in
block scope
../../axcore.c(207): Note! N751: col(32) function prototype is
'unsigned long stdcall ( IDispatch * )'
../../axcore.c(208): Error! E006: col(1) syntax error; probable cause:
missing ';'
../../axcore.c(302): Error! E115: col(30) linkages may only be
declared in file scope
../../axcore.c(303): Error! E006: col(1) syntax error; probable cause:
missing ';'
../../axcore.c(360): Error! E199: col(0) premature end-of-file
encountered during compilation
../../axcore.c(360): Warning! W014: col(0) no reference to symbol
'hb_sink_destructor'
../../axcore.c(163): Note! N392: col(44) definition: 'void
hb_sink_destructor( void * )'
../../axcore.c(360): Warning! W014: col(0) no reference to symbol
'QueryInterface'
../../axcore.c(188): Note! N392: col(34) definition: 'long stdcall
QueryInterface( IDispatch *, _GUID const &, void * * )'
../../axcore.c(360): Warning! W014: col(0) no reference to symbol 'AddRef'
../../axcore.c(201): Note! N392: col(32) definition: 'unsigned long
stdcall AddRef( IDispatch * )'
---
Brgds,
Viktor
_______________________________________________
Harbour mailing list
[email protected]
http://lists.harbour-project.org/mailman/listinfo/harbour