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?

 채택된 답변

Kaustubha Govind
Kaustubha Govind 2012년 1월 25일
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

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.

댓글을 달려면 로그인하십시오.

추가 답변 (1개)

Samuel Doctolero
Samuel Doctolero 2019년 1월 16일
Another approach is to create a COM wrapper around it and have run as a surrogate process alongside your x64 code.

카테고리

도움말 센터File Exchange에서 Introduction to Installation and Licensing에 대해 자세히 알아보기

제품

질문:

2012년 1월 25일

답변:

2019년 1월 16일

Community Treasure Hunt

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

Start Hunting!

Translated by