【发布时间】:2013-12-17 04:00:06
【问题描述】:
我正在尝试编译一个测试程序来测试我的 fftw 实现。我已经按照教程中的描述构建并安装了 fftw,并使用 ./configure g77=gfortran 将我的编译器配置为 gfortran。我在 Ubuntu 13.10 上。
这是我的生成文件:
INCLUDES=-I. -I/opt/local/include
fftwTest: fftwTest.f90
gfortran $^ $(INCLUDES) -O3 -fbounds-check -l fftw3 -L /usr/local/lib -o $@
这是程序本身:
program fftwTest
implicit none
include 'fftw3.f'
double complex in, out
dimension in(N), out(N)
integer*8 plan
call fftw_f77_create_plan(plan,N,FFTW_FORWARD,FFTW_ESTIMATE)
call fftw_f77_one(plan,in,out)
call fftw_f77_destroy_plan(plan)
end program fftwTest
当我做 fftwTest 时,这是我得到的错误:
gfortran fftwTest.f90 -I. -I/opt/local/include -O3 -fbounds-check -l fftw3 -L /usr/local/lib -o fftwTest
Warning: Nonexistent include directory "/opt/local/include"
fftwTest.f90:4: Error: Can't open included file 'fftw3.f03'
make: *** [fftwTest] Error 1
【问题讨论】: