I don't quite understand with respect to the documentations on linkage compatibility business as shown in the compiler message below:
I found a prospective problem that's associated with this warning could be that I'm using a string object inside a user-defined struct. Is it legal in the language to declare a string inside a struct?Code:1>e:\test\installer\prninst.h(159) : warning C4190: 'ObtainPrinterDriverDirectory' has C-linkage specified, but returns UDT 'std::basic_string<_Elem,_Traits,_Ax>' which is incompatible with C 1> with 1> [ 1> _Elem=wchar_t, 1> _Traits=std::char_traits<wchar_t>, 1> _Ax=std::allocator<wchar_t> 1> ]



LinkBack URL
About LinkBacks



