473,386 Members | 2,129 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

What does this mean? Any help appreciated!

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_strin g@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@D U?$char_traits@D@std@@V?$allocator@D@2@@std@@V?$al locator@V?$basic_string@DU?$char_traits@D@std@@V?$ allocator@D@2@@std@@@2@@std@@V?$basic_string@DU?$c har_traits@D@std@@V?$allocator@D@2@@3@@Z)

//tables.h
public:
Table(string db_file);
vector<stringrealm_list();
vector<stringsnapshot(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<stringv4_snapshot(string realm);
vector<stringv3_snapshot(string realm);

//tables.cpp
....
#include "tables.h"
....
vector<stringTable::snapshot(string realm)
{
vector<stringsnapshot;
if (4 == version_number)
{
snapshot = this->v4_snapshot(realm);
}
else
{
snapshot = this->v3_snapshot(realm);
}

return snapshot;

}

Oct 24 '06 #1
5 1563
nt

Oct 24 '06 #2

"pkirk25" <pk****@kirks.netwrote in message
news:11**********************@h48g2000cwc.googlegr oups.com...
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_strin g@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@D U?$char_traits@D@std@@V?$allocator@D@2@@std@@V?$al locator@V?$basic_string@DU?$char_traits@D@std@@V?$ allocator@D@2@@std@@@2@@std@@V?$basic_string@DU?$c har_traits@D@std@@V?$allocator@D@2@@3@@Z)

//tables.h
public:
Table(string db_file);
vector<stringrealm_list();
vector<stringsnapshot(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<stringv4_snapshot(string realm);
vector<stringv3_snapshot(string realm);
Here you promise to the compiler that there exists
somewhere the definition of a function named
'Table::v3_snapshot()'. Did you provide one?
>
//tables.cpp
...
#include "tables.h"
...
vector<stringTable::snapshot(string realm)
This signature states that this function will return
an object of type 'vector<string>'
{
vector<stringsnapshot;
if (4 == version_number)
{
snapshot = this->v4_snapshot(realm);
'snapshot()' is a function. Why are you trying to assign
something to it?
}
else
{
snapshot = this->v3_snapshot(realm);
}

return snapshot;
Why are you trying to return a type other than what
the function is defined to return?
>
}
-Mike
Oct 24 '06 #3
On 24 Oct 2006 06:42:52 -0700, "pkirk25" <pk****@kirks.netwrote:
>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.
It probably means that you need to add tables.cpp to your project or
make file.

Good luck,
Roland Pibinger
Oct 24 '06 #4
Mike Wahler wrote:
"pkirk25" <pk****@kirks.netwrote in message
>...
vector<stringTable::snapshot(string realm)

This signature states that this function will return
an object of type 'vector<string>'
>{
vector<stringsnapshot;
if (4 == version_number)
{
snapshot = this->v4_snapshot(realm);

'snapshot()' is a function. Why are you trying to assign
something to it?

'snapshot' is also a local variable, hiding the name of the function
in which it's declared. Look at the first line inside the body of
this function.

int foo()
{
int foo = 42;
return foo;
}

int main()
{
return foo();
}

This practice is not recommended, but it's perfectly legal.
>
>}
else
{
snapshot = this->v3_snapshot(realm);
}

return snapshot;

Why are you trying to return a type other than what
the function is defined to return?
Huh?
>>
}
V
--
Please remove capital 'A's when replying by e-mail
I do not respond to top-posted replies, please don't ask
Oct 24 '06 #5
My mistake was to have the declarations done but to have the
implementations under under names. Kicked myself a bit when I saw that
I had forgotten to rename the fuctions after renaming the declarations.

Didn't help that the error message is a mouthful and that Intellisense
seemed to see things that were no longer there but untimately my fault.

Oct 24 '06 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Hugh McLaughlin | last post by:
Hello everyone and thanks for your help in advance. I am working on an application to track visitors to my website. However, I am confused as to what data to capture for the session, specifically...
125
by: Sarah Tanembaum | last post by:
Beside its an opensource and supported by community, what's the fundamental differences between PostgreSQL and those high-price commercial database (and some are bloated such as Oracle) from...
121
by: typingcat | last post by:
First of all, I'm an Asian and I need to input Japanese, Korean and so on. I've tried many PHP IDEs today, but almost non of them supported Unicode (UTF-8) file. I've found that the only Unicode...
8
by: Midnight Java Junkie | last post by:
Dear Colleagues: I feel that the dumbest questions are those that are never asked. I have been given the opportunity to get into .NET. Our organization has a subscription with Microsoft that...
3
by: Dave | last post by:
Greetings All, I have never seen this error before, and after an extensive search of Groups, I cannot find a satisfactory answer to my basic question. What exactly does "is not a member of...
4
by: DoomedLung | last post by:
What does this operator ">-" stand for or mean, as in... this.ver = navigator.appVersion; this.agent = navigator.userAgent; this.dom = document.getElementById ? 1 : 0; this.opera5 =...
8
by: slacker | last post by:
By clicking a link on a website I set a USERINFO cookie and then I redirect to a program which ultimately executes an XSL file which dynamically builds an input form. The input form, while having...
3
by: rizzkhan | last post by:
Hello everybody, I am a bit confused about this operator -> could anybody explain this for me. The reason I am confused is that every document I read to get an explaination about it, explain it in...
5
by: Mercy | last post by:
I guess my C++ is pretty darn rusty. I was just looking over sample C++ code for practice... and I'm kind of confused about this code fragment: int sector2; int i = 3; memset(sector2,...
14
by: Mohamed Mansour | last post by:
Hey there, this will be somewhat a long post, but any response is appreciated! I have done many PInvoke in the past from C++ to C#, but I did PInvoke within C# not C++/CLI. Can someone explain...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.