尝试编译时
#include<stdio.h>
int main(){
printf("Hello World");
return 0;
}
我在 Solaris11 gcc 中遇到以下错误:
hello.c:4:23: 错误:';' 之前的预期表达式 token
hello.c:6:1: 错误:应为 ';'在 '}' 标记之前
Visual C++ 可以编译这段代码。
最佳答案
第四行(return
语句)中的“;”不是标准的“;”。
关于c - gcc c 编译错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42921432/