Re: unresolved external error LNK2019
hembree@nrlmry.navy.mil wrote:
I am getting the following two link errors with Visual Studio C++
2003.
SEDRISDecoder.obj : error LNK2019: unresolved external symbol "public:
__thiscall Exception::Exception(class std::basic_string<char,struct
std::char_traits<char>,class std::allocator<char> >,int,class
std::basic_string<char,struct std::char_traits<char>,class
std::allocator<char> >,class std::basic_string<char,struct
std::char_traits<char>,class std::allocator<char> >,bool)" (??
0Exception@@QAE@V?$basic_string@DU?$char_traits@D@std@@V?
$allocator@D@2@@std@@H00_N@Z) referenced in function "public: unsigned
int __thiscall STF_DataList::LoadFile(char *)" (?
LoadFile@STF_DataList@@QAEIPAD@Z)
A class Exception has a constructor declared for it of the form
Exception(string, int, string, string, bool). However, your program
never provides the body (the implementation) for this constructor.
SEDRISDecoder.obj : error LNK2019: unresolved external symbol
"private: class std::basic_string<char,struct
std::char_traits<char>,class std::allocator<char> > __thiscall
Exception::message_with_location(void)const " (?
message_with_location@Exception@@ABE?AV?$basic_string@DU?
$char_traits@D@std@@V?$allocator@D@2@@std@@XZ) referenced in function
"public: class std::basic_string<char,struct
std::char_traits<char>,class std::allocator<char> > __thiscall
Exception::msg(void)const " (?msg@Exception@@QBE?AV?$basic_string@DU?
$char_traits@D@std@@V?$allocator@D@2@@std@@XZ)
Similarly, you have declared but not implemented a member function
string Exception::message_with_location() const;
--
With best wishes,
Igor Tandetnik
With sufficient thrust, pigs fly just fine. However, this is not
necessarily a good idea. It is hard to be sure where they are going to
land, and it could be dangerous sitting under them as they fly
overhead. -- RFC 1925