是这样的,我自己写了个类:
头文件为:myline.h (这个头文件里,我已经加了#include "stdAfx.h")
实现函数功能文件:myline.cpp我也在c++/setting里,设置成为use Precompile header ,因为,选not use 的话,错误出现得更多!说我重新编译了stdAfx.h里的很多标记类结束时,我有分号,这一点,所有我能想都想了,检测了一个上午了,就是依然出现标题那样的错误信息!!!
即使,我从新拷贝到另一个文件里去,也是这样的!!!!没办法,只有请大家帮忙了!!!

解决方案 »

  1.   

    在 myline.cpp中包含 stdafx.h里的所有头文件在试
      

  2.   

    我试了,都还不行啊。
    我注意到一个新的信息:
    当我点build 里的compile myline.h时,系统弹出这样的对话框:
    Cannot compile the file '...../myline.h':no compile tool is associated with the file extension.可能是说不能编译myline.h这个头文件,因为没有相应的编译工具相联系。大家说,这是什么原因?
      

  3.   

    在 myline.cpp文件开始加
    #include "stdafx.h"
    原因程序设置添加预编译头,可你没加。
      

  4.   

    对了, 没有加#include "stdafx.h"