這是一個已知的問題,Nios® II使用 GCC 4 工具鏈的 10.0、10.1、11.0 和 11.1 版本的軟體版本。
以下是錯誤訊息的範例:
nios2-elf-gcc.exe:/cygdrive/d/test/hello.c:沒有這樣的檔案或目錄
nios2-elf-gcc.exe:無輸入檔案
這將固定在未來版本的 Quartus II 軟體中。
在 Windows 作業系統中,在「開始」功能表上,
指向程式 -> Altera -> Nios II EDS ->舊式Nios II工具
然後按一下 Nios II 命令 Shell [gcc3]
或
(b) 使用其他路徑名稱格式,例如「被引用的 Windows」、「小巧 Windows」或「混合式」。
例如,hello.c 檔案位於 D:\testDir 目錄中
引用 Windows
nios2-elf-gcc「D:\testDir\hello.c」
已啟用 Windows
nios2-elf-gcc D:\\testDir\hello.c
混合
nios2-elf-gcc D:/testDir/hello.c