473,662 Members | 2,390 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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<cla ss std::basic_stri ng<char,struct
std::char_trait s<char>,class std::allocator< char,class
std::allocator< class std::basic_stri ng<char,struct
std::char_trait s<char>,class std::allocator< char __thiscall
Table::v3_snaps hot(class std::basic_stri ng<char,struct
std::char_trait s<char>,class std::allocator< char)"
(?v3_snapshot@T able@@AAE?AV?$v ector@V?$basic_ string@DU?$char _traits@D@std@@ V?$allocator@D@ 2@@std@@V?$allo cator@V?$basic_ string@DU?$char _traits@D@std@@ V?$allocator@D@ 2@@std@@@2@@std @@V?$basic_stri ng@DU?$char_tra its@D@std@@V?$a llocator@D@2@@3 @@Z)
referenced in function "public: class std::vector<cla ss
std::basic_stri ng<char,struct std::char_trait s<char>,class
std::allocator< char,class std::allocator< class
std::basic_stri ng<char,struct std::char_trait s<char>,class
std::allocator< char __thiscall Table::snapshot (class
std::basic_stri ng<char,struct std::char_trait s<char>,class
std::allocator< char)"
(?snapshot@Tabl e@@QAE?AV?$vect or@V?$basic_str ing@DU?$char_tr aits@D@std@@V?$ allocator@D@2@@ std@@V?$allocat or@V?$basic_str ing@DU?$char_tr aits@D@std@@V?$ allocator@D@2@@ std@@@2@@std@@V ?$basic_string@ DU?$char_traits @D@std@@V?$allo cator@D@2@@3@@Z )

//tables.h
public:
Table(string db_file);
vector<stringre alm_list();
vector<stringsn apshot(string realm);
int get_item_median (string item_code);
int get_item_snap(s tring 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(strin g realm);
vector<stringv3 _snapshot(strin g realm);

//tables.cpp
....
#include "tables.h"
....
vector<stringTa ble::snapshot(s tring realm)
{
vector<stringsn apshot;
if (4 == version_number)
{
snapshot = this->v4_snapshot(re alm);
}
else
{
snapshot = this->v3_snapshot(re alm);
}

return snapshot;

}

Oct 24 '06 #1
5 1577
nt

Oct 24 '06 #2

"pkirk25" <pk****@kirks.n etwrote in message
news:11******** **************@ h48g2000cwc.goo glegroups.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<cla ss std::basic_stri ng<char,struct
std::char_trait s<char>,class std::allocator< char,class
std::allocator< class std::basic_stri ng<char,struct
std::char_trait s<char>,class std::allocator< char __thiscall
Table::v3_snaps hot(class std::basic_stri ng<char,struct
std::char_trait s<char>,class std::allocator< char)"
(?v3_snapshot@T able@@AAE?AV?$v ector@V?$basic_ string@DU?$char _traits@D@std@@ V?$allocator@D@ 2@@std@@V?$allo cator@V?$basic_ string@DU?$char _traits@D@std@@ V?$allocator@D@ 2@@std@@@2@@std @@V?$basic_stri ng@DU?$char_tra its@D@std@@V?$a llocator@D@2@@3 @@Z)
referenced in function "public: class std::vector<cla ss
std::basic_stri ng<char,struct std::char_trait s<char>,class
std::allocator< char,class std::allocator< class
std::basic_stri ng<char,struct std::char_trait s<char>,class
std::allocator< char __thiscall Table::snapshot (class
std::basic_stri ng<char,struct std::char_trait s<char>,class
std::allocator< char)"
(?snapshot@Tabl e@@QAE?AV?$vect or@V?$basic_str ing@DU?$char_tr aits@D@std@@V?$ allocator@D@2@@ std@@V?$allocat or@V?$basic_str ing@DU?$char_tr aits@D@std@@V?$ allocator@D@2@@ std@@@2@@std@@V ?$basic_string@ DU?$char_traits @D@std@@V?$allo cator@D@2@@3@@Z )

//tables.h
public:
Table(string db_file);
vector<stringre alm_list();
vector<stringsn apshot(string realm);
int get_item_median (string item_code);
int get_item_snap(s tring 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(strin g realm);
vector<stringv3 _snapshot(strin g realm);
Here you promise to the compiler that there exists
somewhere the definition of a function named
'Table::v3_snap shot()'. Did you provide one?
>
//tables.cpp
...
#include "tables.h"
...
vector<stringTa ble::snapshot(s tring realm)
This signature states that this function will return
an object of type 'vector<string> '
{
vector<stringsn apshot;
if (4 == version_number)
{
snapshot = this->v4_snapshot(re alm);
'snapshot()' is a function. Why are you trying to assign
something to it?
}
else
{
snapshot = this->v3_snapshot(re alm);
}

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.n etwrote:
>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.n etwrote in message
>...
vector<stringT able::snapshot( string realm)

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

'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(re alm);
}

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
2569
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 the Remote_Host, UserHostAddress, and UserHostname. I am unclear as to whether the Remote_Host and UserHostAddress are the same thing and what exactly the UserHostName signifies. I have checked many resources, but can't seem to get clear on...
125
14705
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 software giant such as Microsoft SQL Server, Oracle, and Sybase? Is PostgreSQL reliable enough to be used for high-end commercial application? Thanks
121
10025
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 support IDEs are DreamWeaver 8 and Zend PHP Studio. DreamWeaver provides full support for Unicode. However, DreamWeaver is a web editor rather than a PHP IDE. It only supports basic IntelliSense (or code completion) and doesn't have anything...
8
3144
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 basically entitled to us to just about every .Net development tool you can imagine. I cant even begin to mention them. To begin with, my background is not that of a programmer, but a systems engineer and the closest I have come to "programming"...
3
5956
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 'String'" mean specifically? I am developing in VB.NET and I was using the Collection datatype to store property and object values. However, another group where I work decided to use C#, and they want to use my base library objects. From
4
2147
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 = this.agent.indexOf("Opera 5") >- 1;
8
1662
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 some non dynamic hidden INPUT tags, has one hidden INPUT tag that is dynamic. In the XSL file I attempt to bring this dynamic hidden INPUT tag in via the following statements: <xsl:template match="/"> <xsl:value-of...
3
2713
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 different way which has created confusion in my mind. So, are there many uses of this operator or is it used only for one purpose. e.g, what would the following statement mean: app->displayAnyError(err); or e.g the following: ...
5
1805
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, 128+i, 512); memset(sector2+256, 255-i, 256);
14
3776
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 more why C++/CLI would be better to PInvoke than doing the PInvoke in C#? Because, usually in C# as you already know we use DLLImport and extern
0
8343
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8856
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8762
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8545
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
7365
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5653
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4179
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
2762
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1747
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.