MATLAB engine , C++ and MATLAB .dll files

I am using the MATLAB engine in C++ to read an excel file. If I want to make this C++ file into an executable and place it on a file server, do I need to install MATLAB on the file server? Or will it work if I use a static library link in C++ to link the .dll files from MATLAB to the .exe?
Thanks!

 採用された回答

Jan
Jan 2013 年 8 月 16 日

1 投票

If you are calling the Matlab engine, Matlab has to be installed on the target machine. If you have the Compiler Toolbox you can build a standalone dll that you can call from within c++.

3 件のコメント

Caroline
Caroline 2013 年 8 月 16 日
Hi Jan,
Thanks so much for getting back to me. Would the MATLAB compiler toolbox be installed on the file server where I am placing the .exe? Also, are you saying that If I have the compiler toolbox, I would not need to install MATLAB on the file server where I am placing the .exe, but instead I could link the MATLAB .dll files to C++? Or I would still need MATLAB on the file server no matter what?
Thanks for your help!
Jan
Jan 2013 年 8 月 16 日
With the Compiler Toolbox you can build a dll (or standalone exe), that you can add to a c++ project and use on a target machine without a Matlab installation. However, you will need to install the (free) Matlab Compiler Runtime on the target machine. The Compiler Toolbox will be installed on the developing machine.
Caroline
Caroline 2013 年 8 月 16 日
Thank you so much!

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

その他の回答 (0 件)

カテゴリ

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

質問済み:

2013 年 8 月 16 日

Community Treasure Hunt

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

Start Hunting!

Translated by