環境変数TEMPに日​本語が含まれると、L​CCがエラーを出力す​るのはなぜですか?

6 次查看(过去 30 天)
MathWorks Support Team
mex -setup にてLCCを選択し、MEXコンパイルやエンジン機能、Real-Time Workshop関連のビルドを行うとエラーが発生します。
cannot open c:\docume~1\ユーザ名\locals~1\temp\mex_c14657a1-d722-4455-01a8-6069758e8df4\templib2.obj
C:\MATLAB\2006B\BIN\MEX.PL: Error: Link of '..\modelname_sf.mexw32' failed.
gmake: *** [../modelname_sf.mexw32] Error 0x2
gmake: *** Deleting file `../modelname_sf.mexw32'
ans =
エラー: ==> RTW.genMakefileAndBuild
Error(s) encountered while building model "modelname"

采纳的回答

MathWorks Support Team
LCCの問題で、環境変数TEMPに日本語を含むとコンパイルが正常に終了しません。環境変数の設定にて、TEMPの値を C:\Temp 等の日本語を含まないパスに設定してください。

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 C MEX ファイル アプリケーション 的更多信息

Community Treasure Hunt

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

Start Hunting!