visual studio 2017 c ++与远程linux问题 [英] visual studio 2017 c++ with remote linux question

查看:177
本文介绍了visual studio 2017 c ++与远程linux问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

所以我安装了VS 2017 RC。我有一个带有make文件的大型linux项目。我在本地和Linux服务器上都有他们。我试图找出一种方法来创建一个项目并运行/调试它们。问题是,在告诉编译器
后,所有包含文件都位于项目属性中,我似乎无法弄清楚为什么所有类型都不起作用。它说变量xxx不是类型名称。甚至像"阶级"这样的东西也不起作用。有什么建议吗?

So i installed VS 2017 RC. I have a large linux projects with make files. I have them both locally and on linux server i ssh into. Im trying to figure out a way to create a project out of them and run/debug them. problem is, after telling the compiler where all the include files are located inside project properties, i cant seem to figure out why all the types arent working. It says variable xxx is not a type name. even things like 'class' arent working. Any suggestions?

推荐答案

嗨gbux,

感谢您在这里发帖。

>>我试图找出一种方法来创建一个项目并运行/调试它们。问题是,在告诉编译器所有包含文件都位于项目属性中之后,我似乎无法弄清楚为什么所有类型都不是
工作。它说变量xxx不是类型名称。甚至像"阶级"这样的东西也不起作用。有什么建议吗?

您创建了哪个项目?您在安装vs 2017时是否选择了所需的c ++功能?

Which project did you create? Have you choose the needed c++ features when you install your vs 2017?

如果您有一个使用makefile从命令行构建的项目,则Visual Studio开发环境将无法识别您的项目。要使用Visual Studio打开和构建项目,首先通过选择
MakeFile项目模板来创建一个空项目。然后,您可以使用此项目从Visual Studio开发环境构建项目。

If you have a project that you build from the command line with a makefile, then the Visual Studio development environment will not recognize your project. To open and build your project using Visual Studio, first create an empty project by selecting the MakeFile project template. You can then use this project to build your project from the Visual Studio development environment.

这是一个关于如何创建Makefile项目以及如何使用vs为您构建Linux项目的文档。你可以参考。

Here is a document about how to create a Makefile Project and how to build Linux project with vs for you. You could refer to.

https://msdn.microsoft。 com / zh-CN / library / txcwa2xx.aspx

https://blogs.msdn.microsoft.com/vcblog/2015/04/29/debug-c-code-on-linux-from -visual-studio /

希望这可以为您提供帮助。

Hope this could be help of you.

最好的问候,

Sera Yu


这篇关于visual studio 2017 c ++与远程linux问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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