Re: [问题] 关于package_src的.a档

楼主: sexjim (sexjim)   2011-05-31 15:37:56
这是更动过之后的makefile
ARFLAGS := rcv
AR := ar
default: lib //这行是多加的
$(OBJ_FILES)
@$(CXX) $(CXXFLAGS) $(OBJ_FILES) -o $(TARGET)
@echo " LD $(TARGET)"
lib: libcircuit.a
libcircuit.a: $(OBJ_FILES)
$(AR) $(ARFLAGS) libcircuit.a $(OBJ_FILES)
厄..不知道问题出在哪边,麻烦助教了~"~
sajim@ubuntu:~/桌面/PA4/package_src/Circuit$ make
YACC src/circuit/readVlog/readVlogYacc.y ->
src/circuit/readVlog/readVlogYacc.c
make: bison: Command not found
LEX src/circuit/readVlog/readVlogLex.l ->
src/circuit/readVlog/readVlogLex.c
make: flex: Command not found
YACC src/circuit/readVlog/readVlogYacc.y ->
src/circuit/readVlog/readVlogYacc.c
make: bison: Command not found
LEX src/circuit/readVlog/readVlogLex.l ->
src/circuit/readVlog/readVlogLex.c
make: flex: Command not found
CXX src/main.cpp -> obj/main.o
CXX src/circuit/circuit.cpp -> obj/circuit.o
CXX src/circuit/gate.cpp -> obj/gate.o
CXX src/circuit/net.cpp -> obj/net.o
这个是我执行完make的画面~
作者: pg30123 (CKu.none | PG)   2011-05-31 15:49:00
你冒号后面有用tab吗?执行的log?
楼主: sexjim (sexjim)   2011-05-31 15:56:00
冒号后是指libcircuit.a:下面那一行吗?那边有tab像lib:旁边是用空白再加上libcircuit.a
作者: pg30123 (CKu.none | PG)   2011-05-31 16:07:00
你没灌lex和yacc .... comamnd not found..*command
楼主: sexjim (sexjim)   2011-05-31 16:24:00
我有把flex跟bison这两个东西载下来但一直不知道怎么用...
作者: georgemouse (乔治鼠)   2011-05-31 18:01:00
sudo apt-get install这两样就OK了
作者: AlexCYW (AlexCYW)   2011-05-31 20:13:00
看这一串讨论就觉得幸好我没去改lib
作者: a3785lexx (Alex)   2011-05-31 20:16:00
不过不是建议即使没改还是要写makefile一起compile吗?

Links booklink

Contact Us: admin [ a t ] ucptt.com