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

This is a discussion about fatal error LNK1112: module machine type 'X86' conflicts with target machine typ in the Everything New Technology category; Hi World, I am getting fatal error LNK1112: module machine type 'X86' conflicts with target machine type 'AMD64' when trying to link some libraries compiled on AMD64 architecture. The OS is Win Server 2003.

Everything New Technology 1823 This topic was started by ,


data/avatar/default/avatar15.webp

2 Posts
Location -
Joined 2004-11-18
Hi World,
I am getting "fatal error LNK1112: module machine type 'X86' conflicts with target machine type 'AMD64'" when trying to link some libraries compiled on AMD64 architecture. The OS is Win Server 2003.
 
I am compiling and linking from the command line and I have made sure that I am using the cl.exe and link.exe of the platform SDK (PSDK). In the PATH, LIB and INCLUDE environment variables I have the PSDK folders first and later Visual Studio .Net 2003. I am also using WIN64 definition (/D"WIN64") when producing .obj from .c.
 
I puzzled because i am unable to locate the place in which it is getting module machine type as 'X86'.
 
Any suggestions would be of great help.
TIA.
~viral
 

Participate in our website and join the conversation

You already have an account on our website? To log in, use the link provided below.
Login
Create a new user account. Registration is free and takes only a few seconds.
Register
This subject has been archived. New comments and votes cannot be submitted.
Nov 25
Created
Nov 25
Last Response
0
Likes
1 minute
Read Time
User
Users