undefined reference to ‘dgemm’

Link Error When Static Linking to Intel® MKL on Linux 6

Problem

Compiling with “-mkl –static” causes a linker error on Red Hat EL 6.x while the same compilation on RHEL 5.x works correctly. Here are the commands to reproduce the problem:

  • Sviluppatori
  • Linux*
  • C/C++
  • Fortran
  • Intermedio
  • Intel® Math Kernel Library
  • -mkl –static
  • link error
  • cannot find -lpthread
  • cannot find -lm
  • undefined reference to ‘dgemm’
  • static linking
  • Strumenti di sviluppo
  • Iscriversi a undefined reference to ‘dgemm’