Cross-compiling 32-bit C application on machine with 64-bit MATLAB installed

I have a VS 2010 64-bit C console application that links to the libeng and libmex libraries on a machine with the 64-bit flavour of MATLAB 2011b installed. I now want to cross-compile a 32-bit version of my application on this same 64-bit machine. However, it seems that the 32-bit versions of the libeng and libmex are not installed or my machine, only the 64-bit versions. Is this by design? Or did I miss an installation option when installing Matlab? How should I proceed to get my hands on the 32-bit version of these libs?

 Accepted Answer

You need to install the 32-bit version of MATLAB also. See How can I install 32-bit MATLAB on my 64-bit Windows machine?

1 Comment

Thanks for your prompt reply Kaustubha !
Installing the 32-bit version of Matlab side-by-side with the 64-bit version using the link you supplied and modifying my project's linker options accordingly fixed my problem.

Sign in to comment.

More Answers (1)

Another approach is to create a COM wrapper around it and have run as a surrogate process alongside your x64 code.

Categories

Products

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!