fatal error C1010: unexpected end of file while looking for precompiled header directive
Error executing cl.exe.这个错误一般是什么问题啊,好象我的程序没有错误。我经验不足,请指教。
还有怎样在编译时选择/MT的方式?

解决方案 »

  1.   

    project setting->c++->category->precompiled headers
    选择not using precompiled headers
      

  2.   

    fatal error C1010: unexpected end of file while looking for precompiled header directive
    这个问题已经解决了
    但不知道是为什么,望赐教。
    还有怎么选/MT方式,来使用多线程的C RUNTIMES函数库???
    还有一个CStdioFile 的成员:CStdioFile fFindt
    有 fFindt.open( "*.*", CFile::modeWrite | CFile::modeCreate | CFile::typeText );
    怎么老是出错error C2039: 'open' : is not a member of 'CStdioFile'
      

  3.   


    请用fopen试一试
    fFindt.fopen( "*.*", CFile::modeWrite | CFile::modeCreate | CFile::typeText );
      

  4.   

    open 这个函数没有声明,或许应该是Open吧。要注意大小写,VC是区分大小写的。
      

  5.   

    果然定义是Open
    virtual BOOL Open(LPCTSTR lpszFileName, UINT nOpenFlags,
    CFileException* pError = NULL);
    谢谢大家了