在stdafx.h 中定义的CList<>奇怪的报错
在单文档的分割窗口stdafx.h 中定义
typedef struct pointA
{ double x;
double y;
pointA* next;
}
extern CList<pointA,pointA&>m_pointlist;
就会有 外部变量CList<pointA,pointA&>m_pointlist未定义错误,这时去掉extern 在编译就好了,如果改动代码再编译就会有已经在obj文件中重复定义了CList<pointA,pointA&>m_pointlist,再加上extern就好了,这么一直循环报错,很郁闷,,,