Reputation: 1526
I formatted my computer and I installed VS2012 release candidate first, then VS2010 Ultimate, and lastly VS2012 Professional from DreamSpark. Also, after installing VS2012, I uninstalled VS2010 and VS2012 RC
I can open solutions and compile them perfectly, but when I tried to use #include
s from the C/C++ standard library an error pop ups saying cannot find source file stdlib.h
I went to the VS2012 installation directory and in the include folder of VC, I only have 2 .h files (vsgcapture
and srv
), and nothing else.
I checked out and there was a directory called Microsoft Visual Studio 10.0
which is from VS2010, and the .h and .lib files of C/C++ were there, so I copied/pasted everything to VS2012 and tried to compile, but some strange errors came up.
So I uninstalled everything VS-related from the control panel, I deleted all the directories from Program Files and I installed VS2012 Professional again and the VC directories are empty again. I tried Repairing it from the setup but still the same problem.
Anyone knows how to fix this?
Upvotes: 0
Views: 5043
Reputation: 698
For others with the same issue and looking for a solution other than copying files over from another machine, try the solution posted by Jeff_322089BE-DFC2-11DF-B454-B541DFD72085 here.
Upvotes: 1
Reputation: 1526
I solved this by installing VS2012 on another computer, copying everything inside the VC directory where all the .lib
s and .h
s are, and pasting them on my installation.
Now it works perfectly well.
I asked in another site and I found out that this might happen because errors in the Visual Studio installation process. If you don't have another computer to do this, you can install it on a virtual machine instead and copying them from there.
Upvotes: 3