Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Thread Subject:
linking mclmcrrt.lib 32/64 bit incompatibilities?

Subject: linking mclmcrrt.lib 32/64 bit incompatibilities?

From: oliver

Date: 10 Aug, 2009 11:03:01

Message: 1 of 3

I have a linking problem with using mclmcrrt in Visual Studio 2008. I have a 64-bit version of Matlab (R2009a), and am creating a c++ program that will call compiled .m files (using mcc).

As far as I can tell, Matlab comes _only_ the 64 bit version of mclmcrrt.lib (...../Matlab/R2009a/extern/lib/win64/microsoft)

I am compiling a 32-bit c++ program that needs to use mclmcrrt. However, I am getting linking errors for any Matlab functions that I try to call in this form:

error LNK2001: unresolved external symbol _mclInitializeApplication_proxy

Is this because my .lib file is 64-bit but I am compiling to a 32-bit application? is there some other cause problem? Thanks!

Subject: linking mclmcrrt.lib 32/64 bit incompatibilities?

From: oliver

Date: 10 Aug, 2009 11:33:01

Message: 2 of 3

> error LNK2001: unresolved external symbol _mclInitializeApplication_proxy
>

I have confirmed that the problem is with the conflict between 32/64 bit libs. If I target my project for x64 architecture, I do not get the link error.

So the question is, how can I get the R2009a mclmcrrt.lib library in 32-bit flavor?

Have any other people been successful compiling 32-bit applications on a system with 64-bit Matlab?

Thanks

Subject: linking mclmcrrt.lib 32/64 bit incompatibilities?

From: Bruno Luong

Date: 10 Aug, 2009 12:02:02

Message: 3 of 3

"oliver " <owang@checkmyprofile.edu> wrote in message <h5p0hd$rv3$1@fred.mathworks.com>...
> > error LNK2001: unresolved external symbol _mclInitializeApplication_proxy
> >
>
> I have confirmed that the problem is with the conflict between 32/64 bit libs. If I target my project for x64 architecture, I do not get the link error.
>
> So the question is, how can I get the R2009a mclmcrrt.lib library in 32-bit flavor?
>
> Have any other people been successful compiling 32-bit applications on a system with 64-bit Matlab?
>
> Thanks

You need to install Matlab 32 bit to build 32-bit library/application/mex.

Bruno

Tags for this Thread

No tags are associated with this thread.

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Contact us