Link to home
Start Free TrialLog in
Avatar of Axter
AxterFlag for United States of America

asked on

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?
Avatar of WelkinMaze
WelkinMaze

What so special about "alter.c" ? Is it possible that it or something it includes overrides "/MACHINE:" settings ?
Avatar of Axter

ASKER

>>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.
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'.
Avatar of Axter

ASKER

>>Have you installed MS' processor packs?

No.
You have any good links for this?
ASKER CERTIFIED SOLUTION
Avatar of jkr
jkr
Flag of Germany image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
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.
Avatar of Axter

ASKER

I'll try it out, and post an update.

Thanks
Avatar of Axter

ASKER

Thanks
You're most welcome.

BTW, did that install OK? Some people were sceptical yet not specific, and I din't encounter any problems...
Avatar of Axter

ASKER

>>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.