我尝试在Google Compute Engine中的VM实例上编译C ++代码
g ++ -std = c ++ 11 test.cpp -o output
它说 bash:g ++:command not found
我无法为此问题找到任何正确的资源。
答案 0 :(得分:1)
“ sudo apt-get install build-essential”将在您的gcloud上安装最新版本的c ++。我要做的另一种修改是“ g ++ test.cpp -o输出”将很适合运行。让我们知道怎么回事。