将Release目录删掉,Rebuild all

解决方案 »

  1.   

    感谢您使用微软产品。原因: 
    ========= 
    The precompiled header file doens't exist. All MFC projects need to include quiet a few common header files. These header files are included in AfxStd.h. When you build the project first time, the AfxStd.cpp will be compiled and the precompiled header file (.pch) will be created. From now on, when you build or compile the project again, the precompiled header file (.pch) will be used to save compilation time. 
    解决方法: 
    ============ 
    1. Open the project in VC, go to the FileView and click on the "+" sign of Source File, right click on the StdAfx.cpp file and select "Compile StdAfx.cpp". This will compile StdAfx.cpp and create a precompiled header file for you. 
    2. Click on Build | Rebuild All to build your project, this command will delete all intermediate files, compile all source files and link them. 
    3. Modify the project setting so that precompiled header file option isdisabled. Go to Project | Settings | C/C++ tab | Precompiled Headers Category, check "Not using precompiled headers" option. 微软全球技术中心 VC技术支持
    本帖子仅供CSDN的用户作为参考信息使用。其内容不具备任何法律保障。您需要考虑到并承担使用此信息可能带来的风险。具体事项可参见使用条款(http://support.microsoft.com/directory/worldwide/zh-cn/community/terms_chs.asp)。
    为了为您创建更好的讨论环境,请参加我们的用户满意度调查(http://support.microsoft.com/directory/worldwide/zh-cn/community/survey.asp?key=(S,49854782))。