Re: VC++6 LNK1112 Error



Yep. Sounds like a valid error message. You are trying to link a module compiled for the
Itanium into a piece of code destined for an x86. Either use a different library, or
correctly select your target to be an Itanium.

What is your intended target platform? Itanium or x86? You simply cannot mix-and-match
code; you will have to choose one or the other. Note also that IX86 is not a valid name
of a platform; look at the /machine: linker option. The two interesting options are IA64
and X86, not IX86. The error message appears to be erroneous. But no matter what machine
type you choose as target, you must choose the correct body of code to link into it.

Note also that you can't really compile IA64 code unless you have a compiler that targets
to the Itanium.

You might also check out the default directories settings to make sure your X86 project is
not searching an IA64 library files directory first.
joe

On Wed, 1 Jun 2005 20:40:01 -0700, "Chris" <Chris@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote:

>i m trying to compile n build a program using VC++ 6. I keep getting a error :
>
>*fatal error LNK1112: module machine type "IA64" conflicts with target
>machine type "IX86"*
>
>i think its hav something to do wif my library or my project setting. I had
>try change the "/machine:" option to either IA64 or IX86, no luck. Any1 hav
>any idea?
>
>I m using DirectX 9.0 SDK (April 2005), n Microsoft Platform SDK for Windows
>Server 2003 SP1.
>
>any help will be really appreciated !!!

Joseph M. Newcomer [MVP]
email: newcomer@xxxxxxxxxxxx
Web: http://www.flounder.com
MVP Tips: http://www.flounder.com/mvp_tips.htm
.



Relevant Pages

  • Re: VC++6 LNK1112 Error
    ... the IA64 version of lib files, while my program is for x86 platform. ... > Itanium into a piece of code destined for an x86. ... > correctly select your target to be an Itanium. ...
    (microsoft.public.vc.mfc)
  • Problem with obj files in sysgen phase
    ... seems to be missing. ... BUILD: Compile and Link for x86. ...
    (microsoft.public.windowsce.platbuilder)
  • Re: Compact SQL - Any CPU Build
    ... but compile our application to x86 and x64 version respectively. ... We welcome your comments and suggestions about how we can improve the support we provide to you. ...
    (microsoft.public.dotnet.general)
  • Re: Intel to chip away at Itanium prices <- or ... I want my cheap
    ... Itanium II. ... 1261 for the x86 vs 824 ... SPARC doesn't run x86 code and no seems to care. ... SW portfolio as well but in the server space SPARC is not ...
    (comp.os.vms)
  • Re: Question to Kerry Main
    ... "The Itanium is great, it's got a future, and it's selling pretty well ... to be more accurate some in the trade press are reporting that Intel certainly *wants* people to think that Itanic has a future: if you read the above carefully all of it refers to Intel's message rather than expressing the opinion of the author. ... So Itanic has finally managed to acquire a sufficient percentage of the former PA-RISC market, the remnants of the Alpha market, and peripheral contributions from Windows, Linux, and the seven dwarfs who adopted Itanic along with HP to match the nearly 1/3 share of the market that PA-RISC used to enjoy all by itself. ... There's no hope that Itanic will even begin reducing the devastating performance lead that POWER currently enjoys for about the next two years until Tukwila arrives with CSI - and the tepid projection that Tukwila will only double Montecito's performance suggests that on a per-core basis POWER's lead on a per-core basis may instead continue to grow - so, just as has been the case since its ill-fated debut, Itanic seems destined to continue to be sandwiched between ever-increasing x86 capabilities on the low end and unassailable competition on the high end: exactly the opposite of the situation that Intel and HP originally envisioned for it, and hardly a recipe for the kind of overall market domination they invested their $billions to achieve. ...
    (comp.os.vms)