两个方面:
一是:是不是Clist不能用于console的程序
提示是error LNK2001: unresolved external symbol __endthreadex
      error LNK2001: unresolved external symbol __beginthreadex
二是:用于多文档中时,在一个.h文件里定义了CList<int,int> Mylist;.cpp文件里只是包含了文件头,但是编译说:fatal error C1010: unexpected end of file while looking for precompiled header
归结起来一句话:链表类应当怎么使用,是不是简单声明一下,如上所说,就可以使用了,例如Mylist.AddTail(2);等操作。

解决方案 »

  1.   

    1。当然不是。只是缺少支持文件而已。
    2。也不是CList的问题。
      

  2.   

    1,在工程设置里用multithread的lib:
    To use _beginthread or _beginthreadex, the application must link with one of the multithreaded C run-time libraries.2,缺少inlcude "stdafx.h";也可以在文件的属性设置里设置precompiled header.
      

  3.   

    1、clist是mfc的,所以如果在console中要使用,那么要使用 mfc,提示unersolved external symbol __endthreadex,使用/MDd(/MD)编译
    2、需要包含预编译头文件#include "stdafx.h"
      

  4.   

    各位大侠都说第二个是缺乏#include "stdafx.h",这个我加上了阿,而且有和没有都是一样.
    CList本来是可以容纳自定义的结构或类的,但是我现在连基本的类型都不知如何使用.
    不知谁能举个例子,贴一个完整的代码出来.