how can i fixe problems status code 2

My final project required to generate vhdl coder from matlab but I face this problem: build error: compilation returned error status code 2. anyone can help?

回答 (2 件)

Walter Roberson
Walter Roberson 2015 年 12 月 30 日

0 投票

We need the complete error log. Potential problems include possibilities:
  • you might not have used mex -setup
  • you might have a username or directory that includes spaces or special characters
  • you might be using a very old version of windows that uses COM as its command processor instead of CMD
  • your code might not compile
  • you might be trying to convert a script instead of a function
There are probably other reasons as well.

1 件のコメント

Hari Ijjada
Hari Ijjada 2019 年 8 月 29 日
** while i am trying to use mex -setup it is giving below message ..what is the remedy for that
Error using mex
No supported compiler or SDK was found. You can install the freely available MinGW-w64 C/C++ compiler; see Install
MinGW-w64 Compiler. For more options, visit http://www.mathworks.com/support/compilers/R2016a/win64.html.
** i don't have any spaces or special characters or spaces in my username or my directory
** I am using windows7 Ultimate version
** I am able to generate the C code on another system by using same version of Matlab and Same program...
** It is generating the C code in older versions also on other systems
what is the solution for that ?

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

Kiran Kintali
Kiran Kintali 2019 年 8 月 30 日

0 投票

please send your code and reproduction steps to support@mathworks.com
Thanks

タグ

質問済み:

2015 年 12 月 30 日

回答済み:

2019 年 8 月 30 日

Community Treasure Hunt

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

Start Hunting!

Translated by