Click here to Skip to main content
15,895,462 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi All,

I followed the thing on msdn on how to setup 64bit compiling,
but when I hit build it says that everything is undefined :confused:,
but the 32 bit build goes fine.

I'm using xp 32bit right now I should be able to test this on 64bit OS soon,
but I still need to find out what is causing this.

Thanks in advance.
Posted
Updated 1-Feb-11 3:47am
v2
Comments
Sergey Alexandrovich Kryukov 1-Feb-11 12:48pm    
Due to lack of information on the problem all answers you got so far is a pointless guesswork; it's not their fault. You need to describe the build platform and build options, run-time platform and manifestation of the problem, in many cases - the exception dump and your code.
--SA
ryan20fun 1-Feb-11 14:01pm    
ok i followed the guide on msdn called How to Configure Visual C++ Projects to Target 64-Bit Platforms and when i build this one solution it says that eg HWND is undefined, i loaded another solution and did the same thing and it worked fine but what is wrong with my other solution

You need to provide more information. What guide did you follow, and what did you change?

When I create a 64bit project I simply open the configuration manager and add a new configuration x64 with settings copied from the Win32 configuration. Then I add a definition for WIN64 to the preprocessor page for convenience as portions of my code often needs to know what platform it is running on.

Make sure you still have WIN32 defined, and that your include paths are correct for the x64 platform in the Visual Studio settings under Tools>Options>Projects and Solutions>VC++ Directories and that you have the x64 compilers are installed as Marcus mentioned.
 
Share this answer
 
Comments
fjdiewornncalwe 1-Feb-11 10:37am    
This is a very stable approach to the conversion and one that I have used as well. +5 from me for a great suggestion.
I found this thread that might help you. http://social.msdn.microsoft.com/Forums/en/netfx64bit/thread/f21450f5-b36d-4ea2-9806-f169aff0388d[^]

The gist of the post found at this link is:


Please make sure that x64 bit compilers are installed on your 32-bit machine. Not installed by default.

Goto Add/Remove programs, select Visual Studio, Change, Add/Remove features and add x64 compilers from C++ node. After installing x64 compilers, you should see appropriate options under Platform and shoudl be able to build x64 projects on 32 bit machine.
 
Share this answer
 
Comments
ryan20fun 1-Feb-11 10:10am    
It Says that 64bit compilers are already installed
fjdiewornncalwe 1-Feb-11 10:36am    
Sorry that this didn't help. I was playing the "Is it plugged in?" help desk approach because more often than not, the solution is simpler than then user realizes. I'll take a deeper look into this for you to try and help you out, but I won't be able to do it until later in my day. Cheers.
ryan20fun 1-Feb-11 12:19pm    
ok but its night where i am now, and the time is 7:18
so i might only be able to respond in the morning

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900