P
pkirk25
It looks like the Visuakl Studio Intellisense can see the various
functions but its compiler cannot. I am well out of my depth with this
error message.
report.obj : error LNK2019: unresolved external symbol "private: class
std::vector<class std::basic_string<char,struct
std::char_traits<char>,class std::allocator<char> >,class
std::allocator<class std::basic_string<char,struct
std::char_traits<char>,class std::allocator<char> > > > __thiscall
Table::v3_snapshot(class std::basic_string<char,struct
std::char_traits<char>,class std::allocator<char> >)"
(?v3_snapshot@Table@@AAE?AV?$vector@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@V?$allocator@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@2@@std@@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@3@@Z)
referenced in function "public: class std::vector<class
std::basic_string<char,struct std::char_traits<char>,class
std::allocator<char> >,class std::allocator<class
std::basic_string<char,struct std::char_traits<char>,class
std::allocator<char> > > > __thiscall Table::snapshot(class
std::basic_string<char,struct std::char_traits<char>,class
std::allocator<char> >)"
(?snapshot@Table@@QAE?AV?$vector@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@V?$allocator@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@2@@std@@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@3@@Z)
//tables.h
public:
Table(string db_file);
vector<string> realm_list();
vector<string> snapshot(string realm);
int get_item_median(string item_code);
int get_item_snap(string item_code);
private:
bool isLoaded;
int version_number;
string get_realm_name(string); // return realm name if one is found
in string
vector<string> v4_snapshot(string realm);
vector<string> v3_snapshot(string realm);
//tables.cpp
....
#include "tables.h"
....
vector<string> Table::snapshot(string realm)
{
vector<string> snapshot;
if (4 == version_number)
{
snapshot = this->v4_snapshot(realm);
}
else
{
snapshot = this->v3_snapshot(realm);
}
return snapshot;
}
functions but its compiler cannot. I am well out of my depth with this
error message.
report.obj : error LNK2019: unresolved external symbol "private: class
std::vector<class std::basic_string<char,struct
std::char_traits<char>,class std::allocator<char> >,class
std::allocator<class std::basic_string<char,struct
std::char_traits<char>,class std::allocator<char> > > > __thiscall
Table::v3_snapshot(class std::basic_string<char,struct
std::char_traits<char>,class std::allocator<char> >)"
(?v3_snapshot@Table@@AAE?AV?$vector@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@V?$allocator@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@2@@std@@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@3@@Z)
referenced in function "public: class std::vector<class
std::basic_string<char,struct std::char_traits<char>,class
std::allocator<char> >,class std::allocator<class
std::basic_string<char,struct std::char_traits<char>,class
std::allocator<char> > > > __thiscall Table::snapshot(class
std::basic_string<char,struct std::char_traits<char>,class
std::allocator<char> >)"
(?snapshot@Table@@QAE?AV?$vector@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@V?$allocator@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@2@@std@@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@3@@Z)
//tables.h
public:
Table(string db_file);
vector<string> realm_list();
vector<string> snapshot(string realm);
int get_item_median(string item_code);
int get_item_snap(string item_code);
private:
bool isLoaded;
int version_number;
string get_realm_name(string); // return realm name if one is found
in string
vector<string> v4_snapshot(string realm);
vector<string> v3_snapshot(string realm);
//tables.cpp
....
#include "tables.h"
....
vector<string> Table::snapshot(string realm)
{
vector<string> snapshot;
if (4 == version_number)
{
snapshot = this->v4_snapshot(realm);
}
else
{
snapshot = this->v3_snapshot(realm);
}
return snapshot;
}