Welcome 微信登录
编程资源 图片资源库 蚂蚁家优选 PDF转换器

首页 / 操作系统 / Linux / Linux系统调用函数

#include <stdio.h>
#include <fcntl.h>
#include <sys/types.h>
#include <stdlib.h>
#include <sys/stat.h>
int main(int argc,char *argv[]){
int i;
if(argc<2){
printf("error! ");
}
for(i=1;i<argc;i++){
create(argv[i],0755);
}}使用gcc test.c -o test提示一下错误,想问的是,对于Linux库函数create还需要做什么样的特殊操作吗?test.c:(.text+0x4b): undefined reference to `create"
collect2: ld returned 1 exit status