一个使用TEMPLATE的简单C++例子,可以编译通过,却有链接错误如下:
Linking...
Cpp1.obj : error LNK2001: unresolved external symbol "public: __thiscall stack<int>::node::node(int const &)" (??0node@?$stack@H@@QAE@ABH@Z)
Debug/test.exe : fatal error LNK1120: 1 unresolved externals
Error executing link.exe.
哪位大侠帮忙看一下,谢谢。
Linking...
Cpp1.obj : error LNK2001: unresolved external symbol "public: __thiscall stack<int>::node::node(int const &)" (??0node@?$stack@H@@QAE@ABH@Z)
Debug/test.exe : fatal error LNK1120: 1 unresolved externals
Error executing link.exe.
哪位大侠帮忙看一下,谢谢。