nios ii 建立庫檔案,並在新工程中被調用

來源:互聯網
上載者:User

標籤:des   cWeb   os   檔案   io   for   art   cti   

選擇Nios II Library

選擇location,這樣的話庫檔案時獨立的,而如果選擇 Make library depend on a BSP的話會依賴BSP,如果BSP被刪除了那新工程編譯時間會報錯。

添加c源檔案和h標頭檔

然後build project

然後建立工程:

file->Nios II Application and BSP from Template

 

然後在工程中添加庫檔案的搜尋路徑:

右擊工程檔案—>properties->展開Nios II Application Properties->選擇Nios Application Paths

 

在Library projects中添加庫工程頂層檔案,在Application include directories 中添加包含庫標頭檔的目錄,在Application library directories 中添加包含.a檔案的目錄,在Library name中添加庫工程名,如所示

然後選擇ok,

最後編譯工程檔案,build project。

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.