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:
  1. Use the command module show cray-fftw to print the version and paths of the module cray-fftw, in case you need to add them manually during configuration
  2. Make sure that you invoke the Cray wrapper (cc, CC or ftn) in the process: it should link the library automatically, if the corresponding module cray-fftw is loaded

Please visit the section Code Compilation of the User Portal for more details.