我写了一个list类;然后在main()中调用这个类的方法,结果报错了呢?
在main().cpp的头文件中已经添加了include了;
#include <iostream>
#include "CList.h"
F:\小程序\listMain\listMain.cpp(3) : warning C4091: 'extern ' : ignored on left of 'class CList' when no variable is declared
Linking...
listMain.obj : error LNK2001: unresolved external symbol "public: bool __thiscall CList::ListInsert(class CList &,int,int)" (?ListInsert@CList@@QAE_NAAV1@HH@Z)
Debug/listMain.exe : fatal error LNK1120: 1 unresolved externals
Error executing link.exe.
listMain.exe - 2 error(s), 1 warning(s)
该怎么解决呢;