- Als neu kennzeichnen
- Lesezeichen
- Abonnieren
- Stummschalten
- RSS-Feed abonnieren
- Kennzeichnen
- Anstößigen Inhalt melden
Hi everyone,
I'm working with Intel Visual Fortran Compiler for Windows Professional Edition 11.1 on an AMD64 machine running Windows XP (32 bit version). I'm trying to build an application for the same 32 bit OS.
In my project at linking time I got the following error
LNK1112: module machine type 'x64' conflicts with target machine type 'x86'
I guess the problem is that the .obj file I'm trying to link has been compiled at 64 bit (sorry if the terminology is inappropriate, I'm a real newbie). If my idea is correct, how do I tell the compiler to produce a 32 bit obj instead? Is there a command line option?
Thank you very much for your help,
w.
I'm working with Intel Visual Fortran Compiler for Windows Professional Edition 11.1 on an AMD64 machine running Windows XP (32 bit version). I'm trying to build an application for the same 32 bit OS.
In my project at linking time I got the following error
LNK1112: module machine type 'x64' conflicts with target machine type 'x86'
I guess the problem is that the .obj file I'm trying to link has been compiled at 64 bit (sorry if the terminology is inappropriate, I'm a real newbie). If my idea is correct, how do I tell the compiler to produce a 32 bit obj instead? Is there a command line option?
Thank you very much for your help,
w.
Link kopiert
2 Antworten
- Als neu kennzeichnen
- Lesezeichen
- Abonnieren
- Stummschalten
- RSS-Feed abonnieren
- Kennzeichnen
- Anstößigen Inhalt melden
You must install the native (ia32) compiler, and set x86 if you are using a Visual Studio project. If you are compiling from command line window, open the "Build Environment for IA-32" choice in Start>Intel Development Tools.
- Als neu kennzeichnen
- Lesezeichen
- Abonnieren
- Stummschalten
- RSS-Feed abonnieren
- Kennzeichnen
- Anstößigen Inhalt melden
The default in Visual Studio is to build a 32-bit application, and it seems you are building one, but somehow have an object module that was compiled for 64-bit. Doesn't the linker tell you the name of the object file or library module that is the problem? Are you linking to an object or library that you got from someone else?
That you are using an AMD64 processor makes no difference - since you are running 32-bit Windows, you have effectively a 32-bit system.
If you are using the command line, make sure that you start with the "Build Environment for applications running on IA-32".

Antworten
Themen-Optionen
- RSS-Feed abonnieren
- Thema als neu kennzeichnen
- Thema als gelesen kennzeichnen
- Diesen Thema für aktuellen Benutzer floaten
- Lesezeichen
- Abonnieren
- Drucker-Anzeigeseite