小编Ros*_*row的帖子

错误LNK2019:未解析的外部符号"public:void __thiscall

我的任务是编写代码以使用递归跟踪已排序的链表.我们得到了类和文件的组成,但需要填写函数.我收到了四个错误,我认为这些错误是在公共函数中调用私有函数引起的.我的错误是:

1>SortedList.obj : error LNK2019: unresolved external symbol "public: void __thiscall SortedList::recursiveMakeEmpty(class NodeType * &)" (?recursiveMakeEmpty@SortedList@@QAEXAAPAVNodeType@@@Z) referenced in function "public: void __thiscall SortedList::makeEmpty(void)" (?makeEmpty@SortedList@@QAEXXZ)
1>SortedList.obj : error LNK2019: unresolved external symbol "public: bool __thiscall SortedList::recursiveInsert(class NodeType * &,int)" (?recursiveInsert@SortedList@@QAE_NAAPAVNodeType@@H@Z) referenced in function "public: bool __thiscall SortedList::insert(int)" (?insert@SortedList@@QAE_NH@Z)
1>SortedList.obj : error LNK2019: unresolved external symbol "public: bool __thiscall SortedList::recursiveDelete(class NodeType * &,int)" (?recursiveDelete@SortedList@@QAE_NAAPAVNodeType@@H@Z) referenced in function "public: bool __thiscall SortedList::deleteItem(int)" (?deleteItem@SortedList@@QAE_NH@Z)
1>SortedList.obj : error LNK2019: unresolved external symbol "public: void __thiscall …
Run Code Online (Sandbox Code Playgroud)

c++ visual-studio-2010 lnk2019

2
推荐指数
1
解决办法
1万
查看次数

标签 统计

c++ ×1

lnk2019 ×1

visual-studio-2010 ×1