[Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

32 bit makefile into 64 bit makefile

Posted on 2008-11-19
6
Medium Priority
?
1,468 Views
Last Modified: 2012-05-05
Hi,

First off I am of the understanding that this question is like asking how long is a piece of string, but here goes.  How would I go about researching how to change a 32 bit program into a 64 bit program.  There is a Ispai Filter called Ionics Isapi Rewrite Engine.  it is great but it is only compatible on 32 bit machines.  The source is there, but how and where would I start to make this compatible with a 64 bit machine?

Thanks in advance,

Andrew
0
Comment
Question by:REA_ANDREW
  • 3
  • 3
6 Comments
 
LVL 86

Expert Comment

by:jkr
ID: 22999291
If that is for VC++, changing the linker flag

/MACHINE:X68

to

/MACHINE:X64

or

/MACHINE:IA64

respectively should do the job. Other difficulties may then arise, but that's what to start with.

That's what MS' docs are saying about that:

To copy Win32 project settings into a 64-bit project configuration
When the New Solution Platform dialog box is open while you set up your project to target a 64-bit platform, click the Copy settings from drop-down arrow, and then select Win32. The following project settings are automatically updated on the project level:

/MACHINE (Specify Target Platform) is set to /MACHINE:IA64 or /MACHINE:X64.

Register Output is turned OFF. For more information, see Linker Property Pages.

Target Environment is set to /env x64 or /env ia64. For more information, see MIDL Property Pages: General.

Validate Parameters is cleared and reset to the default value. For more information, see MIDL Property Pages: Advanced.

If Debug Information Format was set to /ZI in the Win32 project configuration, then it is set to /Zi in the 64-bit project configuration. For more information, see /Z7, /Zi, /ZI (Debug Information Format).

Values of WIN32 are replaced by WIN64 for /D (Preprocessor Definitions).

0
 
LVL 20

Author Comment

by:REA_ANDREW
ID: 23001774
Well it seems to have been built with C, I have four source files with the .c extension.  I am creating inside Visual Studio 2008 an empty Win32 Project and in the properties i have set the compiler to be C.  I have added all the header files, but it errors saying it cannot find one of them when it is there.  This header file also has an object library and VS said something about needing to build it?

Cheers for the help.

Andrew
0
 
LVL 86

Expert Comment

by:jkr
ID: 23018118
You might have to specify a path for the header files - or do they all reside in the same directory?
0
Technology Partners: 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!

 
LVL 20

Author Comment

by:REA_ANDREW
ID: 23021473
Ahh I see.  Well the one which it cannot find is in another directory with an object file.  Now i created the folder structure inside the solution.  Could you tell me how I could inform the compiler of their location or will it automatically pick that up.  I am thinking it won't as it does not build when i have that speicifc directory structure.

Cheers,

Andrew
0
 
LVL 86

Accepted Solution

by:
jkr earned 2000 total points
ID: 23031084
Go to your project properties, choose 'C/C++', then 'Preprocessor' and add that directory in 'Additional Include Directories'. That should do the job.
0
 
LVL 20

Author Closing Comment

by:REA_ANDREW
ID: 31518488
Thankyou.  
0

Featured Post

Prep for the ITIL® Foundation Certification Exam

December’s Course of the Month is now available! Enroll to learn ITIL® Foundation best practices for delivering IT services effectively and efficiently.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

What is C++ STL?: STL stands for Standard Template Library and is a part of standard C++ libraries. It contains many useful data structures (containers) and algorithms, which can spare you a lot of the time. Today we will look at the STL Vector. …
C++ Properties One feature missing from standard C++ that you will find in many other Object Oriented Programming languages is something called a Property (http://www.experts-exchange.com/Programming/Languages/CPP/A_3912-Object-Properties-in-C.ht…
The goal of the tutorial is to teach the user how to use functions in C++. The video will cover how to define functions, how to call functions and how to create functions prototypes. Microsoft Visual C++ 2010 Express will be used as a text editor an…
The viewer will learn how to clear a vector as well as how to detect empty vectors in C++.
Suggested Courses

868 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question