简体   繁体   English

如何在 Visual Studio C++ 中添加现有的?

[英]How to add exsisting in Visual Studio C++?

I have just download source code on github, and it has so many files.我刚刚在github上下载了源代码,它有很多文件。 I want to import them to VC++ for build it.我想将它们导入到 VC++ 中进行构建。 But it has below bug.但它有以下错误。

在此处输入图片说明

How can i edit it ?我怎样才能编辑它? Thanks.谢谢。

  1. Open your project, then from Solution Explorer, select properties like in the below image.打开您的项目,然后从解决方案资源管理器中,选择如下图所示的属性。 在此处输入图片说明

  2. From the pop up window select C/C++ from the right pane, then General like in the image below.从弹出窗口的右侧窗格中选择 C/C++,然后选择 General,如下图所示。 在此处输入图片说明

  3. Select edit.选择编辑。

  4. Finally, select the folder where your header files, you want to include, are.最后,选择要包含的头文件所在的文件夹。 在此处输入图片说明

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

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