- 论坛徽章:
- 0
|
我有个多文件程序 main.cpp coalescent.cpp transition.cpp math_functions.cpp test.cpp , parameters.h node.h random.h
写了一个Makefile, 但运行的时候总是出错, 我刚开始学makefile, 求救于各位了!!!
# ----------------------------------------------- #
# This is the Makefile for Xi coalescent program. #
# ----------------------------------------------- #
program: main.o test.o coalescent.o transition.o math_functions.o
g++ -o program main.o test.o coalescent.o transition.o math_functions.o
main.o: main.cpp parameters.h node.h
g++ -c main.cpp
test.o: test.cpp parameters.h node.h
g++ -c test.cpp
coalescent.o: coalescent.cpp parameters.h node.h
g++ -c coalescent.cpp
transition.o: transition.cpp parameters.h
g++ -c transition.cpp
math_functions.o: math_functions.cpp random.h
g++ -c math_functions.cpp
# End of Makefile
出错信息是:
make: Fatal error in reader: Makefile, line 5: Unexpected end of line seen |
|