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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Im getting the following error ---

Status
Not open for further replies.

Sedai

Programmer
Mar 4, 2001
158
US
Im getting the following error
--------------------Configuration: FillUp - Win32 Debug--------------------
Linking...
main.obj : error LNK2001: unresolved external symbol &quot;public: bool __thiscall String::eek:perator<(class String const &)const &quot; (??MString@@QBE_NABV0@@Z)
main.obj : error LNK2001: unresolved external symbol &quot;public: bool __thiscall String::eek:perator>(class String const &)const &quot; (??OString@@QBE_NABV0@@Z)
main.obj : error LNK2001: unresolved external symbol &quot;public: bool __thiscall String::eek:perator!=(class String const &)const &quot; (??9String@@QBE_NABV0@@Z)
Debug/FillUp.exe : fatal error LNK1120: 3 unresolved externals
Error executing link.exe.

FillUp.exe - 4 error(s), 0 warning(s)

...no idea why it says the above are unresolved. they all have their declarations in the class interface (.h file)
and definitions..... HELP! :)
thank you. Avendeval


 
First of all, this is not a compiler error (so it has little to do with your .h files). It has to do with your .cpp files.

There can be a lot of causes:
1. The function declarations from .h do not match the ones from .cpp (maybe you have forgotten to put YourClassName:: before the function name). You may have also left some functions in .h that does not have a corespondent implementation in .cpp.
2. You haven't add the .cpp files to the project (check in the file view of Workspace Explorer)
3. You have't added the coresponding .lib files in the ProjectSettings->Link-> Object/Modules library or they are not in the Path the MsDev searches.

HTH, s-)

Blessed is he who in the name of justice and goodwill, sheperds the weak through the valley of darkness...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top