- 论坛徽章:
- 0
|
直接make:
[root@4-401-Server html]# make
g++ -Wall -o2 -Wno-deprecated -I../util -I../BUILD -c test.cpp -o test.o
test.cpp:2: syntax error before `:' token
make: *** [test.o] Error 1
-------------------------- 法二 --------------------------------------------
[root@4-401-Server html]# make >; t
test.cpp:2: syntax error before `:' token
make: *** [test.o] Error 1
[root@4-401-Server html]# vi t
g++ -Wall -o2 -Wno-deprecated -I../util -I../BUILD -c test.cpp -o test.o
程序我是三顾意写错的,为什么 t 不能取到 make 的错误信息:
test.cpp:2: syntax error before `:' token
make: *** [test.o] Error 1
而只是有
g++ -Wall -o2 -Wno-deprecated -I../util -I../BUILD -c test.cpp -o test.o
不解,敬请大家告知,thx~~ |
|