如何使用 Mingw-w64 和 Intel MKL 编译 MATLAB MEX 文件

问题描述

请有经验的人帮助我完成上述崇高的目标吗?

经过这么多小时(而不是几天)和尝试和搜索互联网的方式,我的挫败感已经累积,我决定求助于 SO 社区。我希望一个有效的解决方案也能帮助其他人在这种情况下。

我的设置:

  • Windows 10
  • MATLAB R2019b
    • 英特尔 MKL 用于在 MATLAB 中调用已编译的 mex 文件,此特定版本的 MATLAB 使用:
      • 'Intel(R) Math Kernel Library Version 2018.0.3 Product Build 20180406 for Intel(R) 64 Architecture Applications,CNR branch AVX'
  • 用于 mex 文件编译的 MinGW64 编译器 (C++),更准确地说:
    • x86_64-6.3.0-posix-seh-rt_v5-rev
  • 两个源cpp文件
    • 虽然它们现在不重要,但问题不在这里。 (仅供参考:这些文件可以使用 OpenBLAS 正确编译,但这超出了范围。)

我尝试使用 MATLAB 中的内置 mex 命令并链接正确的英特尔 MKL 库,如下所示;但是,我不介意使用任何其他设置进行编译。我必须遵守的唯一限制是留在 Windows 10 平台上。

mex -g -DMKL_ILP64 '-IC:\Program Files (x86)\IntelSWTools\compilers_and_libraries_2018.2.185\windows\mkl\include' '-LC:\Program Files (x86)\IntelSWTools\compilers_and_libraries_2018.2.185\windows\mkl\lib\intel64_win' main.cpp sub.cpp -lmkl_intel_ilp64.lib -lmkl_sequential.lib -lmkl_core.lib

尝试编译会导致许多错误消息,如底部所示。这只是原始错误消息的截断版本,否则它会超出 SO 对每个问题允许的字符长度的限制。

大多数错误要么是undefined references要么是

__security_check_cookie

__GSHandlerCheck

我非常感谢任何帮助、提示或建议。提前致谢。

Building with 'MinGW64 Compiler (C++)'.
Error using mex
Warning: .drectve `-defaultlib:"uuid.lib" ' unrecognized
Warning: corrupt .drectve at end of def file
Warning: .drectve `-defaultlib:"uuid.lib" ' unrecognized
Warning: corrupt .drectve at end of def file
Warning: .drectve `-defaultlib:"uuid.lib" ' unrecognized
Warning: corrupt .drectve at end of def file
Warning: .drectve `-defaultlib:"uuid.lib" ' unrecognized
Warning: corrupt .drectve at end of def file
Warning: .drectve `-defaultlib:"uuid.lib" ' unrecognized
Warning: corrupt .drectve at end of def file
Warning: .drectve `-defaultlib:"uuid.lib" ' unrecognized
Warning: corrupt .drectve at end of def file
Warning: .drectve `-defaultlib:"uuid.lib" ' unrecognized
Warning: corrupt .drectve at end of def file
Warning: .drectve `-defaultlib:"uuid.lib" ' unrecognized
Warning: corrupt .drectve at end of def file
Warning: .drectve `-defaultlib:"uuid.lib" ' unrecognized
Warning: corrupt .drectve at end of def file
Warning: .drectve `-defaultlib:"uuid.lib" ' unrecognized
Warning: corrupt .drectve at end of def file
Warning: .drectve `-defaultlib:"uuid.lib" ' unrecognized
Warning: corrupt .drectve at end of def file
Warning: .drectve `-defaultlib:"uuid.lib" ' unrecognized
Warning: corrupt .drectve at end of def file
Warning: .drectve `-defaultlib:"uuid.lib" ' unrecognized
Warning: corrupt .drectve at end of def file
C:\Program Files (x86)\IntelSWTools\compilers_and_libraries_2018.2.185\windows\mkl\lib\intel64_win\mkl_intel_ilp64.lib(_dgemm.obj):(.text[dgemm]+0x194): undefined reference to
`__security_check_cookie'
C:\Program Files (x86)\IntelSWTools\compilers_and_libraries_2018.2.185\windows\mkl\lib\intel64_win\mkl_intel_ilp64.lib(_dgemm.obj):(.text[dgemm]+0x2a0): undefined reference to
`__security_check_cookie'
C:\Program Files (x86)\IntelSWTools\compilers_and_libraries_2018.2.185\windows\mkl\lib\intel64_win\mkl_intel_ilp64.lib(_dgemm.obj):(.xdata+0x1c): undefined reference to `__GSHandlerCheck'
C:\Program Files (x86)\IntelSWTools\compilers_and_libraries_2018.2.185\windows\mkl\lib\intel64_win\mkl_intel_ilp64.lib(_dgemm.obj):(.xdata+0x3c): undefined reference to `__GSHandlerCheck'
C:\Program Files (x86)\IntelSWTools\compilers_and_libraries_2018.2.185\windows\mkl\lib\intel64_win\mkl_intel_ilp64.lib(_dsyrk.obj):(.text[dsyrk]+0x14c): undefined reference to
`__security_check_cookie'
C:\Program Files (x86)\IntelSWTools\compilers_and_libraries_2018.2.185\windows\mkl\lib\intel64_win\mkl_intel_ilp64.lib(_dsyrk.obj):(.text[dsyrk]+0x215): undefined reference to
`__security_check_cookie'
C:\Program Files (x86)\IntelSWTools\compilers_and_libraries_2018.2.185\windows\mkl\lib\intel64_win\mkl_intel_ilp64.lib(_dsyrk.obj):(.xdata+0x1c): undefined reference to `__GSHandlerCheck'
C:\Program Files (x86)\IntelSWTools\compilers_and_libraries_2018.2.185\windows\mkl\lib\intel64_win\mkl_intel_ilp64.lib(_dsyrk.obj):(.xdata+0x3c): undefined reference to `__GSHandlerCheck'
C:\Program Files (x86)\IntelSWTools\compilers_and_libraries_2018.2.185\windows\mkl\lib\intel64_win\mkl_intel_ilp64.lib(_ddot.obj):(.text[ddot]+0x63): undefined reference to
`__security_check_cookie'
C:\Program Files (x86)\IntelSWTools\compilers_and_libraries_2018.2.185\windows\mkl\lib\intel64_win\mkl_intel_ilp64.lib(_ddot.obj):(.text[ddot]+0x125): undefined reference to
`__security_check_cookie'
C:\Program Files (x86)\IntelSWTools\compilers_and_libraries_2018.2.185\windows\mkl\lib\intel64_win\mkl_intel_ilp64.lib(_ddot.obj):(.xdata+0x8): undefined reference to `__GSHandlerCheck'
C:\Program Files (x86)\IntelSWTools\compilers_and_libraries_2018.2.185\windows\mkl\lib\intel64_win\mkl_intel_ilp64.lib(_ddot.obj):(.xdata+0x30): undefined reference to `__GSHandlerCheck'
C:\Program Files (x86)\IntelSWTools\compilers_and_libraries_2018.2.185\windows\mkl\lib\intel64_win\mkl_intel_ilp64.lib(_dgemv.obj):(.text[dgemv]+0x15b): undefined reference to
`__security_check_cookie'
C:\Program Files (x86)\IntelSWTools\compilers_and_libraries_2018.2.185\windows\mkl\lib\intel64_win\mkl_intel_ilp64.lib(_dgemv.obj):(.text[dgemv]+0x248): undefined reference to
`__security_check_cookie'
C:\Program Files (x86)\IntelSWTools\compilers_and_libraries_2018.2.185\windows\mkl\lib\intel64_win\mkl_intel_ilp64.lib(_dgemv.obj):(.xdata+0x1c): undefined reference to `__GSHandlerCheck'
C:\Program Files (x86)\IntelSWTools\compilers_and_libraries_2018.2.185\windows\mkl\lib\intel64_win\mkl_intel_ilp64.lib(_dgemv.obj):(.xdata+0x3c): undefined reference to `__GSHandlerCheck'
C:\Program Files (x86)\IntelSWTools\compilers_and_libraries_2018.2.185\windows\mkl\lib\intel64_win\mkl_intel_ilp64.lib(_dgetrf.obj):(.text[dgetrf]+0xe0): undefined reference to
`__security_check_cookie'
C:\Program Files (x86)\IntelSWTools\compilers_and_libraries_2018.2.185\windows\mkl\lib\intel64_win\mkl_intel_ilp64.lib(_dgetrf.obj):(.xdata+0x1c): undefined reference to `__GSHandlerCheck'
C:\Program Files (x86)\IntelSWTools\compilers_and_libraries_2018.2.185\windows\mkl\lib\intel64_win\mkl_intel_ilp64.lib(_dpotrf.obj):(.text[dpotrf]+0xdc): undefined reference to
`__security_check_cookie'
C:\Program Files (x86)\IntelSWTools\compilers_and_libraries_2018.2.185\windows\mkl\lib\intel64_win\mkl_intel_ilp64.lib(_dpotrf.obj):(.xdata+0x18): undefined reference to `__GSHandlerCheck'
C:\Program Files (x86)\IntelSWTools\compilers_and_libraries_2018.2.185\windows\mkl\lib\intel64_win\mkl_intel_ilp64.lib(_dgesv.obj):(.text[dgesv]+0xc5): undefined reference to
`__security_check_cookie'
C:\Program Files (x86)\IntelSWTools\compilers_and_libraries_2018.2.185\windows\mkl\lib\intel64_win\mkl_intel_ilp64.lib(_dgesv.obj):(.xdata+0x1c): undefined reference to `__GSHandlerCheck'
C:\Program Files (x86)\IntelSWTools\compilers_and_libraries_2018.2.185\windows\mkl\lib\intel64_win\mkl_intel_ilp64.lib(_dgetri.obj):(.text[dgetri]+0xb9): undefined reference to
`__security_check_cookie'
C:\Program Files (x86)\IntelSWTools\compilers_and_libraries_2018.2.185\windows\mkl\lib\intel64_win\mkl_intel_ilp64.lib(_dgetri.obj):(.xdata+0x1c): undefined reference to `__GSHandlerCheck'
C:\Program Files (x86)\IntelSWTools\compilers_and_libraries_2018.2.185\windows\mkl\lib\intel64_win\mkl_intel_ilp64.lib(_dpotri.obj):(.text[dpotri]+0xa7): undefined reference to
`__security_check_cookie'
C:\Program Files (x86)\IntelSWTools\compilers_and_libraries_2018.2.185\windows\mkl\lib\intel64_win\mkl_intel_ilp64.lib(_dpotri.obj):(.xdata+0x18): undefined reference to `__GSHandlerCheck'
C:\Program Files (x86)\IntelSWTools\compilers_and_libraries_2018.2.185\windows\mkl\lib\intel64_win\mkl_intel_ilp64.lib(_dtrtri.obj):(.text[dtrtri]+0xb4): undefined reference to
`__security_check_cookie'
C:\Program Files (x86)\IntelSWTools\compilers_and_libraries_2018.2.185\windows\mkl\lib\intel64_win\mkl_intel_ilp64.lib(_dtrtri.obj):(.xdata+0x1c): undefined reference to `__GSHandlerCheck'
C:\Program Files
(x86)\IntelSWTools\compilers_and_libraries_2018.2.185\windows\mkl\lib\intel64_win\mkl_sequential.lib(mkl_print_verbose_omp_no_patched.obj):(.text[mkl_serv_print_verbose_info]+0x36b):
undefined reference to `__security_check_cookie'
C:\Program Files (x86)\IntelSWTools\compilers_and_libraries_2018.2.185\windows\mkl\lib\intel64_win\mkl_sequential.lib(mkl_print_verbose_omp_no_patched.obj):(.xdata+0x18): undefined
reference to `__GSHandlerCheck'
C:\Program Files (x86)\IntelSWTools\compilers_and_libraries_2018.2.185\windows\mkl\lib\intel64_win\mkl_sequential.lib(mkl_threading_omp_no_patched.obj):(.text[mkl_read_threads_env]+0x612):
undefined reference to `__security_check_cookie'
C:\Program Files (x86)\IntelSWTools\compilers_and_libraries_2018.2.185\windows\mkl\lib\intel64_win\mkl_sequential.lib(mkl_threading_omp_no_patched.obj):(.xdata+0x10): undefined reference to
`__GSHandlerCheck'
C:\Program Files
(x86)\IntelSWTools\compilers_and_libraries_2018.2.185\windows\mkl\lib\intel64_win\mkl_sequential.lib(mkl_threading_omp_no_patched.obj):(.text[count_cores_impl_win32_or_ver_6_0_or_less]+0x12):
undefined reference to `__chkstk'
C:\Program Files
(x86)\IntelSWTools\compilers_and_libraries_2018.2.185\windows\mkl\lib\intel64_win\mkl_sequential.lib(mkl_threading_omp_no_patched.obj):(.text[count_cores_impl_win32_or_ver_6_0_or_less]+0x860):
undefined reference to `__security_check_cookie'
C:\Program Files (x86)\IntelSWTools\compilers_and_libraries_2018.2.185\windows\mkl\lib\intel64_win\mkl_sequential.lib(mkl_threading_omp_no_patched.obj):(.xdata+0x18): undefined reference to
`__GSHandlerCheck'
C:\Program Files (x86)\IntelSWTools\compilers_and_libraries_2018.2.185\windows\mkl\lib\intel64_win\mkl_sequential.lib(mkl_threading_omp_no_patched.obj):(.text[mkl_serv_mpi_get_ppn]+0xaf):
undefined reference to `__security_check_cookie'
C:\Program Files (x86)\IntelSWTools\compilers_and_libraries_2018.2.185\windows\mkl\lib\intel64_win\mkl_sequential.lib(mkl_threading_omp_no_patched.obj):(.xdata+0x8): undefined reference to
`__GSHandlerCheck'
C:\Program Files (x86)\IntelSWTools\compilers_and_libraries_2018.2.185\windows\mkl\lib\intel64_win\mkl_sequential.lib(mkl_threading_omp_no_patched.obj):(.text[mkl_serv_get_ncpus]+0x12):
undefined reference to `__chkstk'
C:\Program Files (x86)\IntelSWTools\compilers_and_libraries_2018.2.185\windows\mkl\lib\intel64_win\mkl_sequential.lib(mkl_threading_omp_no_patched.obj):(.text[mkl_serv_get_ncpus]+0x11d1):
undefined reference to `__security_check_cookie'
C:\Program Files (x86)\IntelSWTools\compilers_and_libraries_2018.2.185\windows\mkl\lib\intel64_win\mkl_sequential.lib(mkl_threading_omp_no_patched.obj):(.xdata+0x1c): undefined reference to
`__GSHandlerCheck'
C:\Program Files
(x86)\IntelSWTools\compilers_and_libraries_2018.2.185\windows\mkl\lib\intel64_win\mkl_sequential.lib(mkl_threading_omp_no_patched.obj):(.text[mkl_serv_get_ncorespercpu]+0x43b): undefined
reference to `__security_check_cookie'
C:\Program Files (x86)\IntelSWTools\compilers_and_libraries_2018.2.185\windows\mkl\lib\intel64_win\mkl_sequential.lib(mkl_threading_omp_no_patched.obj):(.xdata+0x18): undefined reference to
`__GSHandlerCheck'
C:\Program Files (x86)\IntelSWTools\compilers_and_libraries_2018.2.185\windows\mkl\lib\intel64_win\mkl_sequential.lib(mkl_threading_omp_no_patched.obj):(.text[mkl_serv_get_ht]+0x43c):
undefined reference to `__security_check_cookie'
C:\Program Files (x86)\IntelSWTools\compilers_and_libraries_2018.2.185\windows\mkl\lib\intel64_win\mkl_sequential.lib(mkl_threading_omp_no_patched.obj):(.xdata+0x1c): undefined reference to
`__GSHandlerCheck'
C:\Program Files
(x86)\IntelSWTools\compilers_and_libraries_2018.2.185\windows\mkl\lib\intel64_win\mkl_sequential.lib(mkl_threading_omp_no_patched.obj):(.text[mkl_serv_get_nlogicalcores]+0x43b): undefined
reference to `__security_check_cookie'
C:\Program Files (x86)\IntelSWTools\compilers_and_libraries_2018.2.185\windows\mkl\lib\intel64_win\mkl_sequential.lib(mkl_threading_omp_no_patched.obj):(.xdata+0x18): undefined reference to
`__GSHandlerCheck'
C:\Program Files (x86)\IntelSWTools\compilers_and_libraries_2018.2.185\windows\mkl\lib\intel64_win\mkl_core.lib(dsecnd.obj):(.text[mkl_serv_dsecnd]+0xc6): undefined reference to
`__security_check_cookie'
C:\Program Files (x86)\IntelSWTools\compilers_and_libraries_2018.2.185\windows\mkl\lib\intel64_win\mkl_core.lib(dsecnd.obj):(.xdata+0x14): undefined reference to `__GSHandlerCheck'
C:\Program Files (x86)\IntelSWTools\compilers_and_libraries_2018.2.185\windows\mkl\lib\intel64_win\mkl_core.lib(dsecnd.obj):(.text[mkl_serv_get_cpu_frequency]+0x421): undefined reference to
`__security_check_cookie'
C:\Program Files (x86)\IntelSWTools\compilers_and_libraries_2018.2.185\windows\mkl\lib\intel64_win\mkl_core.lib(dsecnd.obj):(.xdata+0x34): undefined reference to `__GSHandlerCheck'
C:\Program Files (x86)\IntelSWTools\compilers_and_libraries_2018.2.185\windows\mkl\lib\intel64_win\mkl_core.lib(dsecnd.obj):(.xdata+0xa8): undefined reference to `__GSHandlerCheck'
C:\Program Files (x86)\IntelSWTools\compilers_and_libraries_2018.2.185\windows\mkl\lib\intel64_win\mkl_core.lib(dsecnd.obj):(.text[mkl_serv_second]+0xcd): undefined reference to
`__security_check_cookie'
C:\Program Files (x86)\IntelSWTools\compilers_and_libraries_2018.2.185\windows\mkl\lib\intel64_win\mkl_core.lib(dsecnd.obj):(.xdata+0x14): undefined reference to `__GSHandlerCheck'
C:\Program Files (x86)\IntelSWTools\compilers_and_libraries_2018.2.185\windows\mkl\lib\intel64_win\mkl_core.lib(dsecnd.obj):(.text[mkl_serv_get_clocks_frequency]+0x64): undefined reference
to `__security_check_cookie'
C:\Program Files (x86)\IntelSWTools\compilers_and_libraries_2018.2.185\windows\mkl\lib\intel64_win\mkl_core.lib(dsecnd.obj):(.xdata+0x14): undefined reference to `__GSHandlerCheck'
C:\Program Files (x86)\IntelSWTools\compilers_and_libraries_2018.2.185\windows\mkl\lib\intel64_win\mkl_core.lib(dsecnd.obj):(.text[mkl_serv_get_max_cpu_frequency]+0xaa): undefined reference
to `__security_check_cookie'
C:\Program Files (x86)\IntelSWTools\compilers_and_libraries_2018.2.185\windows\mkl\lib\intel64_win\mkl_core.lib(dsecnd.obj):(.xdata+0x8): undefined reference to `__GSHandlerCheck'
C:\Program Files (x86)\IntelSWTools\compilers_and_libraries_2018.2.185\windows\mkl\lib\intel64_win\mkl_core.lib(dsecnd.obj):(.xdata+0x18): undefined reference to `__GSHandlerCheck'
C:\Program Files (x86)\IntelSWTools\compilers_and_libraries_2018.2.185\windows\mkl\lib\intel64_win\mkl_core.lib(xerbla.obj):(.text[mkl_serv_xerbla]+0x62): undefined reference to
`__security_check_cookie'
C:\Program Files (x86)\IntelSWTools\compilers_and_libraries_2018.2.185\windows\mkl\lib\intel64_win\mkl_core.lib(xerbla.obj):(.xdata+0xc): undefined reference to `__GSHandlerCheck'
C:\Program Files (x86)\IntelSWTools\compilers_and_libraries_2018.2.185\windows\mkl\lib\intel64_win\mkl_core.lib(xerbla.obj):(.text[mkl_serv_check_ptr]+0x3c): undefined reference to
`__security_check_cookie'
C:\Program Files (x86)\IntelSWTools\compilers_and_libraries_2018.2.185\windows\mkl\lib\intel64_win\mkl_core.lib(xerbla.obj):(.xdata+0xc): undefined reference to `__GSHandlerCheck'
C:\Program Files (x86)\IntelSWTools\compilers_and_libraries_2018.2.185\windows\mkl\lib\intel64_win\mkl_core.lib(xerbla.obj):(.text[mkl_serv_default_xerbla]+0x13c): undefined reference to
`__security_check_cookie'
C:\Program Files (x86)\IntelSWTools\compilers_and_libraries_2018.2.185\windows\mkl\lib\intel64_win\mkl_core.lib(xerbla.obj):(.xdata+0xc): undefined reference to `__GSHandlerCheck'
C:\Program Files (x86)\IntelSWTools\compilers_and_libraries_2018.2.185\windows\mkl\lib\intel64_win\mkl_core.lib(mkl_memory_patched.obj):(.text[mkl_serv_set_memory_limit]+0xcb): undefined
reference to `__security_check_cookie'
C:\Program Files (x86)\IntelSWTools\compilers_and_libraries_2018.2.185\windows\mkl\lib\intel64_win\mkl_core.lib(mkl_memory_patched.obj):(.xdata+0x10): undefined reference to
`__GSHandlerCheck'
C:\Program Files (x86)\IntelSWTools\compilers_and_libraries_2018.2.185\windows\mkl\lib\intel64_win\mkl_core.lib(mkl_memory_patched.obj):(.text[mkl_serv_allocate]+0x5c): undefined reference
to `__security_check_cookie'
C:\Program Files (x86)\IntelSWTools\compilers_and_libraries_2018.2.185\windows\mkl\lib\intel64_win\mkl_core.lib(mkl_memory_patched.obj):(.xdata+0x18): undefined reference to
`__GSHandlerCheck'
C:\Program Files (x86)\IntelSWTools\compilers_and_libraries_2018.2.185\windows\mkl\lib\intel64_win\mkl_core.lib(mkl_memory_patched.obj):(.text[mkl_serv_malloc]+0x42): undefined reference to
`__security_check_cookie'
C:\Program Files (x86)\IntelSWTools\compilers_and_libraries_2018.2.185\windows\mkl\lib\intel64_win\mkl_core.lib(mkl_memory_patched.obj):(.xdata+0x14): undefined reference to
`__GSHandlerCheck'
C:\Program Files (x86)\IntelSWTools\compilers_and_libraries_2018.2.185\windows\mkl\lib\intel64_win\mkl_core.lib(mkl_memory_patched.obj):(.text[mm_account_ptr_by_tid..0]+0x232): undefined
reference to `__security_check_cookie'
C:\Program Files (x86)\IntelSWTools\compilers_and_libraries_2018.2.185\windows\mkl\lib\intel64_win\mkl_core.lib(mkl_memory_patched.obj):(.xdata+0x18): undefined reference to
`__GSHandlerCheck'
C:\Program Files (x86)\IntelSWTools\compilers_and_libraries_2018.2.185\windows\mkl\lib\intel64_win\mkl_core.lib(mkl_memory_patched.obj):(.text[mkl_serv_deallocate]+0x621): undefined
reference to `__security_check_cookie'
C:\Program Files (x86)\IntelSWTools\compilers_and_libraries_2018.2.185\windows\mkl\lib\intel64_win\mkl_core.lib(mkl_memory_patched.obj):(.xdata+0x14): undefined reference to
`__GSHandlerCheck'
C:\Program Files (x86)\IntelSWTools\compilers_and_libraries_2018.2.185\windows\mkl\lib\intel64_win\mkl_core.lib(mkl_memory_patched.obj):(.text[mkl_serv_free]+0x216): undefined reference to
`__security_check_cookie'
C:\Program Files (x86)\IntelSWTools\compilers_and_libraries_2018.2.185\windows\mkl\lib\intel64_win\mkl_core.lib(mkl_memory_patched.obj):(.xdata+0x10): undefined reference to
`__GSHandlerCheck'
C:\Program Files (x86)\IntelSWTools\compilers_and_libraries_2018.2.185\windows\mkl\lib\intel64_win\mkl_core.lib(mkl_memory_patched.obj):(.text[mkl_serv_free_buffers]+0x344): undefined
reference to `__security_check_cookie'
C:\Program Files (x86)\IntelSWTools\compilers_and_libraries_2018.2.185\windows\mkl\lib\intel64_win\mkl_core.lib(mkl_memory_patched.obj):(.xdata+0x10): undefined reference to
`__GSHandlerCheck'
C:\Program Files (x86)\IntelSWTools\compilers_and_libraries_2018.2.185\windows\mkl\lib\intel64_win\mkl_core.lib(mkl_memory_patched.obj):(.text[mkl_serv_thread_free_buffers]+0x2bc):
undefined reference to `__security_check_cookie'
C:\Program Files (x86)\IntelSWTools\compilers_and_libraries_2018.2.185\windows\mkl\lib\intel64_win\mkl_core.lib(mkl_memory_patched.obj):(.xdata+0x14): undefined reference to
`__GSHandlerCheck'
C:\Program Files (x86)\IntelSWTools\compilers_and_libraries_2018.2.185\windows\mkl\lib\intel64_win\mkl_core.lib(mkl_memory_patched.obj):(.text[mm_account_ptr_by_tid]+0x378): undefined
reference to `__security_check_cookie'
C:\Program Files (x86)\IntelSWTools\compilers_and_libraries_2018.2.185\windows\mkl\lib\intel64_win\mkl_core.lib(mkl_memory_patched.obj):(.xdata+0x18): undefined reference to
`__GSHandlerCheck'
C:\Program Files (x86)\IntelSWTools\compilers_and_libraries_2018.2.185\windows\mkl\lib\intel64_win\mkl_core.lib(mkl_memory_patched.obj):(.text[mkl_serv_mem_stat]+0x239): undefined reference
to `__security_check_cookie'
C:\Program Files (x86)\IntelSWTools\compilers_and_libraries_2018.2.185\windows\mkl\lib\intel64_win\mkl_core.lib(mkl_memory_patched.obj):(.xdata+0x10): undefined reference to
`__GSHandlerCheck'
C:\Program Files (x86)\IntelSWTools\compilers_and_libraries_2018.2.185\windows\mkl\lib\intel64_win\mkl_core.lib(mkl_memory_patched.obj):(.text[mkl_serv_realloc]+0x639): undefined reference
to `__security_check_cookie'
C:\Program Files (x86)\IntelSWTools\compilers_and_libraries_2018.2.185\windows\mkl\lib\intel64_win\mkl_core.lib(mkl_memory_patched.obj):(.xdata+0x18): undefined reference to
`__GSHandlerCheck'
C:\Program Files (x86)\IntelSWTools\compilers_and_libraries_2018.2.185\windows\mkl\lib\intel64_win\mkl_core.lib(mkl_memory_patched.obj):(.text[mkl_serv_jit_alloc]+0x5b): undefined reference
to `__security_check_cookie'
C:\Program Files (x86)\IntelSWTools\compilers_and_libraries_2018.2.185\windows\mkl\lib\intel64_win\mkl_core.lib(mkl_memory_patched.obj):(.xdata+0x14): undefined reference to
`__GSHandlerCheck'
C:\Program Files (x86)\IntelSWTools\compilers_and_libraries_2018.2.185\windows\mkl\lib\intel64_win\mkl_core.lib(mkl_memory_patched.obj):(.text[mkl_serv_jit_free]+0x22d): undefined reference
to `__security_check_cookie'
C:\Program Files (x86)\IntelSWTools\compilers_and_libraries_2018.2.185\windows\mkl\lib\intel64_win\mkl_core.lib(mkl_memory_patched.obj):(.xdata+0x10): undefined reference to
`__GSHandlerCheck'
C:\Program Files (x86)\IntelSWTools\compilers_and_libraries_2018.2.185\windows\mkl\lib\intel64_win\mkl_core.lib(mkl_memory_patched.obj):(.text[mm_cleanup_thread_cbk]+0x3a7): undefined
reference to `__security_check_cookie'
C:\Program Files (x86)\IntelSWTools\compilers_and_libraries_2018.2.185\windows\mkl\lib\intel64_win\mkl_core.lib(mkl_memory_patched.obj):(.xdata+0x14): undefined reference to
`__GSHandlerCheck'
C:\Program Files (x86)\IntelSWTools\compilers_and_libraries_2018.2.185\windows\mkl\lib\intel64_win\mkl_core.lib(mkl_memory_patched.obj):(.text[mkl_serv_get_fast_mm_status]+0x39): undefined
reference to `__security_check_cookie'
C:\Program Files (x86)\IntelSWTools\compilers_and_libraries_2018.2.185\windows\mkl\lib\intel64_win\mkl_core.lib(mkl_memory_patched.obj):(.xdata+0x8): undefined reference to
`__GSHandlerCheck'
C:\Program Files (x86)\IntelSWTools\compilers_and_libraries_2018.2.185\windows\mkl\lib\intel64_win\mkl_core.lib(mkl_verbose.obj):(.text[mkl_serv_verbose]+0xb8): undefined reference to
`__security_check_cookie'
C:\Program Files (x86)\IntelSWTools\compilers_and_libraries_2018.2.185\windows\mkl\lib\intel64_win\mkl_core.lib(mkl_verbose.obj):(.xdata+0xc): undefined reference to `__GSHandlerCheck'
C:\Program Files (x86)\IntelSWTools\compilers_and_libraries_2018.2.185\windows\mkl\lib\intel64_win\mkl_core.lib(mkl_verbose.obj):(.text[mkl_serv_verbose_mode]+0x4c): undefined reference to
`__security_check_cookie'
C:\Program Files (x86)\IntelSWTools\compilers_and_libraries_2018.2.185\windows\mkl\lib\intel64_win\mkl_core.lib(mkl_verbose.obj):(.xdata+0xc): undefined reference to `__GSHandlerCheck'
C:\Program Files (x86)\IntelSWTools\compilers_and_libraries_2018.2.185\windows\mkl\lib\intel64_win\mkl_core.lib(mkl_verbose.obj):(.text[mkl_serv_verbose_output_file_mode]+0x47): undefined
reference to `__security_check_cookie'
C:\Program Files (x86)\IntelSWTools\compilers_and_libraries_2018.2.185\windows\mkl\lib\intel64_win\mkl_core.lib(mkl_verbose.obj):(.xdata+0x8): undefined reference to `__GSHandlerCheck'
C:\Program Files (x86)\IntelSWTools\compilers_and_libraries_2018.2.185\windows\mkl\lib\intel64_win\mkl_core.lib(load_dll_static_patched.obj):(.text[mkl_serv_cpu_detect]+0x50): undefined
reference to `__security_check_cookie'
C:\Program Files (x86)\IntelSWTools\compilers_and_libraries_2018.2.185\windows\mkl\lib\intel64_win\mkl_core.lib(load_dll_static_patched.obj):(.xdata+0x10): undefined reference to
`__GSHandlerCheck'
C:\Program Files (x86)\IntelSWTools\compilers_and_libraries_2018.2.185\windows\mkl\lib\intel64_win\mkl_core.lib(load_dll_static_patched.obj):(.text[mkl_serv_get_cpu_type]+0x293): undefined
reference to `__security_check_cookie'
C:\Program Files (x86)\IntelSWTools\compilers_and_libraries_2018.2.185\windows\mkl\lib\intel64_win\mkl_core.lib(load_dll_static_patched.obj):(.xdata+0x8): undefined reference to
`__GSHandlerCheck'
C:\Program Files (x86)\IntelSWTools\compilers_and_libraries_2018.2.185\windows\mkl\lib\intel64_win\mkl_core.lib(load_dll_static_patched.obj):(.xdata+0x18): undefined reference to
`__GSHandlerCheck'
C:\Program Files (x86)\IntelSWTools\compilers_and_libraries_2018.2.185\windows\mkl\lib\intel64_win\mkl_core.lib(load_dll_static_patched.obj):(.text[mkl_serv_enable_instructions]+0x30e):
undefined reference to `__security_check_cookie'
C:\Program Files (x86)\IntelSWTools\compilers_and_libraries_2018.2.185\windows\mkl\lib\intel64_win\mkl_core.lib(load_dll_static_patched.obj):(.xdata+0x8): undefined reference to
`__GSHandlerCheck'
C:\Program Files (x86)\IntelSWTools\compilers_and_libraries_2018.2.185\windows\mkl\lib\intel64_win\mkl_core.lib(load_dll_static_patched.obj):(.xdata+0x18): undefined reference to
`__GSHandlerCheck'
C:\Program Files (x86)\IntelSWTools\compilers_and_libraries_2018.2.185\windows\mkl\lib\intel64_win\mkl_core.lib(load_dll_static_patched.obj):(.text[mkl_serv_is_sse4_2_enabled]+0x141):
undefined reference to `__security_check_cookie'
C:\Program Files (x86)\IntelSWTools\compilers_and_libraries_2018.2.185\windows\mkl\lib\intel64_win\mkl_core.lib(load_dll_static_patched.obj):(.xdata+0x8): undefined reference to
`__GSHandlerCheck'
C:\Program Files (x86)\IntelSWTools\compilers_and_libraries_2018.2.185\windows\mkl\lib\intel64_win\mkl_core.lib(load_dll_static_patched.obj):(.text[mkl_serv_is_avx_enabled]+0x141):
undefined reference to `__security_check_cookie'
C:\Program Files (x86)\IntelSWTools\compilers_and_libraries_2018.2.185\windows\mkl\lib\intel64_win\mkl_core.lib(load_dll_static_patched.obj):(.xdata+0x8): undefined reference to
`__GSHandlerCheck'
C:\Program Files (x86)\IntelSWTools\compilers_and_libraries_2018.2.185\windows\mkl\lib\intel64_win\mkl_core.lib(load_dll_static_patched.obj):(.text[mkl_serv_is_avx2_enabled]+0x141):
undefined reference to `__security_check_cookie'
C:\Program Files (x86)\IntelSWTools\compilers_and_libraries_2018.2.185\windows\mkl\lib\intel64_win\mkl_core.lib(load_dll_static_patched.obj):(.xdata+0x8): undefined reference to
`__GSHandlerCheck'
C:\Program Files (x86)\IntelSWTools\compilers_and_libraries_2018.2.185\windows\mkl\lib\intel64_win\mkl_core.lib(load_dll_static_patched.obj):(.text[mkl_serv_is_avx512_enabled]+0x141):
undefined reference to `__security_check_cookie'
C:\Program Files (x86)\IntelSWTools\compilers_and_libraries_2018.2.185\windows\mkl\lib\intel64_win\mkl_core.lib(load_dll_static_patched.obj):(.xdata+0x8): undefined reference to
`__GSHandlerCheck'
C:\Program Files (x86)\IntelSWTools\compilers_and_libraries_2018.2.185\windows\mkl\lib\intel64_win\mkl_core.lib(load_dll_static_patched.obj):(.text[mkl_serv_is_avx512_mic_enabled]+0x141):
undefined reference to `__security_check_cookie'
C:\Program Files (x86)\IntelSWTools\compilers_and_libraries_2018.2.185\windows\mkl\lib\intel64_win\mkl_core.lib(load_dll_static_patched.obj):(.xdata+0x8): undefined reference to
`__GSHandlerCheck'
C:\Program Files (x86)\IntelSWTools\compilers_and_libraries_2018.2.185\windows\mkl\lib\intel64_win\mkl_core.lib(mkl_cbwr_static_patched.obj):(.text[mkl_serv_cbwr_get]+0xa1): undefined
reference to `__security_check_cookie'
C:\Program Files (x86)\IntelSWTools\compilers_and_libraries_2018.2.185\windows\mkl\lib\intel64_win\mkl_core.lib(mkl_cbwr_static_patched.obj):(.xdata+0xc): undefined reference to
`__GSHandlerCheck'
C:\Program Files (x86)\IntelSWTools\compilers_and_libraries_2018.2.185\windows\mkl\lib\intel64_win\mkl_core.lib(mkl_cbwr_static_patched.obj):(.text[mkl_serv_cbwr_get_nolock]+0xa1):
undefined reference to `__security_check_cookie'
C:\Program Files (x86)\IntelSWTools\compilers_and_libraries_2018.2.185\windows\mkl\lib\intel64_win\mkl_core.lib(mkl_cbwr_static_patched.obj):(.xdata+0xc): undefined reference to
`__GSHandlerCheck'
C:\Program Files (x86)\IntelSWTools\compilers_and_libraries_2018.2.185\windows\mkl\lib\intel64_win\mkl_core.lib(mkl_getversion.obj):(.text[mkl_serv_get_version_string]+0x2f3): undefined
reference to `__security_check_cookie'
C:\Program Files (x86)\IntelSWTools\compilers_and_libraries_2018.2.185\windows\mkl\lib\intel64_win\mkl_core.lib(mkl_getversion.obj):(.xdata+0x10): undefined reference to `__GSHandlerCheck'
C:\Program Files (x86)\IntelSWTools\compilers_and_libraries_2018.2.185\windows\mkl\lib\intel64_win\mkl_core.lib(mkl_getversion.obj):(.text[mkl_serv_get_version_string_c]+0x273): undefined
reference to `__security_check_cookie'
C:\Program Files (x86)\IntelSWTools\compilers_and_libraries_2018.2.185\windows\mkl\lib\intel64_win\mkl_core.lib(mkl_getversion.obj):(.xdata+0xc): undefined reference to `__GSHandlerCheck'
C:\Program Files (x86)\IntelSWTools\compilers_and_libraries_2018.2.185\windows\mkl\lib\intel64_win\mkl_core.lib(mkl_msg_support.obj):(.text[mkl_serv_get_msg]+0x218): undefined reference to
`__security_check_cookie'
C:\Program Files (x86)\IntelSWTools\compilers_and_libraries_2018.2.185\windows\mkl\lib\intel64_win\mkl_core.lib(mkl_msg_support.obj):(.xdata+0xc): undefined reference to `__GSHandlerCheck'
collect2.exe: error: ld returned 1 exit status```

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)

相关问答

错误1:Request method ‘DELETE‘ not supported 错误还原:...
错误1:启动docker镜像时报错:Error response from daemon:...
错误1:private field ‘xxx‘ is never assigned 按Alt...
报错如下,通过源不能下载,最后警告pip需升级版本 Requirem...