需要帮助来解决构建错误 [英] Need help to solve a build error

查看:95
本文介绍了需要帮助来解决构建错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

编译MFC应用程序时,出现链接错误"LINK:致命错误LNK1104:无法打开文件".\ Debug \ stdafx.obj"".我已经设置了项目属性->配置属性-> C/C ++-> Preprocessor-> Generate Preprocessed File为no.有人可以帮我解决这个问题吗?

I am getting a link error "LINK : fatal error LNK1104: cannot open file ''.\Debug\stdafx.obj''" while compiling my MFC application . I have set the Project Properties->Configuration Properties-> C/C++-> Preprocessor->Generate Preprocessed File to no.Can anyone please help me to solve this issue ?

推荐答案

我认为您可能需要将"Precompiled Header"设置为在编译选项中,不使用预编译头".然后,您应该进行一次完整的重建.
I think you probably need to set "Precompiled Header" to "Not Using Precompiled Headers", in your compile options. You should then do a complete rebuild.


多数情况下需要重建.即使错误指示文件为stdafx.obj,此错误也不一定与使用预编译头相关.
A rebuild is mostly what is needed. This error is not necessarily related to using precompiled headers or not, even though the error indicates the file is stdafx.obj.


有很多原因会导致LNK1104错误.请参阅MSDN文档以获取列表,并确保没有任何一种情况.

http://msdn.microsoft.com/en-us/library/ts7eyw4s(VS .71).aspx [ ^ ]
There are a number of reasons that can give LNK1104 error. See MSDN documentation for a list and make sure you don''t have any one of those cases.

http://msdn.microsoft.com/en-us/library/ts7eyw4s(VS.71).aspx[^]


这篇关于需要帮助来解决构建错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆