(.text+0x1b): undefined reference to `main‘

使用vscode Linux g++编译出现

/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/11/../../../x86_64-linux-gnu/Scrt1.o: in function `_start':
(.text+0x1b): undefined reference to `main'
collect2: error: ld returned 1 exit status
make: *** [makefile:3: put] Error 1

一定记得点保存!!!!!!!!!!!!

你可能感兴趣的:(c++,linux,服务器)