简体   繁体   English

在VS 2015中打开VS 2012 C ++项目会产生Build错误

[英]Opening VS 2012 C++ Project in VS 2015 gives Build error

We have a C++ Project built in VS 2012 (To generate .arx files to work with AutoCad 2014). 我们在VS 2012中内置了一个C ++项目(生成.arx文件以与AutoCad 2014一起使用)。 Now we need to recompile it in VS 2015. we have not installed VS 2012. I opened the project in VS 2015. Properties -> General -> Platform toolset is set to Visual Studio 2015 (v140). 现在我们需要在VS 2015中重新编译它。我们尚未安装VS2012。我在VS 2015中打开了该项目。属性->常规->平台工具集设置为Visual Studio 2015(v140)。 Still we are getting "The build tools for v140 (Platform Toolset = 'v140') cannot be found. To build using the v140 build tools, please install v140 build tools." 仍然得到“找不到v140的构建工具(Platform Toolset ='v140')。要使用v140的构建工具进行构建,请安装v140的构建工具。”

we created a simple C++ Console application and ran it. 我们创建了一个简单的C ++ Console应用程序并运行了它。 Works fine no build error there. 工作正常,没有构建错误。

Need to recompile the files for building .arx files to work in AutoCad 2018. 需要重新编译文件以构建.arx文件才能在AutoCad 2018中工作。

Initial Project Load :-> 初始项目负荷:-> 在此处输入图片说明

In the initial project load itself for Nimcad and planact we are getting build tools error. 在Nimcad和planact的初始项目加载中,我们遇到了构建工具错误。 But not for engr. 但不是为了工程师。

Build on engr Project getting errors this might be the changes in ObjectARX 2018 I don't know. 在engr Project的基础上获得错误,这可能是我不知道的ObjectARX 2018中的更改。 If you have a solution for this error please let us know:-> 如果您有解决此错误的方法,请告诉我们:->

在此处输入图片说明

Buid on Nimcad Project :-> 在Nimcad项目上建立:->

在此处输入图片说明

Build on Planact Project :-> 在Planact项目上构建:->

在此处输入图片说明

For both Nimcad and planact all we get is build tools error. 对于Nimcad和planact,我们得到的只是构建工具错误。

Property Pages : 属性页:

在此处输入图片说明

在此处输入图片说明 Any help please. 请帮忙。

To build AutoCAD 2018 ObjectARX app you'll need Visual Studio 2015 Update 3 configured (by default) with VC14.0. 要构建AutoCAD 2018 ObjectARX应用,您需要将Visual Studio 2015 Update 3配置为(默认情况下)使用VC14.0。 As you are migrating a project, make sure to adjust all libraries (.lib files) to version 22. Did you download the ObjectARX 2018 SDK ? 在迁移项目时,请确保将所有库(.lib文件)调整为版本22。是否下载了ObjectARX 2018 SDK

Update 更新

This seems a problem with your Visual Studio installation. 这似乎与您的Visual Studio安装有关。 If you create a new C++ project, VS should also ask you to install the missing parts. 如果创建一个新的C ++项目,VS还应要求您安装缺少的部分。

In Visual Studio 2015 (...) the C++ compiler, libraries, and project templates have been moved into an optional feature. 在Visual Studio 2015(...)中,C ++编译器,库和项目模板已移至可选功能。 (...) To install the various components needed for desktop and mobile development in C++, you must choose “Custom” and manually select those items ( Visual C++ Team Blog ) (...)要在C ++中安装桌面和移动开发所需的各种组件,必须选择“自定义”并手动选择这些项目( Visual C ++ Team Blog

You may need to re-run VS setup and select the C++ related parts (as already mentioned on the question comments). 您可能需要重新运行VS安装程序并选择与C ++相关的部分(如问题注释中已经提到的)。

Finally, check your VisualStudioVersion using the VS2015 Command Prompt: 最后,使用VS2015命令提示符检查VisualStudioVersion:

在此处输入图片说明

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

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