Chinaunix

标题: gcc编译遇到的问题 [打印本页]

作者: zhuyan    时间: 2007-04-16 22:04
标题: gcc编译遇到的问题
使用vi编辑器编写程序:
#include <stdio.h>
int main()
{
      printk("helloworld!!\n");
      return 0;
}
然后用gcc编译,却显示。sth文件不存在
是何道理??请教高手帮忙
作者: zwylinux    时间: 2007-04-16 23:25
printk("helloworld!!\n");


printk,敲错了吧
作者: mcumsigscr    时间: 2007-04-17 09:27
原帖由 zhuyan 于 2007-4-16 22:04 发表于 1楼  
使用vi编辑器编写程序:
#include <stdio.h>
int main()
{
      printk("helloworld!!\n");
      return 0;
}
然后用gcc编译,却显示。sth文件不存在
是何道理??请教高手帮忙



把你编译的过程贴一下。




欢迎光临 Chinaunix (http://bbs.chinaunix.net/) Powered by Discuz! X3.2