-mkl –static

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:

  • 开发人员
  • Linux*
  • C/C++
  • Fortran
  • 中级
  • 英特尔® 数学核心函数库
  • -mkl –static
  • link error
  • cannot find -lpthread
  • cannot find -lm
  • undefined reference to ‘dgemm’
  • static linking
  • 开发工具
  • 订阅 -mkl –static