matlab coder does not create mex file

3 ビュー (過去 30 日間)
Carlos Lizama
Carlos Lizama 2018 年 4 月 23 日
回答済み: Ji Lee 2018 年 4 月 25 日
I'm trying to create a mex file using Matlab coder.
I checked run-time issues, and there's no problem. However, when I generate the mex file, I get an error message: "Build error: C compiler produced errors. See the Build Log for further details"
What does this mean?

回答 (1 件)

Ji Lee
Ji Lee 2018 年 4 月 25 日
It's referring to the logs MATLAB Coder captured during attempted compilation. As such output is very compiler-specific, it has to generically point to the log rather than list specific errors.
In the MATLAB Coder app, the build log is labeled "Target Build Log" and is the first tab below the code view on both the "Check for Run-Time Issues" and "Generate Code" steps. Similarly, in the code generation report, there is a "Build Log" tab at the bottom of the report. In the report, the tracts of output related to the error are usually highlighted in red. You'll want to start by examining this output.

カテゴリ

Help Center および File ExchangeMATLAB Code Analysis についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by