不能运行 g++编译程序Ubuntu

Cannot run g++ compiled program Ubuntu

我创建了一个简单的程序

 #include <cstdio>

int main(){

    printf("Hello world!");

    return 0;
}

并在Ubuntu16.04上用CodeBlocks 13.12编译,成功

我正在尝试 运行 它从 bash 没有任何反应

我做错了什么?

test 是一个固有的 bash shell 命令,所以你调用的不是你的可执行程序。

要调用您自己的可执行文件 test 请参考其创建目录中的本地二进制文件。 ./test~/Programs/test/bin/Release/test.