Missing Windows header file in Matlab 2019a for MacOS

Hi, I am running Matlab 2019a on Mac, and I need to connect it to mex C++ file, but it keeps failing with the error stating that " 'Windows.h' file not found". The whole mex and m files were originally created in Windows. Are there any way to fix this?

回答 (1 件)

Dinesh Yadav
Dinesh Yadav 2019 年 10 月 30 日

0 投票

mex files that are generated while compiling are different for different operating systems. You can find more about that in this link.
For mac you will need to compile from beginning. One cannot use the windows version.

カテゴリ

ヘルプ センター および File ExchangeWrite C Functions Callable from MATLAB (MEX Files) についてさらに検索

質問済み:

2019 年 7 月 30 日

回答済み:

2019 年 10 月 30 日

Community Treasure Hunt

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

Start Hunting!

Translated by