VS2005中的.cc文件的编译按钮变灰 [英] Compile button grayed out for .cc file in VS2005

查看:108
本文介绍了VS2005中的.cc文件的编译按钮变灰的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个VS2005项目,其中包含一些用于C ++代码的.cc文件。它曾经工作过。不知何故,我今天发现这些文件的编译按钮显示为灰色。是什么导致的?谢谢!

I have a VS2005 project which include some .cc files for C++ codes. It used to work. Somehow, I found out today that the Compile button for those files is grayed out. What causes that? Thanks!

推荐答案

我怀疑"cc"是什么意思是Visual Studio通常认为是C ++源代码的文件扩展名。很可能存在用于导致"cc"的定制或选项。文件是C ++源文件。
这是完全正常的;没有问题,只是它只是一个额外的步骤,显然需要再次完成。

I doubt that "cc" is a file extension that Visual Studio typically considers to be C++ source code. It is quite likely that there is a customization or option that was used to cause the "cc" files to be C++ source files. That is totally normal; there is no problem except it is just an extra step that was done that apparently needs to be done again.

至少有两个选项。一个是可以更改每个文件的属性,以便属性将文件指定为C ++文件。显然,它是"项目类型"。属性如下:

There are at least two options. One is that the properties for each file can be changed such that the property designates the file as being a C++ file. Apparently it is the "Item Type" property as in the following:

另一种可能性是VS能够将文件扩展名与所选工具或类型或其他任何东西相关联。我忘记了怎么做。如果全部是"cc"。之前的文件类型被视为C ++文件,如果它们现在都没有,那么
这个其他选项很可能是使用的。如果您认为它正在使用中,请告诉我们,如果是,那么您需要以某种方式重新创建它。

The other possibility is that VS has the ability to associate a file extension with chosen tools or types or whatever. I forget how to do that. If all "cc" file types previously were treated as C++ files and if none of them are now then this other option is likely what was used. Let us know if you think that was in use and if so then you need to recreate it somehow.


这篇关于VS2005中的.cc文件的编译按钮变灰的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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