Re: gld 如何引用外部定義
|
||||
---|---|---|---|---|
初級會員
|
感謝提供測試方式。
發表於: 2023/1/12 11:24
|
|||
|
Re: gld 如何引用外部定義
|
||||
---|---|---|---|---|
管理員
|
可以嘗試在MPLAB X IDE的專案設定中找到「xc16-ld」選項,並選擇「Symbols & Macros」頁面,在「Linker symbols」新增需要的參數定義,
如下圖:
發表於: 2023/1/12 10:36
|
|||
|
gld 如何引用外部定義
|
||||
---|---|---|---|---|
初級會員
|
請教如何讓 .gld 檔能夠引用外部定義?
例如在 ABC.h 內含 #define XYZ 2 如何在 .gld 內實現如底下判斷式 #if XYZ > 1 ... #else ... #endif
發表於: 2023/1/11 13:22
|
|||
|