Sirs, I have some C++ code that is currently compiled to operate within Matlab in a Windows environment (Mex'ed).
I wish to run the Matlab code within a Unix environment, which means re-compiling the C++ code.
Can I re-compile the code within a Windows environment so that it works on Unix? Or do I need to use Matlab on a Linux machine to compile the code?
kind regards W

3 件のコメント

José-Luis
José-Luis 2016 年 12 月 19 日
Save yourself a world of hurt and recompile in Linux.
William White
William White 2016 年 12 月 19 日
Hi Jose-Luis, yes, I think that is inevitable, but thought there might be a way around it without the need to getting a linux environment installed! Thanks, W
Walter Roberson
Walter Roberson 2016 年 12 月 21 日
You would have to install a Windows emulator on the Linux system.

サインインしてコメントする。

 採用された回答

Mandar Patwardhan
Mandar Patwardhan 2016 年 12 月 21 日

0 投票

If you wish to run the Matlab code within a Unix environment then you will have to compile it on a Linux machine. Compiling on a Windows machine will not work in this case.
Take a look at the Tips section in the following link which talks about platform specific extensions for mex. https://www.mathworks.com/help/matlab/ref/mex.html?searchHighlight=mex&s_tid=doc_srchtitle#moreabout

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeMATLAB Compiler についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by