level 2
* 正在执行任务: C:/Windows/System32/cmd.exe /d /c gcc -Wall -Wextra -Wpedantic -Wshadow -Wformat=2 -Wcast-align -Wconversion -Wsign-conversion -Wnull-dereference -g3 -O0 -c d:\workplace\c\demo.c -o .\build\Debug\demo.o && gcc -Wall -Wextra -Wpedantic -Wshadow -Wformat=2 -Wcast-align -Wconversion -Wsign-conversion -Wnull-dereference -g3 -O0 -c d:\workplace\c\hello.c -o .\build\Debug\hello.o && gcc -Wall -Wextra -Wpedantic -Wshadow -Wformat=2 -Wcast-align -Wconversion -Wsign-conversion -Wnull-dereference -g3 -O0 .\build\Debug\demo.o .\build\Debug\hello.o -o .\build\Debug\outDebug.exe
.\build\Debug\hello.o: In function `main':
d:/workplace/c/hello.c:2: multiple definition of `main'
.\build\Debug\demo.o:d:/workplace/c/demo.c:2: first defined here
collect2.exe: error: ld returned 1 exit status
* 终端进程“C:\Windows\System32\cmd.exe '/d', '/c', 'gcc -Wall -Wextra -Wpedantic -Wshadow -Wformat=2 -Wcast-align -Wconversion -Wsign-conversion -Wnull-dereference -g3 -O0 -c d:\workplace\c\demo.c -o .\build\Debug\demo.o && gcc -Wall -Wextra -Wpedantic -Wshadow -Wformat=2 -Wcast-align -Wconversion -Wsign-conversion -Wnull-dereference -g3 -O0 -c d:\workplace\c\hello.c -o .\build\Debug\hello.o && gcc -Wall -Wextra -Wpedantic -Wshadow -Wformat=2 -Wcast-align -Wconversion -Wsign-conversion -Wnull-dereference -g3 -O0 .\build\Debug\demo.o .\build\Debug\hello.o -o .\build\Debug\outDebug.exe'”已终止,退出代码: 1。
2024年08月15日 03点08分
4