运行程序出现错误,大家帮忙看下是怎么回事!
我以用VS2008运行一程序时遇到如下错误,请大家帮我看一下为什么?我编译时没错误。而 start debugging时遇到这个错误,麻烦大家帮我看一下,还有必要把源程序发上来吗?
谢谢!!!
1>------ Build started: Project: josephus, Configuration: Debug Win32 ------
1>Linking...
1>josephus.obj : error LNK2019: unresolved external symbol "public: class CNode<int> * __thiscall CNode<int>::NextNode(void)const " (?NextNode@?$CNode@H@@QBEPAV1@XZ) referenced in function "void __cdecl Josephus(class CNode<int> *,int,int)" (?Josephus@@YAXPAV?$CNode@H@@HH@Z)
1>D:\My Documents\Visual Studio 2008\Projects\josephus\Debug\josephus.exe : fatal error LNK1120: 1 unresolved externals
1>Build log was saved at "file://d:\My Documents\Visual Studio 2008\Projects\josephus\josephus\Debug\BuildLog.htm"
1>josephus - 2 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========