简体   繁体   中英

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). 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). 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."

we created a simple C++ Console application and ran it. Works fine no build error there.

Need to recompile the files for building .arx files to work in AutoCad 2018.

Initial Project Load :-> 在此处输入图片说明

In the initial project load itself for Nimcad and planact we are getting build tools error. But not for engr.

Build on engr Project getting errors this might be the changes in ObjectARX 2018 I don't know. If you have a solution for this error please let us know:->

在此处输入图片说明

Buid on Nimcad Project :->

在此处输入图片说明

Build on Planact Project :->

在此处输入图片说明

For both Nimcad and planact all we get is build tools error.

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. As you are migrating a project, make sure to adjust all libraries (.lib files) to version 22. Did you download the ObjectARX 2018 SDK ?

Update

This seems a problem with your Visual Studio installation. If you create a new C++ project, VS should also ask you to install the missing parts.

In Visual Studio 2015 (...) the C++ compiler, libraries, and project templates have been moved into an optional feature. (...) 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 )

You may need to re-run VS setup and select the C++ related parts (as already mentioned on the question comments).

Finally, check your VisualStudioVersion using the VS2015 Command Prompt:

在此处输入图片说明

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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