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 日

0 投票

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 件のコメント

Nicolas
Nicolas 2012 年 1 月 25 日
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 日

0 投票

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

カテゴリ

ヘルプ センター および File ExchangeIntroduction to Installation and Licensing についてさらに検索

製品

Community Treasure Hunt

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

Start Hunting!

Translated by