CentOS Stream 9—— C/C++ gcc(c/c++编译器安装)

sudo su
yum groupinstall 'Development Tools'
yum install ccache
vim helloworld.cpp
#include <iostream>
using namespace std;
int main()
{
    std::cout << "Hello world" << std::endl;
    return 0;
}
ccache g++ helloworld.cpp -o helloworld
./helloworld

 

posted @ 2024-04-22 11:33  echo-efun  阅读(517)  评论(0)    收藏  举报