|
发表于 2017-2-18 10:58:33
|
显示全部楼层
请教:
- --------------------配置: mingw5 - CUI Debug, 编译器类型: MinGW--------------------
- 检查文件依赖性...
- 正在编译 E:\文档\C-Free\Projects\FlshC_S1\e2\test.cpp...
- 正在连接...
- E:\文档\C-Free\Projects\FlshC_S1\mingw5\test.o: In function `main':
- E:/文档/C-Free/Projects/FlshC_S1/e2/test.cpp:91: multiple definition of `main'
- E:\文档\C-Free\Projects\FlshC_S1\mingw5\hello.o:E:/文档/C-Free/Projects/FlshC_S1/e1/hello.cpp:4: first defined here
- collect2: ld returned 1 exit status
- [Error] E:\文档\C-Free\Projects\FlshC_S1\e2\test.cpp:91: multiple definition of `main'
- [Error] E:\文档\C-Free\Projects\FlshC_S1\mingw5\hello.o:E:\文档\C-Free\Projects\FlshC_S1\e1\hello.cpp:4: first defined here
- [Error] collect2: ld returned 1 exit status
- 构建中止 FlshC_S1: 3 个错误, 0 个警告
复制代码
main处哪里出错了? |
|