不得已,搜遍网络无法解决gcc在ubuntu上编译的问题
gcc吧
全部回复
仅看楼主
level 1
GoTone_10086 楼主
命令行输入 gcc hello.c
提示错误:
fatal error: as: unknown host architecture (can't determine which assembler to run)
无法编译问题,有大神帮忙一下
hello.c的文件内容
#include <stdio.h>
int main()
{
printf ("Hello World!\n");
return 0;
}
2021年08月17日 09点08分 1
level 1
using namespace std;
2022年01月06日 15点01分 2
命令改成g++ hello.c试试
2022年01月06日 15点01分
c程序用gcc没问题
2023年08月07日 02点08分
这里编译结束了,指令都有了,报错在汇编器
2023年08月07日 02点08分
1