Setting up MS Visual C++ Express to target for 64-bit (x64)

Discussion of chess software programming and technical issues.

Moderators: hgm, Rebel, chrisw

sluijten
Posts: 44
Joined: Wed Apr 13, 2011 12:43 pm

Setting up MS Visual C++ Express to target for 64-bit (x64)

Post by sluijten »

Haven't been able to set up MSVC++ Express to target for x64.
I installed all updates, including .Net Framework 4, and searched internet for more info on the error I keep getting:

The "ConfigurationGeneral" rule is missing from the project.

Win32 works OK.
Is there a way to download a C++ compiler that targets x64, and then use it from within the MSVC++ Express environment?
User avatar
Desperado
Posts: 879
Joined: Mon Dec 15, 2008 11:45 am

Re: Setting up MS Visual C++ Express to target for 64-bit (x

Post by Desperado »

sluijten wrote:Haven't been able to set up MSVC++ Express to target for x64.
I installed all updates, including .Net Framework 4, and searched internet for more info on the error I keep getting:

The "ConfigurationGeneral" rule is missing from the project.

Win32 works OK.
Is there a way to download a C++ compiler that targets x64, and then use it from within the MSVC++ Express environment?
Hello Stef,

maybe you ll find your solution here...
http://jenshuebel.wordpress.com/2009/02 ... t-targets/

When i did my vs2008 x64 setup (it s a while back) someone provided
a little batch file (look to the comments by Xia Wei...) which updates the registry after you followed the steps like sdk update and so on... works flawless

Michael
User avatar
velmarin
Posts: 1600
Joined: Mon Feb 21, 2011 9:48 am

Re: Setting up MS Visual C++ Express to target for 64-bit (x

Post by velmarin »

Surely the above answer is good,
but I recommend you try to open any existing project that has the settings made ​​for 64bit, if you examine everything will be easier,
maybe you have it all installed and some small detail escapes.
To me, I step.
to luck.
TonyJH
Posts: 183
Joined: Tue Jun 20, 2006 4:41 am
Location: USA

Re: Setting up MS Visual C++ Express to target for 64-bit (x

Post by TonyJH »

These steps seemed to work for me with MSVC++ 2010 Express. (I think 2008 and 2005 versions work differently.)

1. Install "Visual C++ 2010 Express"
2. Install "Microsoft Windows SDK 7.1"
3. In your VC++ Project, go to "Properties" > "Configuration Properties" > "General" and change "Platform Toolset" from the default "v100" to "Windows7.1SDK".
4. In the configuration manager for your project, you should be able to add a new platform "x64". Details here: http://msdn.microsoft.com/en-us/library/9yb4317s.aspx
sluijten
Posts: 44
Joined: Wed Apr 13, 2011 12:43 pm

Re: Setting up MS Visual C++ Express to target for 64-bit (x

Post by sluijten »

My problem is that the property pages for x64 are empty and I cannot add any references. Even if I check 'copy settings from Win32' when adding the x64 solution platform, the x64 property pages remain empty.
Also tried uninstalling & installing MS VC++ express, Windows 7.1 SDK
sluijten
Posts: 44
Joined: Wed Apr 13, 2011 12:43 pm

Re: Setting up MS Visual C++ Express to target for 64-bit (x

Post by sluijten »

also posted in MSDN VC++ forum
Intel® Core™ i3-330M Processor

Image
Sven
Posts: 4052
Joined: Thu May 15, 2008 9:57 pm
Location: Berlin, Germany
Full name: Sven Schüle

Re: Setting up MS Visual C++ Express to target for 64-bit (x

Post by Sven »

Hi Stef,

look again at the post of Michael Hoffmann above, he gave a link with more details about which registry keys would have to be fixed and what else would have to be done (for VS2008, adapting for VS2010 is hopefully possible).

I have also repeated the same steps as you did, and have reached the same state (empty property page so far), so you can be pretty sure it is not a local problem of your installation.

Sven
BubbaTough
Posts: 1154
Joined: Fri Jun 23, 2006 5:18 am

Re: Setting up MS Visual C++ Express to target for 64-bit (x

Post by BubbaTough »

I was never able to get express to compile for 64 bit...it only started working for me when I started using the full version.

-Sam
User avatar
Desperado
Posts: 879
Joined: Mon Dec 15, 2008 11:45 am

Re: Setting up MS Visual C++ Express to target for 64-bit (x

Post by Desperado »

The steps i did (vs2008):

TIP:
===================

if you think you installation of the mentioned packages is not broken,
just start with step 3.


1: preperation
================

- download batch files of "xia-wei".
- download ms vstudio (and service packs if available)
- windows sdk

2: installation
===================

- install ms vs
- install service packs (if available)
- install windows sdk

3: setup
===================

a: batchfile reading

- do _NOT_ install or run batch files, but have a look what files it is updating

b: replace files (manual,only 4 files i think)

folder: C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC


* AMD64.VCPlatform,
* Itanium.VCPlatform,
* VCProjectAMD64Platform.dll
* VCProjectIA64Platform.dll

- save these files somehow and replace them with the files of "Xia Wei"

- DONE!


For me a clean installation of the above mentioned packages and _only_ replacing
the four files mentioned is doing the job. If this doesnt help you, you may run
the patch of Xia Wei, which updates additionally the registry automatic.

(i had the same difficulties until i figured out what was really needed, i even
did not need the registry updates... But as i mentioned, because it is a while
back i hope i did not forget sth. important. I bet it is that easy also for
vs 2010, just replace the four files mentioned)

good luck

Michael
User avatar
Desperado
Posts: 879
Joined: Mon Dec 15, 2008 11:45 am

Re: Setting up MS Visual C++ Express to target for 64-bit (x

Post by Desperado »

Desperado wrote:The steps i did (vs2008):

TIP:
===================

if you think you installation of the mentioned packages is not broken,
just start with step 3.


1: preperation
================

- download batch files of "xia-wei".
- download ms vstudio (and service packs if available)
- windows sdk

2: installation
===================

- install ms vs
- install service packs (if available)
- install windows sdk

3: setup
===================

a: batchfile reading

- do _NOT_ install or run batch files, but have a look what files it is updating

b: replace files (manual,only 4 files i think)

folder: C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC


* AMD64.VCPlatform,
* Itanium.VCPlatform,
* VCProjectAMD64Platform.dll
* VCProjectIA64Platform.dll

- save these files somehow and replace them with the files of "Xia Wei"

- DONE!


For me a clean installation of the above mentioned packages and _only_ replacing
the four files mentioned is doing the job. If this doesnt help you, you may run
the patch of Xia Wei, which updates additionally the registry automatic.

(i had the same difficulties until i figured out what was really needed, i even
did not need the registry updates... But as i mentioned, because it is a while
back i hope i did not forget sth. important. I bet it is that easy also for
vs 2010, just replace the four files mentioned)

good luck

Michael
just a note, Xia Wei provides several patches, just because you should pick the one for your needs.

Michael