• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 302
  • Last Modified:

How to convert a 32bit VC++ 7.1 project to 64bit (AMD64 and IA64)

I'm trying to convert a Sqlite3 project from 32bit to a 64bit project, but not having any luck.
The Sqlite3 project creates a static lib file.

When I add the /MACHINE:AMD64 OR /MACHINE:IA64 options to the project settings, I get the following linker error:
Creating library...
.\Debug\alter.obj : fatal error LNK1112: module machine type 'X86' conflicts with target machine type 'IA64'

I'm using the *.vcproj found in the following link:
http://cvs.sourceforge.net/viewcvs.py/int64/sqlite3x/sqlite3/

What options settings am I missing?
0
Axter
Asked:
Axter
1 Solution
 
WelkinMazeCommented:
0
 
mrblueCommented:
What so special about "alter.c" ? Is it possible that it or something it includes overrides "/MACHINE:" settings ?
0
 
AxterAuthor Commented:
>>What so special about "alter.c" ? Is it possible that it or something it includes overrides "/MACHINE:" settings ?

It just happens to be the first *.c file compiled, so it's probably the first obj file linked.
0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
jkrCommented:
Have you installed MS' processor packs? They'll allow to set that as the build target, so you can choose them like between 'Win32 Release' and 'Win32 Debug'.
0
 
AxterAuthor Commented:
>>Have you installed MS' processor packs?

No.
You have any good links for this?
0
 
jkrCommented:
They come with the PSDK - see http://www.microsoft.com/downloads/details.aspx?FamilyId=A55B6B43-E24F-4EA3-A93E-40C0EC4F68E5&displaylang=en ("Windows® Server 2003 SP1 Platform SDK Web Install", you'll find an .iso or a full install link at the bottom of the page)
0
 
jkrCommented:
Oh, the term 'processor packs' is probably misleading, that's what they called them withVC6 - so don't just look for that one when installing.
0
 
AxterAuthor Commented:
I'll try it out, and post an update.

Thanks
0
 
AxterAuthor Commented:
Thanks
0
 
jkrCommented:
You're most welcome.

BTW, did that install OK? Some people were sceptical yet not specific, and I din't encounter any problems...
0
 
AxterAuthor Commented:
>>BTW, did that install OK? Some people were sceptical yet not specific, and I din't encounter any problems...

There are some problems, in that it's hard to have a build machine that does both 32bit and 64bit, because of the environmental variables pointing to the assoicated library.

I haven't had time to work it out, so that's why I closed the question.

If I get more details when I'm done, I'll post it here to add to the PAQ.
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now