我正在嘗試在 RHEL 7.6 上編譯一個 matlab 專案,當我嘗試運行以下命令時:
mcc -m SliceViewerMain.m -a <PATH>/*.fig -a <PATH>/*.bmp -a <PATH>/*.m
我收到此錯誤:
Error: You specified the file "<PATH>/pause_e.bmp" without using the "-a" option.
有人知道我為什么會這樣嗎?
uj5u.com熱心網友回復:
您沒有指定,但我懷疑您是mcc在 shell 命令提示符下使用,而不是在 MATLAB 中使用?在這種情況下,shell在看到它*之前會擴展通配符mcc,所以就好像你說:
$ mcc ... -a <PATH>/pause_a.bmp <PATH>/pause_b.bmp <PATH>/pause_c.bmp ...
修復方法是在 MATLAB 中運行命令,或者從 shell 隱藏通配符擴展并讓mcc擴展
$ mcc ... -a '<PATH>/*.fig' ...
即使用單引號。
轉載請註明出處,本文鏈接:https://www.uj5u.com/caozuo/432371.html
