gusssss 发表于 2022-2-16 12:06:32

codeblocks玩出问题了

||=== Build file: "no target" in "no project" (compiler: unknown) ===|
||Error: Could not find abbrev number 3926.|
multiple definition of `WinMainCRTStartup'|
first defined here|
multiple definition of `mainCRTStartup'|
first defined here|
multiple definition of `atexit'|
first defined here|
multiple definition of `__gcc_register_frame'|
first defined here|
multiple definition of `__gcc_deregister_frame'|
first defined here|
error: ld returned 1 exit status|
Build failed: 12 error(s), 0 warning(s) (0 minute(s), 0 second(s)) ===|

之前可以单独编译任何一个文件的,现在只能编译运行项目里的文件,其他文件就会报错,如上,有大佬能帮我解释下吗??

凉白开-菜鸟 发表于 2022-2-16 15:44:42

codeblocks 新建c++文件出现编译错误:
是因为要按照新建项目的方式,而不是 新建文件。

gusssss 发表于 2022-2-17 11:27:02

凉白开-菜鸟 发表于 2022-2-16 15:44
codeblocks 新建c++文件出现编译错误:
是因为要按照新建项目的方式,而不是 新建文件。

感谢
页: [1]
查看完整版本: codeblocks玩出问题了