matlab coder does not create mex file

4 次查看(过去 30 天)
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 CenterFile Exchange 中查找有关 Build Configuration 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by