Rust can't find Microsoft C++ build tools - c++

I'm a beginner who's just barely started learning Rust online, and I want to now use Rust on my computer. I installed the Rust installer, ran it, and it output this message:
Rust requires the Microsoft C++ build tools for Visual Studio 2013 or later,
but they don't seem to be installed.
I installed the Microsoft C++ 2017 build tools and restarted my computer, but it still outputs this error. From looking on Github, I understand that a lot of people have this issue, but the comments are full of technical jargon that I don't understand.
How can I set Rust up so it works? (Explained so that a beginner can understand)

I found the answer! Turns out I was installing 'Microsoft Visual C++ Redistributable for Visual Studio 2017' instead of 'Build Tools for Visual Studio 2017'. Funny how a simple error can cause a lot of headache!

Related

Where can I find if the Visual C++ components or the Microsoft Visual C++ Build Tools are installed in Visual Studio 2015?

I guess I may be getting into trouble for asking ironically obvious questions. I had found the place that shows where things are installed on Visual Studio 2015 in 2016, but now I can't remember where it is. I see instructions of how to check using the command line, although I saw a nifty place that showed me which components were installed somewhere in the toolbars on top in 2016. Funny.

Visual Studio 2017 wont show c++ template/extansion

I am trying to use Microsoft visual studio IDE to run my c++ code, however, when I go to create a project, I do not see the option for a c++ project. I tried reinstalling the program to see if I could somehow install the package/extension however it just won't seem to come up.
The only templates that appear are in c# or f#.
If someone could please lead me into the right direction so that I can fix this, it would be great. Thank you.
I don't see any mention of C++ in the release notes.
According to this post on MSDN, there is no C++ support in the Mac version of Visual Studio. It contains links to instructions for using Visual Studio Code, as well as the option to install a VM running Windows.
Apparently Visual Studio Code supports C++ projects, since it can execute external tools. The Microsoft Visual C++ build tools are free for Windows, but I don't think there is a version for the Mac, so some other external compiler is necessary.

How can I get MatLab to find the Visual C++ Compiler?

Preamble: I found a solution in the midst of writing this, and this problem was a PITA and had a convoluted solution. Thus, I feel compelled leave this here to help any poor soul who has this problem.
I'm new to MatLab, and I don't usually use Visual C++ either, so forgive me if this should be painfully obvious.
Short version: I have Visual C++ 2013 installed on my computer, but mex can't find it when I run mex -setup c++. I get the following:
>>mex -setup cxx
Error using mex
No supported compiler or SDK was found. You can install the freely available
MinGW-w64 C/C++ compiler; see Install MinGW-w64 Compiler. For more options, see
http://www.mathworks.com/support/compilers/R2015b/win64.html.
Here's the full situation.
OS: Windows 10 Home
Compiler: Visual Studio 2013 (v120, up-to-date)
I confirmed that I can compile and run a program using this toolset.
MatLab version: 2015b
I was originally running Visual Studio 2015, and mex found the compiler just fine. However, I soon found out that Simulink is not compatible with VS 2015, so I had to roll back to VS 2013, and this is when my problem started.
I've tried, among many others, the following sites to find a solution:
The MatLab mex documentation - No help, only shows basic mex usage.
The MatLab supported compiler list - Confirmed that VC++ 2013 is compatable.
Then I went down a rabbit hole.
A very protracted mathworks.com answer that suggested other links. This led me to...
Another mathworks.com answer which sounds like my problem, and suggests patching my setup. Turns out that I don't have SDK 7.1 installed. So, I went to install, and got this error:
Some components could not be installed. Some Windows SDK components require the RTM .NET Framework 4...
This Stack Overflow question asks about this issue, and I hit the exact same issue Danilo Gadêlha had in regards to the .NET Framework already being installed.
I tried the top answer, and after removing every single reference to .NET framework of any version I could find, including those under "Windows Features", I still couldn't install.
I tried the next option, and even in safe mode, RegEdit wouldn't let me change the values suggested by the next answer, so that was a bust.
Lastly, I tried MandM's solution, which finally solved my chain of problems.
I think this was the root of my problem: when I uninstalled Visual Studio 2015 and installed Visual Studio 2013, an installation or registry setting was left in an incorrect state, and mex was unable to find Visual Studio 2013 as a result.
The solution that worked for me:
Leave Visual Studio 2013 installed.
As MandM answered:
Uninstall the following:
"Microsoft Visual C++ 2010 x64 Redistributable"
"Microsoft Visual C++ 2010 x86 Redistributable"
Before installing the Windows 7.1 SDK, and the install package reinstalls those two during installation.
As Robert Važan points out in the comments:
If error message persists despite this workaround, just click OK and proceed with installation. The installation will succeed this time..
I did get this error, but the install worked fine.
Install the SDK 7.1 Patch, which fixes the issue highlighted on this mathworks.com answer.

Install Visual C++ Compiler on Windows without installing whole Visual Studio

NOTE This question can be duplicate of this or this question.
But please don't close it as duplicate without reading entire question.
I'm trying to install npm module browsersync on Windows, and by reading its documentation, I found that module itself uses node-gyp which requires C++ compiler on Windows to build native extension. And that leads to installation of Visual Studio (community edition will do). After going through above linked questions (which I noted as duplicates of my current question), I found that Windows SDK used to ship with C++ compiler but now Visual Studio is required to have C++ compiler.
So my concern is, do I really need to download and install that hefty 6 GB VS Community edition just to get that C++ compiler to build browsersync on Windows? or is there any way to do that via GCC for Windows?
P.S. Earlier I faced similar situation for installing node-oracledb.
Thanks.
#Niall covered where you can get the actual C++ compiler, but if you're looking for further information on the problem there's a walkthrough on how to get node-gyp up and running on Windows on their github issues page with the standalone compiler.

Visual Studio 2008 C++ language support?

I've been developing a couple of C# tools recently, but primarily working with a lot of legacy Visual Basic 6.0 code (I know, I know...). For the C# development, I've been using Visual Studio 2008 Professional edition that I downloaded using our MSDN subscription here at work.
But, as a change of pace over the weekend, I was going to check out a complex C++ project that we have. However, when I went to open it through Visual Studio, it wouldn't open it saying that the .vcproj file type wasn't supported. I figured it was a compatibility issue and that the project file type had changed between versions of Visual Studio, but when I tried creating a new C++ application inside Visual Studio 2008 Pro, the option just wasn't there.
I've been searching online by way of Bing, Google, MSDN, and MSDN subscriber downloads to no avail. Nothing I've found so far explains why this is happening.
I have found the express edition of MS Visual C++ 2008, but I could not locate the "full version" of this part of Visual Studio.
Any help would be much appreciated.
It sounds like you haven't got it installed.
Go to Add/Remove Programs (or Programs and Features, or whatever Windows 7 calls it) and modify your installation. You'll get a list of checkboxes so you can install C#, VB.NET, Crystal Reports etc... and Visual C++. Check that checkbox and wait the hour or so for the installer to do its stuff.