Continue to Site

Welcome to MCAD Central

Join our MCAD Central community forums, the largest resource for MCAD (Mechanical Computer-Aided Design) professionals, including files, forums, jobs, articles, calendar, and more.

Compilation on 64bit machine

miky

New member
Hi


I am compiling Pro/TOOLKIT code on 64bit windows machine.


I get following error.


fatal error LNK1112: module machine type 'X86' conflicts with target machine type 'AMD64'


NMAKE : fatal error U1077: 'link' : return code '0x458'.


Stop.





Iuse makefile for compilationand not the setup of Visual Studio.


Any guess for solution?





Thanks


Miky
 
I am compiling pt_examples code given by PTC.


I found it works ok when i used 32bit machine with makefile which is for 32bit


but gives linker error when run on 64bit machine with makefile for 64bit.


Regards


Miky
 
I just want to be sure, if you use 64 bit environment for compilation. I use for example Microsoft platform SDK 64 bit environment
 
I use


Microsoft Development Environment 2003 Version 7.1.3088


Microsoft .NET Framework 1.1 Version 1.1.4322


Is it 32bit version?


How do I know if it is 32 or 64bit sdk?


Regards


Miky
 
Hi _TL_


Can you please let me knowcontaint of Microsoft platform SDK 64 bit environment ?


I mean, do i have to use VS 2005 with any patches?





Thanks


Miky
 
I am putting my question in other words.


I am trying to compile make_example on 64bit (win64)machine.


But I installed VS 2003 version 7 on my machine.


I get linker error


fatal error LNK1112: module machine type 'X86' conflicts with target machine type 'AMD64'


I guess that it is using compiler which is installed by VS 2003 version 7


This might be relating to 32bit C libraries.


Will it solve the problem if I install new version VS 2005 Version 8 or 9


Does it have 64bit compiler?


Regards


Miky
 
You need to use the MS Windows Server 2003 SDK. Sounds like you are pulling in 32 bit system libraries which conflict with your code compiled for 64 bit and the PTC 64 bit libraries.
 
<DIV>In addition to Visual Studio (2003 or 2005), you need:
<DIV =O style="mso-margin-left-alt: 178; mso-char-wrap: 1; mso-kinsoku-overflow: 1" v:shape="_x0000_s1026">Microsoft Windows Server 2003 SP1 SDK supporting Windows XP 64 </DIV></DIV>
<DIV>Can be found here:</DIV>
<DIV> [url]http://www.microsoft.com/downloads/details.aspx?familyid=EBA 0128F-A770-45F1-86F3-7AB010B398A3&displaylang=en [/url]</DIV>
<DIV></DIV>
 
Hello,


I found the similar issue when i use the 64bit machine,can you plz help me to resolve the issue.I would like to use the Pro/Engineer WF2.0 M181 date code version.I am going to compile the source code using VC++6.0 with Platform SDK windows server 2003 SPI.I am getting the link error with protk_dll.lib.


Can you plz correct me where it is getting the problem.I used the pro/toolkit of 64bit compatable one.


The following is the error and i given the paths as follows in the settings.My machine is AMD64 type.
Here is the error message in the VC++ 6.0 IDE:<?:namespace prefix = o ns = "urn:schemas-microsoft-com:eek:ffice:eek:ffice" />

C:\PRO_ENGINEER_64BIT_M181\PROTOOLKIT\X86E_WIN64\OBJ\protk_d ll.lib : fatal error LNK1113: invalid machine type
Here are the Path Settings for include files:
C:\PRO_ENGINEER_64BIT_M181\PROTOOLKIT\INCLUDES
C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO\VC98\INCLUDE
C:\PROGRAM FILES\MICROSOFT PLATFORM SDK\INCLUDE

Here are the Path Settings for library files:
C:\PRO_ENGINEER_64BIT_M181\PROTOOLKIT\X86E_WIN64\OBJ
C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO\VC98\LIB
C:\PROGRAM FILES\MICROSOFT PLATFORM SDK\LIB
With regards,
Kishore V
 
Hi,

I did the same settings mentioned above on VisualStudio 6.0. However i am not using Windows Server here.

But still hte same error invalid machine type is appearing.

Can you please let me know, how can we solve this.
 
Hi Sharath,


It is been a long time,I do not remember exactly do i overcome the problem.But after that i moved to WF4.0,there i could successfully able to compile with 64bit machine.Let me know what is the WF version are you using now?Which VS(Visual Studio) version using for complie the soruce code.


With regards,


Kishore V
 
Follow these steps:


1. Download Windows Server 2003 Platform SDK R2.


2.Open a 64 bit development environment from the Platform SDK.Try Windows XP Release. You can find shortcuts from the Start menu Windows Server 2003 Platform SDK.


3. Open Visual Studio (6.0 or 2003) using this environment. devenv.exe /USEENV


4.Create your project and mimic the settings in the make_examples makefile provided by PTC.
 
I try compile make_install example on 64bit machine.
Got the same bla-bla about different target (x86) and real
type of machine (x64).
In normal situation I changed type of machine in Project
configuration, but I can do it only when I have any "cpp"
file.
Makefile project haven't this option.
What I should do?
 

Sponsor

Articles From 3DCAD World

Back
Top