LNK 2019 with std::basic_ostream since switch form 2002 to 2003

  • Thread starter Thread starter Peter Meier
  • Start date Start date
P

Peter Meier

Hello,

linking external libraries, which linked perfectly under
net 2002 bring up lots of unresolved external symbols for
standard iostream calls: any idea what could cause that or
how to fix that problem?


Greeting Peter


error LNK2019: unresolved external symbol "__declspec
(dllimport) class std::basic_ostream<char,struct
std::char_traits<char> > & __cdecl std::operator<<(class
std::basic_ostream<char,struct std::char_traits<char> >
&,char const *)" (__imp_??6std@@YAAAV?$basic_ostream@DU?
$char_traits@D@std@@@0@AAV10@PBD@Z) referenced in ...

error LNK2001: unresolved external symbol "class
std::basic_ostream<char,struct std::char_traits<char> > &
__cdecl std::operator<<(class
std::basic_ostream<char,struct std::char_traits<char> >
&,class std::basic_string<char,struct
std::char_traits<char>,class std::allocator<char> > const
&)" (??6std@@YAAAV?$basic_ostream@DU?
$char_traits@D@std@@@0@AAV10@ABV?$basic_string@DU?
$char_traits@D@std@@V?$allocator@D@2@@0@@Z...
 
Dynamically linking to mfc solved the problem, although it
does not seem to be the cleanest solution to me.
Any background informations would be nice.

Greetings, Peter
 
Back
Top