我有一个用于上一个程序的简单 Makefile。然而,在这个当前程序中,我使用的是 C++11 功能,并且可以使用 编译我的程序g++47 -std=c++0x test_list.cpp
,但是当我在 Makefile 中使用它时,会带来大量错误。
文件:test_list.cpp
, List.cpp
,List.h
生成文件:
proj2: test_list.o test_list.cpp List.h List.cpp
g++47 -std=c++0x test_list.cpp -g -Wall -o proj2.x
clean:
rm -rf *o proj2
然后我做:make
它编译成大量错误。