Re: error LNK2019: unresolved external symbol
lalo wrote:
I spent the day trying to fix this error LNK2019 of unresolved external
symbol.
How did you get to this error in the first place? Show the code, tell us
about the project settings and what compiler and target you use.
It as something to do with the stl library.
You mean the C++ standardlibrary. The STL (the final L already stands for
library) is obsolete since large parts were incorporated into the C++
standardlib. But that just for your info.
I found on my computer different versions of <string> <iostream>...
Which ones are the right one?
Your compiler should know, unless you messed up the settings.
ipl98_visualc.lib(complex_image.obj) : error LNK2019: unresolved
external symbol "__declspec(dllimport) class
std::basic_ostream<char,struct std::char_traits<char> > & __cdecl
std::operator<<<char,struct std::char_traits<char> >(class
std::basic_ostream<char,struct std::char_traits<char> > &,char const
*)"
That is the definition of
ostream& operator<<( ostream&, char const*);
that is missing. The only way I can imagine to get this error is to
explicitly not link to the C++ standardlibrary, but that requires some
effort.
Again, what exactly did you do in order to produce this problem in the first
place.
Uli