tc如何调用哪个库文件

来源:百度知道 编辑:UC知道 时间:2024/06/07 00:47:27
请问tc在编译时,是如何确定要用到哪些库文件?
例如我在源文件里写了printf(),那么这个printf函数是在哪个库文件里有实现?我只用到stdio.h这个头文件,tc是怎样确定用哪个库文件?

C有:
assert.h limits.h signal.h stdlib.h
ctype.h locale.h stdarg.h string.h
errno.h math.h stddef.h time.h
float.h setjmp.h stdio.h
这些库函数。
通过判断你用的是那个语句判断你需要使用哪个库函数。

你找找TC目录下的LIB子目录里有没有Stdio.lib这就是你找的库