找回密码
 注册
搜索
查看: 676|回复: 1

[讨论] vivi 编译时怎么能link到基本的函数库,比如string.h?

[复制链接]
发表于 2009-8-4 23:09:13 | 显示全部楼层 |阅读模式
我make vivi的时候,报了许多错,主要是LD不到相关的.o文件。我想问一下,怎么让其他文件都能连接到基本的函数库?这样就不会出编译的错误。
编译时,部分出错信息如下:
arch/s3c2410/s3c2410.o: In function `command_cpu':
arch/s3c2410/s3c2410.o(.text+0x87c): undefined reference to `strncmp'
arch/s3c2410/s3c2410.o(.text+0x8a0): undefined reference to `strncmp'
arch/s3c2410/s3c2410.o(.text+0x8c4): undefined reference to `strncmp'
arch/s3c2410/s3c2410.o: In function `command_test':
arch/s3c2410/s3c2410.o(.text+0xeb0): undefined reference to `strncmp'
arch/s3c2410/s3c2410.o(.text+0xed4): undefined reference to `strncmp'
arch/s3c2410/s3c2410.o(.text+0xef8): more undefined references to `strncmp' follow

大家可以看到strncmp是string.h中的函数,我怎么才能让s3c2410.o找到string.h?
这些基本的函数库,重新编译的话,放在了什么地方,请大致帮我描述一下。谢谢了!
发表于 2009-8-26 18:13:56 | 显示全部楼层
试试include "stdC.h"[br]<p align=right><font color=red>+1 RD币</font></p>
点评回复

使用道具 举报

高级模式
B Color Image Link Quote Code Smilies

本版积分规则

Archiver|手机版|小黑屋|52RD我爱研发网 ( 沪ICP备2022007804号-2 )

GMT+8, 2024-10-8 10:53 , Processed in 0.058032 second(s), 17 queries , Gzip On.

Powered by Discuz! X3.5

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表