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!\n");
}
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

相关内容