visual studio 2010 : "ConfigurationGeneral" rule is missing from the project - c++

I want to compile a 64-bit application using Visual C++ 2010 professional, but I keep getting this error, and I have no idea what to do :
1>------ Build started: Project: Test, Configuration: Debug x64 ------
1>Error: The "ConfigurationGeneral" rule is missing from the project.
I've searched this problem on google, but all ideas didn't solve my problem.
Thank you!
I have windows 8.1 Pro 64bits if this information is needed, and I use visual studio 2010 c++ professional.
Edit : tried repairing visual studio professional, but it still doesn't work :\

The VS2010 x64 compilers are missing...
http://support.microsoft.com/kb/2519277/en-us
You need this update:
http://www.microsoft.com/en-us/download/details.aspx?id=4422

Did you change the language of the Visual Studio GUI recently?
I switched the language of my installation from German to English which resulted in almost the same error message. (except I'm trying to build for Win32) Switching back to German resolved this issue.
It seems that most people experience this when building for x64. So if you didn't change your language give this a try.

I have an english version of Windows 2008 R2 and the international setting (Tools/Options/Environment/International Settings) of VS2010 was "Same as Microsoft Windows". After changing it to english and afterwarts to german it solved the problem immediately.
Thanks a lot.

Related

(Visual Studio 2015) Unable to create Win32 C++ app

I have visual studio 2015 community Update 2.
I've installed Visual C++ for windows and also for mobile platforms as you can see in this picture:
The problem is that when I try to create a C++ Win32 app and click on these two templates
nothing happens and I get stuck at that screen.
As Cheers and hth Alf said, I had to reinstall the whole Visual Studio 2015 to get it working again.

Building c++ project for Win XP in MSVC 2012

I have a console application that I need to use on Windows XP. Also i'm using MSVC 2012 as an IDE. Problem, that when i run it on Win XP (SP3) i receive error message that this application is not a valid win32 application.
UPD:
After talking care about suggestions in the comments to this question, i've updated my question.
What does use my application:
Urlmon.h/urlmon.lib
boost::program_options
c++11's regex
What i've already tryed:
Build test application like "Hello, World!". It works on target Win XP
Install Update 3 for MSVC 2012 & update 3 redist. to target machine
Build app with static linking (/MT)
Dependency walker shows 3 messages:
Missing WER.dll
Missing IESHIMS.dll
Unresolved C function "WNetRestoreConnectionA"
As far as i see nothing of listed in dependency walker should affect my app, but it still fail to load with error "not a valid win32 application".
Does anyone have ideas why>
The v110_xp toolset automatically specifies the SUBSYSTEM's MRV ("5.1" (WindowsXP)) but not the SUBSYSTEM
That was the problem. I've set SUBSYSTEM to "/SUBSYSTEM:CONSOLE" in project settings & problem with target Win XP dissapeared. Thanks everyone for comments.
As I know, MSVC 2012 toolset do not support windows XP. But you can use MSVC 2010 toolset in IDE 2012. Or use toolset v110_xp forom Visual Studio 2012 Update 1(I didn't try it).
This link may help
http://blogs.msdn.com/b/vcblog/archive/2012/10/08/windows-xp-targeting-with-c-in-visual-studio-2012.aspx?Redirected=true

cannot create c++ project in Visual Studio 2010

I suppose since I installed Visual Studio 2012, I cannot create C++ project in Visual Studio 2010. But, I am not sure new installation of VS 2012 is related to this problem.
The problem I am really struggling is that neither hint message nor notification are shown when I try to create a new C++ project.
I have tried several ways from google even include stackoverflow, but failed.
Is there anyone who knows any solutions or has any workarounds?
1) I wouldn't be at all surprised if installing MSVS 2012 is the culprit. VMs are Good :)
2) You should definitely look at the Windows event log (if you haven't already)
3) You can also run MSVS 2010 with logging as follows:
http://msdn.microsoft.com/en-us/library/ms241272%28VS.80%29.aspx
Devenv.exe /log "C:\My Files\MyLog.txt"
i faced the same problem in "microsoft visual studio express 2012 for window desktop" and now it's perfectly working after having gone through repair option.
If you have another version (or express edition) of visual studio installed on the same PC that is previously used to create console applications, that might be the issue. I had the same issue and I had Visual C++ 2008 on the same computer and I could either use the visual C++ for console applications or uninstall it completely. Hope this helps!

How to compile VC++ 2010 projects using Visual Studio 2012 and Windows SDK 7.1

I have a lot of projects done with VS2010 in C++. Now we have switched to VS2012 but we want to continue building the projects with the VS2010 runtime (we need to support Windows XP).
To our understanding this could be possible using Windows SDK 7.1 as the VC compiler is there so we installed it. VS2012 recognized the SDK and now we have a Platform Toolset named Windows7.1SDK.
The problem comes when building the projects as some projects are returning a:
error MSB6006: "CL.exe" exited with code -1073741515.
Also, projects depending on the MFCs are failing too. MFCs aren't available with Windows SDK? Does this mean that we need to buy VS2010 licenses to install them on machines with VS2012 just to build using the VS2010 compiler?
Thanks in advance.
Looks like it's not possible at all, mainly because nothing but VS2010 is deploying the MFC libraries and we have a lot of projects using them.
We'll have to buy licenses for VS2010 and VS2012 :S
I would try raise the msbuild verbosity level (it is in Tools->Options->Project and Solution-> MSBuild) and check out the command of CL.exe with full parameters. Then check if it is different from what you saw on VS2010.
In fall Microsoft will release an update to support windows xp in visual studio 2012, you can read more in this MSDN blog:
http://blogs.msdn.com/b/vcblog/archive/2012/06/15/10320645.aspx

how to set up visual studio 2005 for cuda programming

I have tried to setup my visual studio environment for programming with cuda,but stil I m getting the errors as cudaMemcpy is unable to resolve..
If any of you plz help me in setting up the environment.I am coding in c++.
Thanks in advance.
Check out this answer for instructions for Visual Studio 2005 and 2008 (for VS2010, see this answer).
In particular, see the bit about adding the CUDA runtime library to your link dependencies.