fortran – Missing FFTW library (rfftwnd_f77)
I am having the error below when trying to compile my fortran code:
ifx: warning #10315: specifying -lm before files may supersede the Intel(R) math library and affect performance`
/scratch/tacc/apps/gcc/13.2.0/bin/ld: obj/convec.o: in function `rfftwnd_f77_one_real_to_complex_.t897p.t898p.t899p':
t.convec.f90:(.text+0x2446): undefined reference to `rfftwnd_f77_one_real_to_complex_'
/scratch/tacc/apps/gcc/13.2.0/bin/ld: obj/convec.o: in function `rfftwnd_f77_one_real_to_complex_.t908p.t909p.t910p':
t.convec.f90:(.text+0x2466): undefined reference to `rfftwnd_f77_one_real_to_complex_'
/scratch/tacc/apps/gcc/13.2.0/bin/ld: obj/convec.o: in function `rfftwnd_f77_one_real_to_complex_.t919p.t920p.t921p':
t.convec.f90:(.text+0x2486): undefined reference to `rfftwnd_f77_one_real_to_complex_'
/scratch/tacc/apps/gcc/13.2.0/bin/ld: obj/convec.o: in function `rfftwnd_f77_one_complex_to_real_.t957p.t958p.t959p':
t.convec.f90:(.text+0x2506): undefined reference to `rfftwnd_f77_one_complex_to_real_'
/scratch/tacc/apps/gcc/13.2.0/bin/ld: obj/convec.o: in function `rfftwnd_f77_one_complex_to_real_.t968p.t969p.t970p':
t.convec.f90:(.text+0x2526): undefined reference to `rfftwnd_f77_one_complex_to_real_'
/scratch/tacc/apps/gcc/13.2.0/bin/ld: obj/convec.o: in function `rfftwnd_f77_one_complex_to_real_.t979p.t980p.t981p':
t.convec.f90:(.text+0x2546): undefined reference to `rfftwnd_f77_one_complex_to_real_'
I have attached a picture of my makefile below
Read more here: Source link
