cannot find -lm

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


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:

  • Développeurs
  • Linux*
  • C/C++
  • Fortran
  • Intermédiaire
  • Bibliothèque Intel® Math Kernel Library
  • -mkl –static
  • link error
  • cannot find -lpthread
  • cannot find -lm
  • undefined reference to ‘dgemm’
  • static linking
  • Outils de développement
  • S’abonner à cannot find -lm