logo

如何链接CH375文件系统库-CH375HFx.LIB!!(图片)
我的 IAR 版本是 3.20A的。
这人很懒,什么都没留下
库的版本用的是ICCAVR 6.31A,还有你要将CH375HFB.H文件也添加进去.
这人很懒,什么都没留下
我已经添加了CH375HFB.H,用ICCAVR 6.31A编译就可以,但是 IAR 就不行。郁闷啊!
这人很懒,什么都没留下
引用回复:请问富士通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的库
E-MAIL:fqb@wch.cn TEL:025-52638375
请问有谁知道在 Code Warrior IDE 编译软件环境下,如何添加 CH375 的程序文件库?
初来乍道,请多关照!
我使用的是ICC AVR 6.30版本,按照楼主的设置将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"就可以了,一定要用,头文件是用来申明库里面的函数的
E-MAIL:fqb@wch.cn TEL:025-52638375
提示的错误是中断脚没有定义,定义中断引脚.
这人很懒,什么都没留下
IAR3.20如何连结?
这人很懒,什么都没留下
请问怎么在CCS中进行链接呀?谢谢
这人很懒,什么都没留下
超好贴!!被这个问题搞到焦头烂额,雪中送炭啊!!!!
从今以后,做一碌社会栋梁!
只有登录才能回复,可以选择微信和github账号登录