gcc编译hello.c出现问题.我是新手

ts2112774 2008-09-12 05:59:12
root@linux:/usr/local/arm/arm-linux/bin# gcc -o hello hello.c
/tmp/ccqOcYnh.o: In function `main':
hello.c:(.text+0x19): undefined reference to `print'
collect2: ld 返回 1
root@linux:/usr/local/arm/arm-linux/bin#
实在搞不明白怎么回事..好郁闷..
已经安装过build-essential这个了
...全文
171 4 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
ts2112774 2008-09-12
  • 打赏
  • 举报
回复
晕了,谢谢你啊..C好久不用了,和JAVA C#弄混了,
kinfkong 2008-09-12
  • 打赏
  • 举报
回复
print改成printf啊.
ts2112774 2008-09-12
  • 打赏
  • 举报
回复
#include<stdio.h>
main()
{
print("hi");
}
这个是源码
kinfkong 2008-09-12
  • 打赏
  • 举报
回复
print是啥?

23,216

社区成员

发帖
与我相关
我的任务
社区描述
Linux/Unix社区 应用程序开发区
社区管理员
  • 应用程序开发区社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧