【发布时间】:2015-12-16 04:55:32
【问题描述】:
当我使用众所周知的 hello world 脚本时。我终于把所有东西都准备好了并修复了所有错误但是当我编译这个新错误时弹出告诉我这个 /bin/sh: 1: ./a.out: not found.
对于 hello.ccp 文件,我的脚本如下所示:
#include <iostream>
int main()
{
std::cout << "Hello World!\n";
return 0;
}
而我的 makefile 看起来像这样:
hello.ccp:
g++ -std=gnu++11 hello.cpp
有什么想法吗?非常感谢!
【问题讨论】:
-
我猜你的 makefile 不止于此。您如何尝试运行该程序?
-
谢谢,我修复了 makefile 的问题,但有一个新错误:makefile:1: *** target pattern contains no '%'。停止。
标签: c++ compilation makefile g++