破烂弟 发表于 2014-8-31 16:53 楼上应该解决了我的问题,谢谢啊。 |
楚香饭 发表于 2014-8-31 16:40 谢谢啊,剩下自己慢慢改。 |
|
1、文件“csv_file_1d.f90"与"csv_file_2d.f90"是什么文件?Makefile中么有提到。 2、libifcoremdd.lib文件的路径,列出来,看在path中么? |
| 这些都是常规代码错误,一个一个改吧 |
| 你试试把所有的 *.f95 扩展名改为 .f90 扩展名,重新添加到工程里 |
|
你是要换到 windows 上的 ivf 来编译吗? 把你的工程截个图吧。 |
|
错误是: error LNK2019: unresolved external symbol _MAIN__ referenced in function _main libifcoremdd.lib(for_main.obj) makefile是 [Make] syntaxhighlighter_viewsource syntaxhighlighter_copycode FF = gfortran
FFLAGS = -g -Wall
LIBS = -llapack
all: main clean
main: main.o calibrate.o function_callers.o functions.o rw.o csv_file.o numerical_jacobian.o newtons_method.o globals.o
$(FF) -o main main.o calibrate.o function_callers.o functions.o rw.o csv_file.o numerical_jacobian.o newtons_method.o globals.o $(FFLAGS) $(LIBS)
main.o: main.f95 globals.o rw.o calibrate.o
$(FF) -c $< $(FFLAGS)
calibrate.o: calibrate.f95 globals.o
$(FF) -c $< $(FFLAGS)
function_callers.o: function_callers.f95 globals.o functions.o
$(FF) -c $< $(FFLAGS)
functions.o: functions.f95 globals.o
$(FF) -c $< $(FFLAGS)
inverse.o: inverse.f95 globals.o
$(FF) -c $< $(FFLAGS)
numerical_jacobian.o: numerical_jacobian.f95 globals.o
$(FF) -c $< $(FFLAGS)
newtons_method.o: newtons_method.f95 globals.o
$(FF) -c $< $(FFLAGS)
rw.o: rw.f95 globals.o csv_file.o
$(FF) -c $< $(FFLAGS)
csv_file.o: csv_file.f90
$(FF) -c $< $(FFLAGS)
globals.o: globals.f95
$(FF) -c $< $(FFLAGS)
clean:
rm *.o
rm *.mod |
捐赠本站|Archiver|关于我们 About Us|小黑屋|Fcode ( 京ICP备18005632-2号 )
GMT+8, 2025-11-3 07:19