How do you create a 64 bit app with Dev Studio 2008?
I have read some things on how to set up Dev Studio 2008 to make a 64 bit app, but I can't make it work. I have created a basic win32 console app. The basic template it gives you when you add MFC support.
I then go to the configuration manager, select the platform which is set to win32. I select new and pick the x64 while copying everything from the win32 project settings.
Then I do a build and I get the linker error:
Error 1 fatal error LNK1104: cannot open file 'kernel32.lib'
I am sure there is something simple I am missing to fix this.
Re: How do you create a 64 bit app with Dev Studio 2008?
Quote:
Originally Posted by
DeepT
I have read some things on how to set up Dev Studio 2008 to make a 64 bit app, but I can't make it work.
Choose "x64" as the active solution platform in the Configuration Manager is all you should need to do. Otherwise, you have a faulty installation of Visual Studio, or you've messed up your library include path in some way.
Regards,
Paul McKenzie
Re: How do you create a 64 bit app with Dev Studio 2008?
Quote:
Originally Posted by
DeepT
while copying everything from the win32 project settings.
Why do you need to copy anything? The directories for all the output files (obj and exe) are already set up for you when you choose x64. The only settings possibly are maybe preprocessor and custom build steps, but that's it as far as I know.
Otherwise, I have had no problems compiling for 64-bit if I leave everything else alone and don't try to copy anything.
Regards,
Paul McKenzie
Re: How do you create a 64 bit app with Dev Studio 2008?
I just created a new solution, made a default win32 application (I didn't see a way to create it as 64 bit). It was some web site which was talking about how to make a 64 bit target that said to copy it. It is also the default action when you make the 64 bit version. I did it again without copying it and it gave me the same link error.
I can build 32 bit apps just fine, it is the 64 bit thing that isn't working for me. From your first post, you are suggesting my install of dev studio 2008 is corrupted somehow? How should I fix it? Uninstall and re-install or is there some repair option I can use?
Re: How do you create a 64 bit app with Dev Studio 2008?
The "Add or Remove Programs" applet should have an entry for VS 2008, and that should allow you to add/remove/uninstall features or the whole install. I believe there is an option to install the x64 tools and libraries, but it's been a while since I did an install.
Oh, and you did install this on an x64 machine (running an x64 version of Windows)?
Viggy
Re: How do you create a 64 bit app with Dev Studio 2008?
I am running Vista 64 bit. The repair didn't help. I am now uninstalling everything and will do a full re-install. Hopefully this will fix this issue.
Re: How do you create a 64 bit app with Dev Studio 2008?
I completely uninstalled Dev Studio 2008 and all its components. I even removed it's SDKs, MSDN documentation, everything.
I re-installed it all, went back to that project and it gets the same exact error. I deleted the project and then re-made it following the same exact steps I and I still got the same error.
I have a co-worker who has Dev Studio 2008 installed from this same media. It works fine for him.
Does anyone have an idea what is going on?
Re: How do you create a 64 bit app with Dev Studio 2008?
During the install, under "Languages and Tools", under "Visual C++", are you sure you have "X64 Compilers and Tools" checked?
Viggy
Re: How do you create a 64 bit app with Dev Studio 2008?
Yes. I re-installed everything. I even downloaded the SDK again. I did notice that the SDK is put in program files, not program files (x86). Dev Studio is a 32 bit app, maybe it can't see them. I am going to try and copy them over to that directory.
At this point I think I may need a new machine with a fresh install of windows if I can't figure this out soon.