设为首页 加入收藏

TOP

Linux系统调用函数
2014-11-24 11:52:42 来源: 作者: 【 】 浏览:1
Tags:Linux 系统 调用 函数

#include
#include



#include
#include
#include



int main(int argc,char *argv[]){
int i;
if(argc<2){
printf("error!\n");
}
for(i=1;icreate(argv[i],0755);
}


}


使用gcc test.c -o test提示一下错误,想问的是,对于Linux库函数create还需要做什么样的特殊操作吗?


test.c:(.text+0x4b): undefined reference to `create'
collect2: ld returned 1 exit status


】【打印繁体】【投稿】【收藏】 【推荐】【举报】【评论】 【关闭】 【返回顶部
分享到: 
上一篇编译内核----make config时候报错 下一篇Unix/Linux共享内存应用与陷阱

评论

帐  号: 密码: (新用户注册)
验 证 码:
表  情:
内  容:

·Redis on AWS:Elast (2025-12-27 04:19:30)
·在 Spring Boot 项目 (2025-12-27 04:19:27)
·使用华为开发者空间 (2025-12-27 04:19:24)
·Getting Started wit (2025-12-27 03:49:24)
·Ubuntu 上最好用的中 (2025-12-27 03:49:20)