写了一段学习typedef的代码,在没有main函数的情况下 编译执行,遇到了如下信息:
/usr/bin/ld: /usr/lib/x86_64-linux-gnu/crt1.o: in function `_start':
(.text+0x20): undefined reference to `main'
clang-14: error: linker command failed with exit code 1 (use -v to see invocation)
参考学习:C语言typedef的用法_LtMamba的博客-CSDN博客
然后莫名其妙的读了如下两个博客:
Linux下使用gcc编译时出现In function `_start':(.text+0x**) :分析与解决_in function '_start_xiaosanxian的博客-CSDN博客
主函数main和程序入口_start_c语言start函数_Freestyle Coding的博客-CSDN博客
下图出自博主:Freestyle Coding的博客_CSDN博客-NASM汇编,机器视觉,C语言低层领域博主
看不懂,就假装在看懂吧