Prev: Windows 7 Phone
Next: Locations of Delay loaded DLLs
From: JY on 17 Mar 2010 04:23 Hi, I need to build a 64-bit application (and cannot use a 32-bit one with WOW64 for certain reasons). What are the configuration options (in Project Settings) that I need to use when building such an application. Basically, how do I create a x64 configuration? TIA, Jy
From: Ulrich Eckhardt on 17 Mar 2010 05:04 JY wrote: > I need to build a 64-bit application (and cannot use a 32-bit one with > WOW64 for certain reasons). > What are the configuration options (in Project Settings) that I need to > use when building such an application. Basically, how do I create a x64 > configuration? What VC are you using? I'll assume VC8 for now, simply becaus that's what I have here... In the "Build" menu, there is an entry "Configuration Manager". There, you have the solution configuration and solution platform. In the platform dropdown, you simply select "new" and chose the according target, for which you must have an SDK installed. Now it gets a bit hairy: Copying the settings from an existing one or using empty settings is both not 100% what you want, though the difference between vanilla win32 and MS Windows CE might be greater that between win32 and win64, so YMMV. In any case, if it fails, you can also create a new project and import the existing sources. If that worked, you can lateron merge the two vcproj files by hand, they are just XML files. Good luck! Uli -- C++ FAQ: http://parashift.com/c++-faq-lite Sator Laser GmbH Geschäftsführer: Thorsten Föcking, Amtsgericht Hamburg HR B62 932
From: David Lowndes on 17 Mar 2010 05:20 >I need to build a 64-bit application (and cannot use a 32-bit one with WOW64 >for certain reasons). >What are the configuration options (in Project Settings) that I need to use >when building such an application. Basically, how do I create a x64 >configuration? You need to ensure you have the x64 C++ compiler installed as part of your VS installation. If you have that you usually create a new one based on the 32-bit one, and (if necessary) change settings such as the Linker Target Machine setting. Dave
From: JY on 18 Mar 2010 03:31 "David Lowndes" wrote: > >I need to build a 64-bit application (and cannot use a 32-bit one with WOW64 > >for certain reasons). > >What are the configuration options (in Project Settings) that I need to use > >when building such an application. Basically, how do I create a x64 > >configuration? > > You need to ensure you have the x64 C++ compiler installed as part of > your VS installation. If you have that you usually create a new one > based on the 32-bit one, and (if necessary) change settings such as > the Linker Target Machine setting. > > Dave > . Other than the Linker-> Target Machine setting, are there any other things that need to change? I see that 'WIN32' is defined in C/C++ -> Preprocessor ->Preprocessor definitions. Do I need to replace that with a 'WIN64' or the like? Thanks, Jy
From: David Lowndes on 18 Mar 2010 04:09
>I see that 'WIN32' is defined in C/C++ -> Preprocessor ->Preprocessor >definitions. >Do I need to replace that with a 'WIN64' or the like? No leave that as is. Checking a couple of my projects, I don't have any explicit WIN64 (or_WIN64) defined - which begs the question, how does the configuration know to invoke the 64-bit compiler - and I have to admit that I'm now not sure how it's done! Dave |