make file VPATH - Linux

By Tristan Cohan
at 2009-12-18T14:49
at 2009-12-18T14:49
Table of Contents
※ [本文轉錄自 C_and_CPP 看板]
作者: kiani () 看板: C_and_CPP
標題: [問題] make file VPATH
時間: Fri Dec 18 13:07:49 2009
大家好
我有個簡單的問題
我不知道為什麼我的 VPATH 沒有發生作用
簡單的 Makefile:
VPATH = src
run : a.cpp main.cpp
g++ -Wall -g a.cpp main.cpp -o run
資料夾
|
|------ main.cpp, Makefile
|
|
|------src/
|
|------ a.cpp
我執行 make
得到 g++: a.cpp: No such file or directory
請問問題可能會是??
感謝 @@
--
--
作者: kiani () 看板: C_and_CPP
標題: [問題] make file VPATH
時間: Fri Dec 18 13:07:49 2009
大家好
我有個簡單的問題
我不知道為什麼我的 VPATH 沒有發生作用
簡單的 Makefile:
VPATH = src
run : a.cpp main.cpp
g++ -Wall -g a.cpp main.cpp -o run
資料夾
|
|------ main.cpp, Makefile
|
|
|------src/
|
|------ a.cpp
我執行 make
得到 g++: a.cpp: No such file or directory
請問問題可能會是??
感謝 @@
--
--
Tags:
Linux
All Comments

By Ina
at 2009-12-21T23:54
at 2009-12-21T23:54

By Robert
at 2009-12-22T18:27
at 2009-12-22T18:27

By Joe
at 2009-12-27T10:54
at 2009-12-27T10:54
Related Posts
安裝EETI觸控面板Driver

By Ula
at 2009-12-18T13:23
at 2009-12-18T13:23
windows7下掛載ext3 會藍屏

By Mia
at 2009-12-18T12:05
at 2009-12-18T12:05
請推薦在Linux環境下Compile C code的書

By Callum
at 2009-12-18T11:51
at 2009-12-18T11:51
安裝EETI觸控面板Driver

By Joe
at 2009-12-18T11:03
at 2009-12-18T11:03
kill 不掉的 PID

By Victoria
at 2009-12-18T04:02
at 2009-12-18T04:02