Problem
You might experience error messages featuring the text undefined reference
when compiling a program, as in the example below with the FFTW library:
undefined reference to fftw_malloc
Solution
Your configure script is likely not picking up the corresponding library: please, examine the configure log to see where it fails.
Suggested actions:
- Use the command
module show cray-fftw
to print the version and paths of the modulecray-fftw
, in case you need to add them manually during configuration - Make sure that you invoke the Cray wrapper (
cc
,CC
orftn
) in the process: it should link the library automatically, if the corresponding modulecray-fftw
is loaded
Please visit the section Code Compilation of the User Portal for more details.