Hi,
I am using VS2003 and I received the following error during compilation
of the IDL generated files when I use Wstring while I have no problem
when using String.
Linking...
SVVL.obj : error LNK2019: unresolved external symbol "public: wchar_t *
& __thiscall CORBA::WString_var::out(void)"
([EMAIL PROTECTED]@CORBA@@QAEAAPA_WXZ) referenced in function "public:
wchar_t * & __thiscall CORBA::WString_var::_for_demarshal(void)"
([EMAIL PROTECTED]@CORBA@@QAEAAPA_WXZ)
SVVL.obj : error LNK2019: unresolved external symbol "public: wchar_t *
& __thiscall CORBA::WString_var::inout(void)"
([EMAIL PROTECTED]@CORBA@@QAEAAPA_WXZ) referenced in function "public:
virtual void __thiscall _Marshaller_SVVL_TagPacket::marshal(class
CORBA::DataEncoder &,void *)const "
([EMAIL PROTECTED]@@[EMAIL PROTECTED]@@[EMAIL PROTECTED])
Debug/Server.exe : fatal error LNK1120: 2 unresolved externals
The following is the part of the IDL:
struct TagPacket {
LogDateTime timestamp;
TagType tagType;
wstring data;
};
I have narrowed to the following lines in the generated code
void _Marshaller_SVVL_TagPacket::marshal( ::CORBA::DataEncoder &ec,
StaticValueType v ) const
{
ec.struct_begin();
_marshaller_SVVL_LogDateTime->marshal( ec, &((_MICO_T*)v)->timestamp
);
_marshaller_SVVL_TagType->marshal( ec, &((_MICO_T*)v)->tagType );
CORBA::_stc_wstring->marshal( ec, &((_MICO_T*)v)->data.inout() );
ec.struct_end();
}
Thanks,
Yew Ming
_______________________________________________
Mico-devel mailing list
[email protected]
http://www.mico.org/mailman/listinfo/mico-devel