B
Bit Byte
I have written a Dll which contains a class. I overload the "<<" opertor
in global functions to perform Ostream operations - a follows:
ostream &operator << (ostream &os, const struct _mystruct_t &ms)
However (perhaps unsuprisngly), my function is not expoted in the
DLL/lib - and when I try to build a project that uses the Dll, I get
linkage error:
demo error LNK2019: unresolved external symbol "class
std::basic_ostream<char,struct std::char_traits<char> > & __cdecl
operator<<(class std::basic_ostream<char,struct std::char_traits<char> >
&,struct _mystruct_t const &)"
Anyone knows how I can resolve this?
in global functions to perform Ostream operations - a follows:
ostream &operator << (ostream &os, const struct _mystruct_t &ms)
However (perhaps unsuprisngly), my function is not expoted in the
DLL/lib - and when I try to build a project that uses the Dll, I get
linkage error:
demo error LNK2019: unresolved external symbol "class
std::basic_ostream<char,struct std::char_traits<char> > & __cdecl
operator<<(class std::basic_ostream<char,struct std::char_traits<char> >
&,struct _mystruct_t const &)"
Anyone knows how I can resolve this?