MATLAB MEX Compile error

I am getting a "MX_TARGET_API_VER" is not defined in this scope error MEX compiling a code with mex.h and matrix.h included.
I am using MATLAB 2018b.
I have other code that is similar but do not get a similar error. I posted a comment to a similar problem with MATLB 2016b so I am surprised to se the error occuring in a newer version.
Is there a fix for this problem?

回答 (2 件)

James Tursa
James Tursa 2018 年 11 月 16 日

0 投票

Download this matlab_version.h header file from the FEX:
Chuck DeCarlucci
Chuck DeCarlucci 2018 年 11 月 20 日

0 投票

Ended up with a different problem and solution. Did not need to use the solution provided.

カテゴリ

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

製品

リリース

R2018b

質問済み:

2018 年 11 月 16 日

回答済み:

2018 年 11 月 20 日

Community Treasure Hunt

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

Start Hunting!

Translated by