0
我正在嘗試編譯一個測試程序來測試我的fftw實現。我已經構建並安裝了fftw,如教程中所述,並使用./configure g77 = gfortran將我的編譯器配置爲gfortran。我在Ubuntu 13.10上。不存在include目錄「/ opt/local/include」fftw
這裏是我的makefile:
INCLUDES=-I. -I/opt/local/include
fftwTest: fftwTest.f90
gfortran $^ $(INCLUDES) -O3 -fbounds-check -l fftw3 -L /usr/local/lib -o [email protected]
這裏是程序本身:
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 警告:不存在include目錄「/ opt/local/include」 fftwTest.f90:4:錯誤:無法打開包含文件 'fftw3.f03' 化妝:* [fftwTest]錯誤1