简体   繁体   English

C++ 项目在编译时挂起

[英]C++ Project hangs at Compiling

My boss has a C++ project that just began hanging today when he hits either the "Build Solution", "Rebuild Solution", or "Compile" buttons.我的老板有一个 C++ 项目,当他点击“构建解决方案”、“重建解决方案”或“编译”按钮时,该项目今天刚刚开始挂起。 The Build window says compiling and hangs there. Build window 说编译并挂在那里。 He has tried reverting back to the project state from a week ago using Subversion but no dice.他已经尝试从一周前使用 Subversion 恢复到 state 项目,但没有骰子。

We also have a solution that uses the same source code, but builds in VS2005, and that builds fine.我们还有一个解决方案,它使用相同的源代码,但在 VS2005 中构建,并且构建良好。 Any ideas?有任何想法吗? We'd really love to not have to re-install VS but if it comes down to it we might have to.我们真的很想不必重新安装 VS,但如果归根结底,我们可能不得不这样做。

EDIT Also, it is a C++ project, but the files in the project are all C.编辑另外,它是一个 C++ 项目,但项目中的文件都是 C。

Make sure that when you're reverting you are reverting ALL files (ie the solution file, make, etc.), not just the source code.确保在还原时还原所有文件(即解决方案文件、make 等),而不仅仅是源代码。

Just in case.以防万一。 If you have any add-ons installed in MS VS 2008 then disable all of them to make sure that they do not cause that.如果您在 MS VS 2008 中安装了任何附加组件,请禁用所有附加组件以确保它们不会导致该问题。

Do you have VS2008 SP1 installed?你有安装VS2008 SP1吗? http://msdn.microsoft.com/en-us/vstudio/aa718359 http://msdn.microsoft.com/en-us/vstudio/aa718359

I had the similar issue.我有类似的问题。 When VS2008 is loaded, it tries to update IntelliSense.加载 VS2008 时,它会尝试更新 IntelliSense。 If you ask VS2008 to build solution before IntelliSense update is completed, the build process (or clean solution process) may hang at any point.如果您在 IntelliSense 更新完成之前要求 VS2008 构建解决方案,则构建过程(或清洁解决方案过程)可能随时挂起。 In my case, the solution is to wait "Updating IntelliSense...(1701)" (it shows on the status bar) to be completed.就我而言,解决方案是等待“更新 IntelliSense...(1701)”(它显示在状态栏上)完成。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM