Could someone with experience help me to accomplish the above noble objective please?
After so many hours (rather days) and ways of trying and searching the internet, the frustration has accumulated in me that I decided to turn to the SO community. I hope that a working solution will help also others in such a situation.
My setup:
- Windows 10
- MATLAB R2019b
- Intel MKL for calling the compiled mex files in MATLAB, this particular version of MATLAB uses:
- 'Intel(R) Math Kernel Library Version 2018.0.3 Product Build 20180406 for Intel(R) 64 architecture applications, CNR branch AVX'
- Intel MKL for calling the compiled mex files in MATLAB, this particular version of MATLAB uses:
- MinGW64 Compiler (C++) for mex file compilation, more precisely:
- x86_64-6.3.0-posix-seh-rt_v5-rev
- Two source cpp files
- Although they are not important now, as the issue does not lie here. (For information only: these files correctly compile with OpenBLAS but this is out of scope.)
I try to use the built-in mex command in MATLAB plus linking the correct Intel MKL libraries as shown below; however, I do not mind using any other setup for compilation. The only restriction what I have to respect is to stay on a Windows 10 platform.
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
Attempt to compile leads to many error messages as shown at the bottom. This is only a truncated version of the original error message as it would otherwise exceed SO's limitation on allowed character length per question.
Most of errors are either undefined references either to
__security_check_cookie
or
__GSHandlerCheck
I highly appreciate any help, hint or suggestion. Thank you in advance.
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```