Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

unresovled external errors

Status
Not open for further replies.

bdaviesrules

Technical User
Dec 22, 2004
8
CA
when i try to run my program i get 6 unresolved external errors they are:

test.obj : error LNK2001: unresolved external symbol "public: __thiscall String::~String(void)" (??1String@@QAE@XZ)

test.obj : error LNK2001: unresolved external symbol "public: __thiscall String::String(void)" (??0String@@QAE@XZ)

test.obj : error LNK2001: unresolved external symbol "bool __cdecl operator==(class String const &,class String const &)" (??8@YA_NABVString@@0@Z)

test.obj : error LNK2001: unresolved external symbol "bool __cdecl operator!=(class String const &,class String const &)" (??9@YA_NABVString@@0@Z)

test.obj : error LNK2001: unresolved external symbol "public: __thiscall String::String(char const *)" (??0String@@QAE@PBD@Z)

test.obj : error LNK2001: unresolved external symbol "class istream & __cdecl operator>>(class istream &,class String &)" (??5@YAAAVistream@@AAV0@AAVString@@@Z)

maybe someone can help me out when i double click to see where the problem is nothing happens
 
This is what happens when you declare a function but do not define it. Make sure you provided an implimentation for all of these, and make sure the cpp file where they are implimented is included in your workspace.
 
all my files are included and everything

there seems to be somethign wrong with my String file

i have it included but when i try to decleare a string it doesnt recognize the keyword "String"

the weird thing is that everything worked on another computer but doesnt work on my home computer
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top