Error[Li005]: no definition for "__write" [referenced from putchar.o(dlstm8mln.a)]
这个unity测试框架里的
#ifndef UNITY_OUTPUT_CHAR
/* Default to using putchar, which is defined in stdio.h */
#include <stdio.h>
#define UNITY_OUTPUT_CHAR(a) (void)putchar(a)
#else
/* If defined as something else, make sure we declare it here so it's ready for use */
#ifdef UNITY_OUTPUT_CHAR_HEADER_DECLARATION
extern void UNITY_OUTPUT_CHAR_HEADER_DECLARATION;
#endif
#endif
但是我不加载框架,直接调用putchar没有问题的,加载框架后编译通过,链接出问题了
请老师同学们指点一下 |