rc.exe no longer found in VS 2015 Command Prompt
Spent some time looking at this on three machines with Win10 Creators Edition and VS2010, VS2013, VS2015 and VS2017 installed, where it works on two machines and fails on the third. All had VS2015 Update 3 and all should have been installed with the same options.
Running the following batch file
C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\amd64\vcvars64.bat
should setup the correct environment for VS2015 x64 environment. This should add
C:\Program Files (x86)\Windows Kits\10\bin\x64
to the PATH. This is where rc.exe should be. However on my failing machine rc.exe was missing from here, but it did exist in
C:\Program Files (x86)\Windows Kits\10\bin\10.0.15063.0\x64
I went back and feeling like this was a setup issue I re-ran the VS2015 Update 3 setup and told it to add
Windows and Web Development -> Universal Windows App Development Tools -> Tools (1.4.1) and Windows 10 SDK (10.0.14393)
this caused rc.exe and related files to appear in
C:\Program Files (x86)\Windows Kits\10\bin\x64
Running rc -v on
C:\Program Files (x86)\Windows Kits\10\bin\10.0.15063.0\x64\rc.exe
and
C:\Program Files (x86)\Windows Kits\10\bin\x64\rc.exe
gave the same version number 10.0.10011.16384
Not sure why rc.exe was missing from the original install, but re-running the install and adding the other SDK fixed it for me. It looks like
C:\Program Files (x86)\Windows Kits\10\bin\x64\rc.exe
should be the default rc.exe but it was not setup by a previous install.
Visual Studio can't build due to rc.exe
Found this on Google... I would assume that in your case you would copy rc.exe
and rcdll.dll
to visual studio 2012\vc\bin
or wherever you have it installed:
Part 2: FIX LINK : fatal error LNK1158: cannot run ‘rc.exe’
Add this to your PATH environment variables:
C:\Program Files (x86)\Windows Kits\8.0\bin\x86
Copy these files:
rc.exe
rcdll.dll
From
C:\Program Files (x86)\Windows Kits\8.0\bin\x86
To
C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\bin
Or I also found this:
Microsoft left a few things out of their MSVT package. Since no one knows whether they were left out by mistake or for license reasons, no one with MSVC is too interested in giving them out. A few Google searches turn up some tricky sources. Fortunately, Microsoft has finally wised up and solved this problem and many more.
http://msdn.microsoft.com/vstudio/express/support/faq/default.aspx#pricing
http://msdn.microsoft.com/vstudio/express/support/install/
A good amount of MSVT missing files are there but the missing SDK files aren't.
and this:
I had the same problem which I solved by doing this:
- Installing the Microsoft .Net Framework 2.0
- Adding the path of the .NET Framework files (for me "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727") to Global compiler settings > Programs > Additional Paths within Code::Blocks.
Now I can build and link resource files without errors.
Problem in Building openssl_1.0.2p in Visual Studio 2015
Problem is Solved. Windows and Web Development package was not installed in VS 2015. I installed it and now openssl is building fine.
If anyone wants to install these packages then goto control panel-> programs and features -> VS 2015
Right Click on VS 2015 -> change -> Modify -> select Windows and Web Development - > install
How to use rc.exe with MSBuild in a .NET project
I came up with this: An Exec
task calls a PowerShell script, that looks in the registry in HKLM\SOFTWARE\Wow6432Node\Microsoft\Microsoft SDKs\Windows
for the SDK with the largest version number, retrieves the installation path, and then calls from that path the first rc.exe
it encounters that is beneath a x86 directory.
A little bit ugly, but it works.
Related Topics
How to Alter Qt Widgets in Winapi Threads
Boost C++ Regex - How to Get Multiple Matches
Is Std::Array<T, S> Guaranteed to Be Pod If T Is Pod
How to Print the Value of Nullptr on Screen
Using an Union (Encapsulated in a Struct) to Bypass Conversions for Neon Data Types
How to Print Out the Size of a C++ Class at Compile-Time
Easiest Way to Flip a Boolean Value
How to Require an Exact Function Signature in the Detection Idiom
What's the Deal with Boost.Asio and File I/O
Do You Know Tool Building Tree of Include Files in Project\File
Confused by Squaring MACro Sqr in C
How to Change Directshow Filter Properties C++
How to Compare Two Standard Conversion Sequences Use the Rank of Contained Conversions
How to Pass a Boost Asio Tcp Socket to a Thread for Sending Heartbeat to Client or Server
How to Use Other C++ Compilers with Cuda on Windows
Cin >> Fails with Bigger Numbers But Works with Smaller Ones