2011-06-19 10 views
0

.mファイルを.mexmaci64にコンパイルする際にビルドエラーが発生しました。 私のmatlabバージョンは2011a、プラットフォームMacOS X 10.6、Xcode 3.2を使用しています。matlab mexのステータスコード2のビルドエラー

Errorステートメント:

??? Build error: Compilation returned error status code 2. See the target build log for further details.

ターゲットビルドログ:誰かがどのようにエラーを解決するために私を伝えることができる場合、私は非常に感謝し

3 In file included from mphmm_getEstimation_data.c:13: 4 mphmm_getEstimation_data.h:30: error: expected '=', ',', ';', 'asm' or 'attribute' before 'xb_emlrtRSI' 5 mphmm_getEstimation_data.h:31: error: expected '=', ',', ';', 'asm' or 'attribute' before 'nc_emlrtRSI' 6 mphmm_getEstimation_data.h:32: error: expected '=', ',', ';', 'asm' or 'attribute' before 'oc_emlrtRSI' 7 mphmm_getEstimation_data.h:33: error: expected '=', ',', ';', 'asm' or 'attribute' before 'pc_emlrtRSI' 8 mphmm_getEstimation_data.h:34: error: expected '=', ',', ';', 'asm' or 'attribute' before 'qc_emlrtRSI' 9 mphmm_getEstimation_data.c:22: error: expected '=', ',', ';', 'asm' or 'attribute' before 'xb_emlrtRSI' 10 mphmm_getEstimation_data.c:23: error: expected '=', ',', ';', 'asm' or 'attribute' before 'nc_emlrtRSI' 11 mphmm_getEstimation_data.c:24: error: expected '=', ',', ';', 'asm' or 'attribute' before 'oc_emlrtRSI' 12 mphmm_getEstimation_data.c:25: error: expected '=', ',', ';', 'asm' or 'attribute' before 'pc_emlrtRSI' 13 mphmm_getEstimation_data.c:26: error: expected '=', ',', ';', 'asm' or 'attribute' before 'qc_emlrtRSI' 14 gmake: * [mphmm_getEstimation_data.o]

。私がコードファイルを提供する必要があるかどうか教えてください。申し訳ありませんが、私はこれについて専門家ではありません。

答えて

0

私はこの問題を解決しました。いくつかのリンク引数がないか、いくつかの.hファイルが欠落しているため、リンクエラーです。それは

mwmathutils.h

emlrt.h

が私の現在のMATLABバージョンの期限が切れていることが判明しました。私は2つのファイルを置き換え、すべてが動作するようになった。

関連する問題