小编sin*_*ika的帖子

使用 MinGW 编译 C 代码,但找不到 liblto_plugin-0.dll 错误?

我正在使用 MinGW 来编译 C 代码。但是当我给出命令“make”时,出现错误:gcc.exe:致命错误:-fuse-linker-plugin,但未找到 liblto_plugin-0.dll 编译终止。make: * [all] Error 1. 有人知道怎么解决吗?

c mingw compiler-errors mingw32

5
推荐指数
1
解决办法
7583
查看次数

为什么我的.c编码无法在GCC中编译?

我在c中有一个简单的代码:

#include <stdio.h>

main()
{
   printf(“Hello, world! /n”);
}
Run Code Online (Sandbox Code Playgroud)

但我无法在GCC中编译它.我尝试编译它时的警告:

 1. gcc hello.c -o hello
 2. hello.c: In function 'main:
 3. hello.c:4:1: error: stray '\342' in program
 4. hello.c:4:1: error: stray '\200' in program
 5. hello.c:4:1: error: stray '\234' in program
 6. hello.c:4:11: error: 'Hello' undeclared (first use in this function)
 7. hello.c:4:11: note: each undeclared identifier is reported only once for each function
    it appears in
 8. hello.c:4:18: error: 'world' undeclared (first use in this function)
 9. hello.c:4:23: error: …
Run Code Online (Sandbox Code Playgroud)

c gcc

3
推荐指数
1
解决办法
1201
查看次数

标签 统计

c ×2

compiler-errors ×1

gcc ×1

mingw ×1

mingw32 ×1