如何链接CH375文件系统库-CH375HFx.LIB!!(图片)

多谢大家,已经搞定,在设置中把选择Thumb模式的勾去掉就可以了!


谢谢楼主提供!非常感谢!


12


123


21


怎么没有430的IAR?


IAR的库添加和KIEL有点相似,你可以试下


这个是GCC编译库的链接方法hcn00120061024124925.jpg


CH375HFx.A与CH375HFx.lib之间的关系怎样。 CH375HFB.A相当于那个lib 而CH375HF6.lib又相当于那个*.A库呢。 并求CH375HF6.lib对应的*.A文件及其头文件,谢谢热心人了。

我的邮箱是:个人信息保护,已隐藏


直接到网上下载CH375LIB.ZIP,里面的FILELIBB有头文件和库文件


请问在WinAVR中怎么添加库啊?


好象WinAVR中需要用GCC做出MAKEFILE文件之后在将MAKEFILE文件链接到WinAVR中


在Win AVR环境下如何调用库函数,我将CH375HFD.H和CH375HFT.C放在一个文件夹下面,为什么我的编译出那么多错啊? -------- begin -------- avr-gcc (GCC) 3.4.3 Copyright (C) 2004 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Linking: CH375HFT.elf avr-gcc -mmcu=atmega16 -I. -gdwarf-2 -DF_CPU=1000000UL -Os -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums -Wall -Wstrict-prototypes -Wa,-adhlns=CH375HFT.o -std=gnu99 -MD -MP -MF .dep/CH375HFT.elf.d CH375HFT.o --output CH375HFT.elf -Wl,-Map=CH375HFT.map,--cref -lm CH375HFT.o(.text+0xc): In function `CH375FileRead': F:\BIYESHEJI\ch3751/CH375HFD.h:675: undefined reference to `CH375FileReadX' CH375HFT.o(.text+0x20): In function `CH375FileWrite': F:\BIYESHEJI\ch3751/CH375HFD.h:681: undefined reference to `CH375FileWriteX' CH375HFT.o(.text+0x8a): In function `xQueryInterrupt': F:\BIYESHEJI\ch3751/CH375HFD.h:718: undefined reference to `CH375IntStatus' CH375HFT.o(.text+0x8e):F:\BIYESHEJI\ch3751/CH375HFD.h:719: undefined reference to `CH375IntStatus' CH375HFT.o(.text+0x98):F:\BIYESHEJI\ch3751/CH375HFD.h:719: undefined reference to `CH375DiskStatus' CH375HFT.o(.text+0x9e):F:\BIYESHEJI\ch3751/CH375HFD.h:720: undefined reference to `CH375IntStatus' CH375HFT.o(.text+0xa8):F:\BIYESHEJI\ch3751/CH375HFD.h:720: undefined reference to `CH375DiskStatus' CH375HFT.o(.text+0xcc): In function `CH375LibInit': F:\BIYESHEJI\ch3751/CH375HFD.h:855: undefined reference to `CH375LibConfig' CH375HFT.o(.text+0xd2):F:\BIYESHEJI\ch3751/CH375HFD.h:857: undefined reference to `CH375GetVer' CH375HFT.o(.text+0xe0):F:\BIYESHEJI\ch3751/CH375HFD.h:858: undefined reference to `CH375Init' CH375HFT.o(.text+0x19c): In function `main': F:\BIYESHEJI\ch3751/CH375HFT.c:189: undefined reference to `CH375DiskStatus' CH375HFT.o(.text+0x1a2):F:\BIYESHEJI\ch3751/CH375HFT.c:188: undefined reference to `CH375DiskConnect' CH375HFT.o(.text+0x1ca):F:\BIYESHEJI\ch3751/CH375HFT.c:198: undefined reference to `CH375DiskReady' CH375HFT.o(.text+0x1f8):F:\BIYESHEJI\ch3751/CH375HFT.c:210: undefined reference to `CH375FileOpen' CH375HFT.o(.text+0x258):F:\BIYESHEJI\ch3751/CH375HFT.c:220: undefined reference to `CH375FileOpen' CH375HFT.o(.text+0x2e4):F:\BIYESHEJI\ch3751/CH375HFT.c:240: undefined reference to `CH375ByteRead' CH375HFT.o(.text+0x328):F:\BIYESHEJI\ch3751/CH375HFT.c:268: undefined reference to `CH375FileClose' CH375HFT.o(.text+0x34a):F:\BIYESHEJI\ch3751/CH375HFT.c:276: undefined reference to `CH375FileCreate' CH375HFT.o(.text+0x380):F:\BIYESHEJI\ch3751/CH375HFT.c:289: undefined reference to `CH375ByteWrite' CH375HFT.o(.text+0x398):F:\BIYESHEJI\ch3751/CH375HFT.c:302: undefined reference to `CH375FileClose' CH375HFT.o(.text+0x3aa):F:\BIYESHEJI\ch3751/CH375HFT.c:323: undefined reference to `CH375DiskStatus' CH375HFT.o(.text+0x3b0):F:\BIYESHEJI\ch3751/CH375HFT.c:322: undefined reference to `CH375DiskConnect' make.exe: *** [CH375HFT.elf] Error 1

> Process Exit Code: 2


那请教在 IAR 中怎么链接呢?


IAR库的添加方法和添加。C文件的方法是一样的,直接将。R43的文件添加进去就可以了。


只有登录才能回复,可以选择微信账号登录