我的 IAR 版本是 3.20A的。
庫的版本用的是ICCAVR 6.31A,還有你要將CH375HFB.H文件也添加進去.
我已經(jīng)添加了CH375HFB.H,用ICCAVR 6.31A編譯就可以,但是 IAR 就不行。郁悶啊!
引用回復(fù):請問富士通Softune的平臺,如何鏈接LIB文件和H文件? 著急啊,哪位大大來幫助一下,多謝!!
庫有什么用呀?我直接用偉福建立項目,包括CH375EV3.C和CH375INC.H,然后就能編譯和運行,不要改link呀? 庫有什么用呀??????????????
ICCAVR V7.13 編譯不成功呀! D:\iccv7avr\bin\imakew -f MCUQM.mak
iccavr -c -ID:\iccv7avr\include -IG:\1 -e -D__ICC_VERSION="7.13" -DATMEGA -DATMega128 -l -g -Wa-IG:\1 -Mavr_enhanced -Wf-str_in_flash -Wf-use_elpm G:\1\main.c iccavr -c -ID:\iccv7avr\include -IG:\1 -e -D__ICC_VERSION="7.13" -DATMEGA -DATMega128 -l -g -Wa-IG:\1 -Mavr_enhanced -Wf-str_in_flash -Wf-use_elpm G:\1\init.c iccavr -c -ID:\iccv7avr\include -IG:\1 -e -D__ICC_VERSION="7.13" -DATMEGA -DATMega128 -l -g -Wa-IG:\1 -Mavr_enhanced -Wf-str_in_flash -Wf-use_elpm G:\1\mouse.c iccavr -c -ID:\iccv7avr\include -IG:\1 -e -D__ICC_VERSION="7.13" -DATMEGA -DATMega128 -l -g -Wa-IG:\1 -Mavr_enhanced -Wf-str_in_flash -Wf-use_elpm G:\1\windowmanager.c !W G:\1\windowmanager.c: [warning] in function 'HookFun1', argument 'ptr' has no use. !W G:\1\windowmanager.c: [warning] in function 'HookFun2', argument 'ptr' has no use. !W G:\1\windowmanager.c: [warning] in function 'HookFun3', argument 'ptr' has no use. !W G:\1\windowmanager.c: [warning] in function 'RedrawStatusBar', argument 'PTR' has no use. iccavr -c -ID:\iccv7avr\include -IG:\1 -e -D__ICC_VERSION="7.13" -DATMEGA -DATMega128 -l -g -Wa-IG:\1 -Mavr_enhanced -Wf-str_in_flash -Wf-use_elpm G:\1\menumanager.c !W G:\1\menumanager.c: [warning] in function 'LoadTime', argument 'ptr' has no use. !W G:\1\menumanager.c: [warning] in function 'ModifyTime', argument 'ptr' has no use. iccavr -c -ID:\iccv7avr\include -IG:\1 -e -D__ICC_VERSION="7.13" -DATMEGA -DATMega128 -l -g -Wa-IG:\1 -Mavr_enhanced -Wf-str_in_flash -Wf-use_elpm G:\1\optonmanager.c !W G:\1\optonmanager.c: [warning] in function 'DisplayEdits', argument 'Invert' has no use. iccavr -c -ID:\iccv7avr\include -IG:\1 -e -D__ICC_VERSION="7.13" -DATMEGA -DATMega128 -l -g -Wa-IG:\1 -Mavr_enhanced -Wf-str_in_flash -Wf-use_elpm G:\1\waver.c !W G:\1\waver.c: [warning] in function 'EnableWaverI', argument 'Para' has no use. !W G:\1\waver.c: [warning] in function 'EnableWaverS', argument 'Para' has no use. !W G:\1\waver.c: [warning] in function 'CurveExpand', argument 'Para' has no use. !W G:\1\waver.c: [warning] in function 'CurveCompact', argument 'Para' has no use. !W G:\1\waver.c: [warning] in function 'MoveWaverCusor1', argument 'c' has no use. !W G:\1\waver.c: [warning] in function 'MoveWaverCusor2', argument 'c' has no use. iccavr -c -ID:\iccv7avr\include -IG:\1 -e -D__ICC_VERSION="7.13" -DATMEGA -DATMega128 -l -g -Wa-IG:\1 -Mavr_enhanced -Wf-str_in_flash -Wf-use_elpm -Wa-g G:\1\abs.s iccavr -c -ID:\iccv7avr\include -IG:\1 -e -D__ICC_VERSION="7.13" -DATMEGA -DATMega128 -l -g -Wa-IG:\1 -Mavr_enhanced -Wf-str_in_flash -Wf-use_elpm G:\1\calculate.c iccavr -c -ID:\iccv7avr\include -IG:\1 -e -D__ICC_VERSION="7.13" -DATMEGA -DATMega128 -l -g -Wa-IG:\1 -Mavr_enhanced -Wf-str_in_flash -Wf-use_elpm G:\1\eeprom.c iccavr -c -ID:\iccv7avr\include -IG:\1 -e -D__ICC_VERSION="7.13" -DATMEGA -DATMega128 -l -g -Wa-IG:\1 -Mavr_enhanced -Wf-str_in_flash -Wf-use_elpm G:\1\operation.c !W G:\1\operation.c: [warning] in function 'Operating', argument 'ptr' has no use. iccavr -c -ID:\iccv7avr\include -IG:\1 -e -D__ICC_VERSION="7.13" -DATMEGA -DATMega128 -l -g -Wa-IG:\1 -Mavr_enhanced -Wf-str_in_flash -Wf-use_elpm G:\1\print.c !W G:\1\print.c: [warning] in function 'PrintDataPage', argument 'ptr' has no use. !W G:\1\print.c: [warning] in function 'PrintWaverPage', argument 'ptr' has no use. iccavr -c -ID:\iccv7avr\include -IG:\1 -e -D__ICC_VERSION="7.13" -DATMEGA -DATMega128 -l -g -Wa-IG:\1 -Mavr_enhanced -Wf-str_in_flash -Wf-use_elpm G:\1\indexdata.c !W G:\1\indexdata.c: [warning] in function 'SaveTestData', argument 'ptr' has no use. !W G:\1\indexdata.c: [warning] in function 'IndexData', argument 'ptr' has no use. iccavr -c -ID:\iccv7avr\include -IG:\1 -e -D__ICC_VERSION="7.13" -DATMEGA -DATMega128 -l -g -Wa-IG:\1 -Mavr_enhanced -Wf-str_in_flash -Wf-use_elpm G:\1\datafilter.c iccavr -c -ID:\iccv7avr\include -IG:\1 -e -D__ICC_VERSION="7.13" -DATMEGA -DATMega128 -l -g -Wa-IG:\1 -Mavr_enhanced -Wf-str_in_flash -Wf-use_elpm G:\1\lcd.c iccavr -c -ID:\iccv7avr\include -IG:\1 -e -D__ICC_VERSION="7.13" -DATMEGA -DATMega128 -l -g -Wa-IG:\1 -Mavr_enhanced -Wf-str_in_flash -Wf-use_elpm G:\1\ds12c887.c iccavr -c -ID:\iccv7avr\include -IG:\1 -e -D__ICC_VERSION="7.13" -DATMEGA -DATMega128 -l -g -Wa-IG:\1 -Mavr_enhanced -Wf-str_in_flash -Wf-use_elpm G:\1\nandflash.c iccavr -c -ID:\iccv7avr\include -IG:\1 -e -D__ICC_VERSION="7.13" -DATMEGA -DATMega128 -l -g -Wa-IG:\1 -Mavr_enhanced -Wf-str_in_flash -Wf-use_elpm G:\1\tlc1550.c iccavr -c -ID:\iccv7avr\include -IG:\1 -e -D__ICC_VERSION="7.13" -DATMEGA -DATMega128 -l -g -Wa-IG:\1 -Mavr_enhanced -Wf-str_in_flash -Wf-use_elpm G:\1\ch375hft.c iccavr -o MCUQM -LD:\iccv7avr\lib -LG:\1 -g -e:0x20000 -ucrtatmega.o -bfunc_lit:0x8c.0x20000 -dram_end:0x10ff -bdata:0x100.0x10ff -dhwstk_size:196 -beeprom:0.4096 -fihx_coff -F0xff -S2 @MCUQM.lk G:\1\ch375hfb.a -lstudio -llpatmega -lcatmega !ERROR file 'CH375HFB.o': undefined symbol 'push_gset1' !ERROR file 'CH375HFB.o': undefined symbol 'push_gset2' !ERROR file 'CH375HFB.o': undefined symbol 'push_gset3' !ERROR file 'CH375HFB.o': undefined symbol 'push_gset4' !ERROR file 'CH375HFB.o': undefined symbol 'push_gset5' !ERROR file 'CH375HFB.o': undefined symbol 'pop_gset1' !ERROR file 'CH375HFB.o': undefined symbol 'pop_gset2' !ERROR file 'CH375HFB.o': undefined symbol 'pop_gset3' !ERROR file 'CH375HFB.o': undefined symbol 'pop_gset4' !ERROR file 'CH375HFB.o': undefined symbol 'pop_gset5' D:\iccv7avr\bin\imakew.exe: Error code 1 Done: there are error(s). Exit code: 1. Wed May 30 21:57:41 2007
如果編譯不成功的話,那你看下頭文件,是不是ICC的庫
請問有誰知道在 Code Warrior IDE 編譯軟件環(huán)境下,如何添加 CH375 的程序文件庫?
我使用的是ICC AVR 6.30版本,按照樓主的設(shè)置將CH375HFB.A放入FILES中,將CH375HFB.H放入HEADS后,為什么在我自己定義的USB_TEST.C源代碼文件中加入#include "CH375HFB.H"后提示錯誤: D:\Program Files\icc\bin\imakew -f USB_TEST.mak iccavr -c -ID:\PROGRA~1\icc\include\ -e -DATMEGA -l -g -Mavr_enhanced C:\USB_TEST\USB_TEST.C !E C:\USB_TEST/CH375HFB.H(716): undeclared identifier `CH375_INT_WIRE' D:\Program Files\icc\bin\imakew.exe: Error code 1 D:\Program Files\icc\bin\imakew.exe: 'USB_TEST.o' removed. Done: there are error(s). Exit code: 1 那么如何使用這個庫,我看到在例子中的.C文件中就使用了#include "CH375HFB.H" 請問誰可以告訴我,謝謝!
62樓的loveapple,63樓的joson,你們在ICC AVR中使用了#include "CH375HFB.H"了嗎?怎么使用的?
直接在C文件里面加上#include "CH375HFB.H"就可以了,一定要用,頭文件是用來申明庫里面的函數(shù)的
提示的錯誤是中斷腳沒有定義,定義中斷引腳.
IAR3.20如何連結(jié)?
請問怎么在CCS中進行鏈接呀?謝謝
超好貼!!被這個問題搞到焦頭爛額,雪中送炭啊!!!!