编译器错误:体系结构x86_64的未定义符号

时间:2019-12-04 12:41:54

标签: c macos visual-studio gcc

#include<stdio.h>
int main(void) {
    return 0;
}

环境:mac和visual studio代码

命令:gcc kk.c -o kk && ./kk

Undefined symbols for architecture x86_64:
  "_main", referenced from:
     implicit entry/start for main executable
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

0 个答案:

没有答案