From: Etienne on
Hi Folks

I am trying to compile some mex files written in fortran,
and am getting the following error:

LIBCMTD.lib(toupper.obj) : fatal error LNK1112: module
machine type 'x64' conflicts with target machine type 'X86'

Not sure what is going on here. I do want to compile in 32-
bit mode on my x64 XP machine.

Created object files in Microsoft Visual Studio 2005 Pro
Edition, using Intel Visual Fortran 9.1. Now using mex
command in MATLAB.

Any help would be appreciated.

Regards

Etienne
From: Titus on

"Etienne " <etienne.coetzee(a)airbus.com> schrieb im Newsbeitrag
news:g6a24i$eu8$1(a)fred.mathworks.com...
> Hi Folks
>
> I am trying to compile some mex files written in fortran,
> and am getting the following error:
>
> LIBCMTD.lib(toupper.obj) : fatal error LNK1112: module
> machine type 'x64' conflicts with target machine type 'X86'
>
> Not sure what is going on here. I do want to compile in 32-
> bit mode on my x64 XP machine.
>
> Created object files in Microsoft Visual Studio 2005 Pro
> Edition, using Intel Visual Fortran 9.1. Now using mex
> command in MATLAB.
>
> Any help would be appreciated.
>
> Regards
>
> Etienne

Hi Etienne,

just a guess: it looks as if you compiled your code using 64bit target. In
your Visual Studio look into the project options for targeting 32 bit.

Titus