這句話的意思好像是,沒有所需要的main.o的目標(biāo)文件.
在WINAVR+AVR Studi里面 這個(gè)跟路徑的層數(shù)以及是否為中文名字有關(guān)系.
早上我在遇到過這個(gè)問題,把路徑的層數(shù)少點(diǎn),如D:\AVR GCC\test
我的問題就解決了,具體是為什么,我也不大清楚,希望可以幫到你.
vpath:make:*** No rule to make target `file1.h',needed by `main.o'.Stop.can you tell why?
vpath:make:*** No rule to make target `file1.h',needed by `main.o'.Stop.can you tell why?
makefile:
VPATH = %.h ./include
VPATH = %.c ./lib
CFLAGS = -I ./include
main :main.o print1.o print2.o
\x05gcc $(CFLAGS) -o main main.o print1.o print2.o
main.o :main.c file1.h file2.h
\x05gcc $(CFLAGS) -c main.c
print1.o :print1.c file1.h
\x05gcc $(CFLAGS) -c print1.c
print2.o :print2.c file2.h
\x05gcc $(CFLAGS) -c print2.c
clean :
\x05rm main main.o print1.o print2.o
the files of lib and include locate to /mylib/c/vpath?/(lib and include)
makefile:
VPATH = %.h ./include
VPATH = %.c ./lib
CFLAGS = -I ./include
main :main.o print1.o print2.o
\x05gcc $(CFLAGS) -o main main.o print1.o print2.o
main.o :main.c file1.h file2.h
\x05gcc $(CFLAGS) -c main.c
print1.o :print1.c file1.h
\x05gcc $(CFLAGS) -c print1.c
print2.o :print2.c file2.h
\x05gcc $(CFLAGS) -c print2.c
clean :
\x05rm main main.o print1.o print2.o
the files of lib and include locate to /mylib/c/vpath?/(lib and include)
英語人氣:647 ℃時(shí)間:2020-06-25 04:01:59
優(yōu)質(zhì)解答
我來回答
類似推薦
- make file 出錯(cuò) No rule to make target 'g++',needed by 'main'.Stop
- 關(guān)于 make it a rule to .
- You should make it a rule to leave things__you can find them
- 23 .You should make it a rule to leave things__you can find them
- 四通八達(dá)中“達(dá)”什么意思
- 天地不仁,以萬物為芻狗.
- 用血球計(jì)數(shù)板計(jì)算酵母細(xì)胞總數(shù):對稀釋100倍后的酵母菌懸液計(jì)數(shù),若80小格中細(xì)胞數(shù)
- 富者乞羊 譯文
- 高中數(shù)學(xué)課程中的“函數(shù)”的結(jié)構(gòu)脈絡(luò)
- 描寫水的優(yōu)美句子
- 試證明:對于任意大于4的合數(shù)p,(p-2)!能被p整除.或舉出反例.
- the monkey is( ) than the bear.A.thinner B.fatter C.thin
猜你喜歡
- 1世博會(huì)中國館的太陽能光伏發(fā)電系統(tǒng) 年均提供電能為1.08*10^13J,這意味著每年節(jié)約標(biāo)準(zhǔn)煤為( )噸(設(shè)標(biāo)準(zhǔn)煤完全燃燒,q煤=3.0*10^7J/kg)
- 2l理發(fā)師翻譯成英語
- 3在下列幾種現(xiàn)象中,系統(tǒng)動(dòng)量守恒的是
- 4王老師在新華書店購買了《童話精選》和《科學(xué)家的故事》一共花了116元,童話每本2
- 51 she also tried to teach him __ to be quiet because other people wanted to rest.A when B where
- 6求滿足條件:頂點(diǎn)在原點(diǎn),關(guān)于x軸對稱,并且經(jīng)過點(diǎn)M(2,-4)的拋物線的標(biāo)準(zhǔn)方程,并求出此拋物線的準(zhǔn)線方程.
- 7“鐵錘錘碗錘不碎”.這句話覺得荒謬的理由是什么?覺得有道理的理由是什么?
- 8如圖,已知直線L1平行L2,且L3和L1、L2分別交于A、B兩點(diǎn),點(diǎn)P在直線AB上.
- 9什么無間
- 10333分之33乘101怎樣簡便計(jì)算
- 11用總分總的形式寫一篇作文
- 121.What do you not like?還是What don't you like?Why do you not like?還是Why don't you like?