Community
cancel
Showing results for 
Search instead for 
Did you mean: 
h88433
Beginner
156 Views

mkl_intel_c.lib Unresolved symbols

Hello Gennady and Intel Team,

I am trying to buildan ANSIC (C99 compliant)application and link against the Intel MKL using the Intel compiler 11.1.067 integrated into Visual studio 2008.

Platform: Windows, xpIA32

Compile flags include: -Qopenmp -Gd (cref calling convention)

MKL Link: mkl_solver.lob mkl_intel_c.lib mkl_intel_thread.lib mkl_core.lib

I continue to get a bunch of link errors that I dont understand. I was hoping someone may be able to shed some light on this problem. I have been sucessfully building and running applicaytions under Windows X64 for about a year now. This 32 bit windows build is a puzzle to me.

The following is a list of the link errors, thnkas for your assistance, John McElhaney



>Linking... (Intel C++ Environment)
1>mkl_intel_c.lib(_mkl_dcsrcsc.obj) : error LNK2019: unresolved external symbol _mkl_spblas_mkl_dcsrcsc referenced in function _mkl_dcsrcsc
1>mkl_intel_c.lib(_thrd_mkl_get_max_threads.obj) : error LNK2019: unresolved external symbol _mkl_serv_mkl_get_max_threads referenced in function _MKL_Get_Max_Threads
1>mkl_intel_c.lib(_dlasr.obj) : error LNK2019: unresolved external symbol _mkl_serv_set_progress referenced in function _dlasr
1>mkl_intel_c.lib(_dlanv2.obj) : error LNK2001: unresolved external symbol _mkl_serv_set_progress
1>mkl_intel_c.lib(_dlarfg.obj) : error LNK2001: unresolved external symbol _mkl_serv_set_progress
1>mkl_intel_c.lib(_dlarf.obj) : error LNK2001: unresolved external symbol _mkl_serv_set_progress
1>mkl_intel_c.lib(_dlanst.obj) : error LNK2001: unresolved external symbol _mkl_serv_set_progress
1>mkl_intel_c.lib(_dlaev2.obj) : error LNK2001: unresolved external symbol _mkl_serv_set_progress
1>mkl_intel_c.lib(_dlartg.obj) : error LNK2001: unresolved external symbol _mkl_serv_set_progress
1>mkl_intel_c.lib(_dlarnv.obj) : error LNK2001: unresolved external symbol _mkl_serv_set_progress
1>mkl_intel_c.lib(_dlanhs.obj) : error LNK2001: unresolved external symbol _mkl_serv_set_progress
1>mkl_intel_c.lib(_dlabad.obj) : error LNK2001: unresolved external symbol _mkl_serv_set_progress
1>mkl_intel_c.lib(_dlahqr.obj) : error LNK2001: unresolved external symbol _mkl_serv_set_progress
1>mkl_intel_c.lib(_dtrsen.obj) : error LNK2001: unresolved external symbol _mkl_serv_set_progress
1>mkl_intel_c.lib(_dtrevc.obj) : error LNK2001: unresolved external symbol _mkl_serv_set_progress
1>mkl_intel_c.lib(_dlascl.obj) : error LNK2001: unresolved external symbol _mkl_serv_set_progress
1>mkl_intel_c.lib(_dlacpy.obj) : error LNK2001: unresolved external symbol _mkl_serv_set_progress
1>mkl_intel_c.lib(_dsteqr.obj) : error LNK2001: unresolved external symbol _mkl_serv_set_progress
1>mkl_intel_c.lib(_dlapy2.obj) : error LNK2001: unresolved external symbol _mkl_serv_set_progress
1>mkl_intel_c.lib(_dlaset.obj) : error LNK2001: unresolved external symbol _mkl_serv_set_progress
1>mkl_intel_c.lib(_pardiso.obj) : error LNK2001: unresolved external symbol _mkl_serv_set_progress
1>mkl_intel_c.lib(_dlamch.obj) : error LNK2001: unresolved external symbol _mkl_serv_set_progress
1>mkl_intel_c.lib(_dgeqr2.obj) : error LNK2001: unresolved external symbol _mkl_serv_set_progress
1>mkl_intel_c.lib(_dorm2r.obj) : error LNK2001: unresolved external symbol _mkl_serv_set_progress
1>mkl_intel_c.lib(_pardiso.obj) : error LNK2019: unresolved external symbol _mkl_pds_pardiso referenced in function _pardiso
1>mkl_intel_c.lib(_time_mkl_second.obj) : error LNK2019: unresolved external symbol _mkl_serv_second referenced in function _SECOND
1>mkl_intel_c.lib(_dlanv2.obj) : error LNK2019: unresolved external symbol _mkl_serv_setxer referenced in function _dlanv2
1>mkl_intel_c.lib(_dlarf.obj) : error LNK2001: unresolved external symbol _mkl_serv_setxer
1>mkl_intel_c.lib(_dlanst.obj) : error LNK2001: unresolved external symbol _mkl_serv_setxer
1>mkl_intel_c.lib(_dlaev2.obj) : error LNK2001: unresolved external symbol _mkl_serv_setxer
1>mkl_intel_c.lib(_dlasr.obj) : error LNK2001: unresolved external symbol _mkl_serv_setxer
1>mkl_intel_c.lib(_dlarnv.obj) : error LNK2001: unresolved external symbol _mkl_serv_setxer
1>mkl_intel_c.lib(_dlanhs.obj) : error LNK2001: unresolved external symbol _mkl_serv_setxer
1>mkl_intel_c.lib(_dlabad.obj) : error LNK2001: unresolved external symbol _mkl_serv_setxer
1>mkl_intel_c.lib(_dlarfg.obj) : error LNK2001: unresolved external symbol _mkl_serv_setxer
1>mkl_intel_c.lib(_dtrsen.obj) : error LNK2001: unresolved external symbol _mkl_serv_setxer
1>mkl_intel_c.lib(_dtrevc.obj) : error LNK2001: unresolved external symbol _mkl_serv_setxer
1>mkl_intel_c.lib(_dlascl.obj) : error LNK2001: unresolved external symbol _mkl_serv_setxer
1>mkl_intel_c.lib(_dlartg.obj) : error LNK2001: unresolved external symbol _mkl_serv_setxer
1>mkl_intel_c.lib(_dsteqr.obj) : error LNK2001: unresolved external symbol _mkl_serv_setxer
1>mkl_intel_c.lib(_dlapy2.obj) : error LNK2001: unresolved external symbol _mkl_serv_setxer
1>mkl_intel_c.lib(_dlaset.obj) : error LNK2001: unresolved external symbol _mkl_serv_setxer
1>mkl_intel_c.lib(_dlahqr.obj) : error LNK2001: unresolved external symbol _mkl_serv_setxer
1>mkl_intel_c.lib(_dlamch.obj) : error LNK2001: unresolved external symbol _mkl_serv_setxer
1>mkl_intel_c.lib(_dgeqr2.obj) : error LNK2001: unresolved external symbol _mkl_serv_setxer
1>mkl_intel_c.lib(_dorm2r.obj) : error LNK2001: unresolved external symbol _mkl_serv_setxer
1>mkl_intel_c.lib(_dlacpy.obj) : error LNK2001: unresolved external symbol _mkl_serv_setxer
1>mkl_intel_c.lib(_dlamch.obj) : error LNK2019: unresolved external symbol _mkl_lapack_dlamch referenced in function _dlamch
1>mkl_intel_c.lib(_dnrm2.obj) : error LNK2019: unresolved external symbol _mkl_blas_dnrm2 referenced in function _dnrm2
1>mkl_intel_c.lib(_dcopy.obj) : error LNK2019: unresolved external symbol _mkl_blas_dcopy referenced in function _dcopy
1>mkl_intel_c.lib(_dscal.obj) : error LNK2019: unresolved external symbol _mkl_blas_dscal referenced in function _dscal
1>mkl_intel_c.lib(_dgeqr2.obj) : error LNK2019: unresolved external symbol _mkl_lapack_dgeqr2 referenced in function _dgeqr2
1>mkl_intel_c.lib(_dorm2r.obj) : error LNK2019: unresolved external symbol _mkl_lapack_dorm2r referenced in function _dorm2r
1>mkl_intel_c.lib(_dlacpy.obj) : error LNK2019: unresolved external symbol _mkl_lapack_dlacpy referenced in function _dlacpy
1>mkl_intel_c.lib(_dsteqr.obj) : error LNK2019: unresolved external symbol _mkl_lapack_dsteqr referenced in function _dsteqr
1>mkl_intel_c.lib(_dger.obj) : error LNK2019: unresolved external symbol _mkl_blas_dger referenced in function _dger
1>mkl_intel_c.lib(_dswap.obj) : error LNK2019: unresolved external symbol _mkl_blas_dswap referenced in function _dswap
1>mkl_intel_c.lib(_dlapy2.obj) : error LNK2019: unresolved external symbol _mkl_lapack_dlapy2 referenced in function _dlapy2
1>mkl_intel_c.lib(_dlaset.obj) : error LNK2019: unresolved external symbol _mkl_lapack_dlaset referenced in function _dlaset
1>mkl_intel_c.lib(_dlahqr.obj) : error LNK2019: unresolved external symbol _mkl_lapack_dlahqr referenced in function _dlahqr
1>mkl_intel_c.lib(_dtrsen.obj) : error LNK2019: unresolved external symbol _mkl_lapack_dtrsen referenced in function _dtrsen
1>mkl_intel_c.lib(_dtrevc.obj) : error LNK2019: unresolved external symbol _mkl_lapack_dtrevc referenced in function _dtrevc
1>mkl_intel_c.lib(_dgemv.obj) : error LNK2019: unresolved external symbol _mkl_blas_dgemv referenced in function _dgemv
1>mkl_intel_c.lib(_dtrmm.obj) : error LNK2019: unresolved external symbol _mkl_blas_dtrmm referenced in function _dtrmm
1>mkl_intel_c.lib(_ddot.obj) : error LNK2019: unresolved external symbol _mkl_blas_ddot referenced in function _ddot
1>mkl_intel_c.lib(_dlascl.obj) : error LNK2019: unresolved external symbol _mkl_lapack_dlascl referenced in function _dlascl
1>mkl_intel_c.lib(_daxpy.obj) : error LNK2019: unresolved external symbol _mkl_blas_daxpy referenced in function _daxpy
1>mkl_intel_c.lib(_dlartg.obj) : error LNK2019: unresolved external symbol _mkl_lapack_dlartg referenced in function _dlartg
1>mkl_intel_c.lib(_dlarnv.obj) : error LNK2019: unresolved external symbol _mkl_lapack_dlarnv referenced in function _dlarnv
1>mkl_intel_c.lib(_dlanhs.obj) : error LNK2019: unresolved external symbol _mkl_lapack_dlanhs referenced in function _dlanhs
1>mkl_intel_c.lib(_dlabad.obj) : error LNK2019: unresolved external symbol _mkl_lapack_dlabad referenced in function _dlabad
1>mkl_intel_c.lib(_dlarfg.obj) : error LNK2019: unresolved external symbol _mkl_lapack_dlarfg referenced in function _dlarfg
1>mkl_intel_c.lib(_dlarf.obj) : error LNK2019: unresolved external symbol _mkl_lapack_dlarf referenced in function _dlarf
1>mkl_intel_c.lib(_dlanst.obj) : error LNK2019: unresolved external symbol _mkl_lapack_dlanst referenced in function _dlanst
1>mkl_intel_c.lib(_dlaev2.obj) : error LNK2019: unresolved external symbol _mkl_lapack_dlaev2 referenced in function _dlaev2
1>mkl_intel_c.lib(_dlasr.obj) : error LNK2019: unresolved external symbol _mkl_lapack_dlasr referenced in function _dlasr
1>mkl_intel_c.lib(_dlanv2.obj) : error LNK2019: unresolved external symbol _mkl_lapack_dlanv2 referenced in function _dlanv2
1>mkl_intel_c.lib(_drot.obj) : error LNK2019: unresolved external symbol _mkl_blas_drot referenced in function _drot
1>mkl_intel_c.lib(_dgemm.obj) : error LNK2019: unresolved external symbol _mkl_blas_dgemm referenced in function _dgemm
1>mkl_intel_c.lib(_dtpsv.obj) : error LNK2019: unresolved external symbol _mkl_blas_dtpsv referenced in function _dtpsv
1>mkl_intel_c.lib(_idamax.obj) : error LNK2019: unresolved external symbol _mkl_blas_idamax referenced in function _idamax
1>mkl_intel_c.lib(_misc_mkl_lsame_f.obj) : error LNK2019: unresolved external symbol _mkl_serv_lsame referenced in function _LSAME
1>mkl_intel_c.lib(_misc_mkl_xerbla_iface_u.obj) : error LNK2019: unresolved external symbol _mkl_serv_default_xerbla referenced in function _XERBLA
1>mkl_intel_c.lib(_misc_mkl_progress_iface_u.obj) : error LNK2019: unresolved external symbol _mkl_serv_default_progress referenced in function _MKL_PROGRESS
1>libifcore.lib(for_nt_open_proc.obj) : error LNK2019: unresolved external symbol _errno referenced in function _for__open_proc.
1>libifcore.lib(for_portlib.obj) : error LNK2001: unresolved external symbol _errno
1>libm.lib(libm_error.obj) : error LNK2001: unresolved external symbol _errno
1>libifcore.lib(for_init.obj) : error LNK2019: unresolved external symbol __pxcptinfoptrs referenced in function _GETEXCEPTIONPTRSQQ
1>D:\\Codes\\Simlib-1.0\\Projects\\clear\\bin\\clear.exe : fatal error LNK1120: 45 unresolved externals
1>Build log was saved at "file://D:\\Codes\\Simlib-1.0\\Projects\\Clear\\Debug\\BuildLog.htm"
1>clear - 89 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

0 Kudos
11 Replies
156 Views

Can you attach your build log?

Mean time you may also check the MKL link line advisor tool from here http://software.intel.com/en-us/articles/intel-mkl-link-line-advisor/

--Vipin

h88433
Beginner
157 Views

Hi Vipin, Thnaks for the quick reply. I have already used the link line advisor as you have suggested. The build log contentsfollow,
thanks,
john

Build Log

Build started: Project: clear, Configuration: Debug|Win32

Command Lines
Creating temporary file "D:\DOCUME~1\ydfasel\LOCALS~1\Temp\RSP57E.bs" with contents
[
kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib

oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /OUT:"D:\Codes\Simlib-1.0\Projects\clear\bin\clear.exe"
/INCREMENTAL /nologo /MANIFEST /MANIFESTFILE:"Debug\clear.exe.intermediate.manifest"
/MANIFESTUAC:"level='asInvoker' uiAccess='false'" /TLBID:1 /DEBUG
/PDB:"D:\Codes\Simlib-1.0\Projects\clear\bin\clear.pdb"
/SUBSYSTEM:CONSOLE /qnoipo /DYNAMICBASE /NXCOMPAT
/IMPLIB:"D:\Codes\Simlib-1.0\Projects\clear\bin\clear.lib"
/MACHINE:X86 /nodefaultlib:libc.lib
/nodefaultlib:libcmt.lib arpack_win32.lib hsl_win32.lib libmetis_win32.lib ParMetis_win32.lib
libguide40.lib mkl_solver.lib mkl_intel_c.lib mkl_intel_thread.lib mkl_core.lib wdat.obj Debug/clear.obj Debug/bodies.obj Debug/bulk.obj Debug/errors.obj Debug/feutils.obj Debug/loads.obj Debug/math.obj Debug/matrices.obj Debug/memalloc.obj Debug/misc.obj Debug/readfil.obj Debug/shell.obj Debug/simtiming.obj Debug/solnvars.obj Debug/sorting.obj Debug/streams.obj Debug/stress.obj Debug/vectors.obj Debug/writefil.obj Debug/hcf.obj Debug/arpack.obj Debug/simmodes.obj Debug/materials.obj Debug/freqresp.obj Debug/frespwm.obj Debug/integrate.obj Debug/limloadt.obj Debug/mdamp.obj Debug/mforce.obj Debug/respalloc.obj Debug/timeresp.obj Debug/trespwm.obj Debug/solvers.obj Debug/abqsubs.obj Debug/mload.obj Debug/therm.obj Debug/startup.obj Debug/clear_input.obj Debug/clear_models.obj Debug/clear_post.obj Debug/clear_resp.obj Debug/htcs.obj Debug/htresp.obj Debug/bolt.obj Debug/cloudfaces.obj Debug/cTorque.obj Debug/loadres.obj Debug/properties.obj Debug/utils.obj Debug/static_future.obj Debug\clear.exe.embed.manifest.res ] Creating command line "xilink.exe "@D:\DOCUME~1\ydfasel\LOCALS~1\Temp\RSP57E.bs""
Output Window
Linking... (Intel C++ Environment)
mkl_intel_c.lib(_mkl_dcsrcsc.obj) : error LNK2019: unresolved external symbol _mkl_spblas_mkl_dcsrcsc referenced in function _mkl_dcsrcsc
mkl_intel_c.lib(_thrd_mkl_get_max_threads.obj) : error LNK2019: unresolved external symbol _mkl_serv_mkl_get_max_threads referenced in function _MKL_Get_Max_Threads
mkl_intel_c.lib(_dlasr.obj) : error LNK2019: unresolved external symbol _mkl_serv_set_progress referenced in function _dlasr
mkl_intel_c.lib(_dlanv2.obj) : error LNK2001: unresolved external symbol _mkl_serv_set_progress
mkl_intel_c.lib(_dlarfg.obj) : error LNK2001: unresolved external symbol _mkl_serv_set_progress
mkl_intel_c.lib(_dlarf.obj) : error LNK2001: unresolved external symbol _mkl_serv_set_progress
mkl_intel_c.lib(_dlanst.obj) : error LNK2001: unresolved external symbol _mkl_serv_set_progress
mkl_intel_c.lib(_dlaev2.obj) : error LNK2001: unresolved external symbol _mkl_serv_set_progress
mkl_intel_c.lib(_dlartg.obj) : error LNK2001: unresolved external symbol _mkl_serv_set_progress
mkl_intel_c.lib(_dlarnv.obj) : error LNK2001: unresolved external symbol _mkl_serv_set_progress
mkl_intel_c.lib(_dlanhs.obj) : error LNK2001: unresolved external symbol _mkl_serv_set_progress
mkl_intel_c.lib(_dlabad.obj) : error LNK2001: unresolved external symbol _mkl_serv_set_progress
mkl_intel_c.lib(_dlahqr.obj) : error LNK2001: unresolved external symbol _mkl_serv_set_progress
mkl_intel_c.lib(_dtrsen.obj) : error LNK2001: unresolved external symbol _mkl_serv_set_progress
mkl_intel_c.lib(_dtrevc.obj) : error LNK2001: unresolved external symbol _mkl_serv_set_progress
mkl_intel_c.lib(_dlascl.obj) : error LNK2001: unresolved external symbol _mkl_serv_set_progress
mkl_intel_c.lib(_dlacpy.obj) : error LNK2001: unresolved external symbol _mkl_serv_set_progress
mkl_intel_c.lib(_dsteqr.obj) : error LNK2001: unresolved external symbol _mkl_serv_set_progress
mkl_intel_c.lib(_dlapy2.obj) : error LNK2001: unresolved external symbol _mkl_serv_set_progress
mkl_intel_c.lib(_dlaset.obj) : error LNK2001: unresolved external symbol _mkl_serv_set_progress
mkl_intel_c.lib(_pardiso.obj) : error LNK2001: unresolved external symbol _mkl_serv_set_progress
mkl_intel_c.lib(_dlamch.obj) : error LNK2001: unresolved external symbol _mkl_serv_set_progress
mkl_intel_c.lib(_dgeqr2.obj) : error LNK2001: unresolved external symbol _mkl_serv_set_progress
mkl_intel_c.lib(_dorm2r.obj) : error LNK2001: unresolved external symbol _mkl_serv_set_progress
mkl_intel_c.lib(_pardiso.obj) : error LNK2019: unresolved external symbol _mkl_pds_pardiso referenced in function _pardiso
mkl_intel_c.lib(_time_mkl_second.obj) : error LNK2019: unresolved external symbol _mkl_serv_second referenced in function _SECOND
mkl_intel_c.lib(_dlanv2.obj) : error LNK2019: unresolved external symbol _mkl_serv_setxer referenced in function _dlanv2
mkl_intel_c.lib(_dlarf.obj) : error LNK2001: unresolved external symbol _mkl_serv_setxer
mkl_intel_c.lib(_dlanst.obj) : error LNK2001: unresolved external symbol _mkl_serv_setxer
mkl_intel_c.lib(_dlaev2.obj) : error LNK2001: unresolved external symbol _mkl_serv_setxer
mkl_intel_c.lib(_dlasr.obj) : error LNK2001: unresolved external symbol _mkl_serv_setxer
mkl_intel_c.lib(_dlarnv.obj) : error LNK2001: unresolved external symbol _mkl_serv_setxer
mkl_intel_c.lib(_dlanhs.obj) : error LNK2001: unresolved external symbol _mkl_serv_setxer
mkl_intel_c.lib(_dlabad.obj) : error LNK2001: unresolved external symbol _mkl_serv_setxer
mkl_intel_c.lib(_dlarfg.obj) : error LNK2001: unresolved external symbol _mkl_serv_setxer
mkl_intel_c.lib(_dtrsen.obj) : error LNK2001: unresolved external symbol _mkl_serv_setxer
mkl_intel_c.lib(_dtrevc.obj) : error LNK2001: unresolved external symbol _mkl_serv_setxer
mkl_intel_c.lib(_dlascl.obj) : error LNK2001: unresolved external symbol _mkl_serv_setxer
mkl_intel_c.lib(_dlartg.obj) : error LNK2001: unresolved external symbol _mkl_serv_setxer
mkl_intel_c.lib(_dsteqr.obj) : error LNK2001: unresolved external symbol _mkl_serv_setxer
mkl_intel_c.lib(_dlapy2.obj) : error LNK2001: unresolved external symbol _mkl_serv_setxer
mkl_intel_c.lib(_dlaset.obj) : error LNK2001: unresolved external symbol _mkl_serv_setxer
mkl_intel_c.lib(_dlahqr.obj) : error LNK2001: unresolved external symbol _mkl_serv_setxer
mkl_intel_c.lib(_dlamch.obj) : error LNK2001: unresolved external symbol _mkl_serv_setxer
mkl_intel_c.lib(_dgeqr2.obj) : error LNK2001: unresolved external symbol _mkl_serv_setxer
mkl_intel_c.lib(_dorm2r.obj) : error LNK2001: unresolved external symbol _mkl_serv_setxer
mkl_intel_c.lib(_dlacpy.obj) : error LNK2001: unresolved external symbol _mkl_serv_setxer
mkl_intel_c.lib(_dlamch.obj) : error LNK2019: unresolved external symbol _mkl_lapack_dlamch referenced in function _dlamch
mkl_intel_c.lib(_dnrm2.obj) : error LNK2019: unresolved external symbol _mkl_blas_dnrm2 referenced in function _dnrm2
mkl_intel_c.lib(_dcopy.obj) : error LNK2019: unresolved external symbol _mkl_blas_dcopy referenced in function _dcopy
mkl_intel_c.lib(_dscal.obj) : error LNK2019: unresolved external symbol _mkl_blas_dscal referenced in function _dscal
mkl_intel_c.lib(_dgeqr2.obj) : error LNK2019: unresolved external symbol _mkl_lapack_dgeqr2 referenced in function _dgeqr2
mkl_intel_c.lib(_dorm2r.obj) : error LNK2019: unresolved external symbol _mkl_lapack_dorm2r referenced in function _dorm2r
mkl_intel_c.lib(_dlacpy.obj) : error LNK2019: unresolved external symbol _mkl_lapack_dlacpy referenced in function _dlacpy
mkl_intel_c.lib(_dsteqr.obj) : error LNK2019: unresolved external symbol _mkl_lapack_dsteqr referenced in function _dsteqr
mkl_intel_c.lib(_dger.obj) : error LNK2019: unresolved external symbol _mkl_blas_dger referenced in function _dger
mkl_intel_c.lib(_dswap.obj) : error LNK2019: unresolved external symbol _mkl_blas_dswap referenced in function _dswap
mkl_intel_c.lib(_dlapy2.obj) : error LNK2019: unresolved external symbol _mkl_lapack_dlapy2 referenced in function _dlapy2
mkl_intel_c.lib(_dlaset.obj) : error LNK2019: unresolved external symbol _mkl_lapack_dlaset referenced in function _dlaset
mkl_intel_c.lib(_dlahqr.obj) : error LNK2019: unresolved external symbol _mkl_lapack_dlahqr referenced in function _dlahqr
mkl_intel_c.lib(_dtrsen.obj) : error LNK2019: unresolved external symbol _mkl_lapack_dtrsen referenced in function _dtrsen
mkl_intel_c.lib(_dtrevc.obj) : error LNK2019: unresolved external symbol _mkl_lapack_dtrevc referenced in function _dtrevc
mkl_intel_c.lib(_dgemv.obj) : error LNK2019: unresolved external symbol _mkl_blas_dgemv referenced in function _dgemv
mkl_intel_c.lib(_dtrmm.obj) : error LNK2019: unresolved external symbol _mkl_blas_dtrmm referenced in function _dtrmm
mkl_intel_c.lib(_ddot.obj) : error LNK2019: unresolved external symbol _mkl_blas_ddot referenced in function _ddot
mkl_intel_c.lib(_dlascl.obj) : error LNK2019: unresolved external symbol _mkl_lapack_dlascl referenced in function _dlascl
mkl_intel_c.lib(_daxpy.obj) : error LNK2019: unresolved external symbol _mkl_blas_daxpy referenced in function _daxpy
mkl_intel_c.lib(_dlartg.obj) : error LNK2019: unresolved external symbol _mkl_lapack_dlartg referenced in function _dlartg
mkl_intel_c.lib(_dlarnv.obj) : error LNK2019: unresolved external symbol _mkl_lapack_dlarnv referenced in function _dlarnv
mkl_intel_c.lib(_dlanhs.obj) : error LNK2019: unresolved external symbol _mkl_lapack_dlanhs referenced in function _dlanhs
mkl_intel_c.lib(_dlabad.obj) : error LNK2019: unresolved external symbol _mkl_lapack_dlabad referenced in function _dlabad
mkl_intel_c.lib(_dlarfg.obj) : error LNK2019: unresolved external symbol _mkl_lapack_dlarfg referenced in function _dlarfg
mkl_intel_c.lib(_dlarf.obj) : error LNK2019: unresolved external symbol _mkl_lapack_dlarf referenced in function _dlarf
mkl_intel_c.lib(_dlanst.obj) : error LNK2019: unresolved external symbol _mkl_lapack_dlanst referenced in function _dlanst
mkl_intel_c.lib(_dlaev2.obj) : error LNK2019: unresolved external symbol _mkl_lapack_dlaev2 referenced in function _dlaev2
mkl_intel_c.lib(_dlasr.obj) : error LNK2019: unresolved external symbol _mkl_lapack_dlasr referenced in function _dlasr
mkl_intel_c.lib(_dlanv2.obj) : error LNK2019: unresolved external symbol _mkl_lapack_dlanv2 referenced in function _dlanv2
mkl_intel_c.lib(_drot.obj) : error LNK2019: unresolved external symbol _mkl_blas_drot referenced in function _drot
mkl_intel_c.lib(_dgemm.obj) : error LNK2019: unresolved external symbol _mkl_blas_dgemm referenced in function _dgemm
mkl_intel_c.lib(_dtpsv.obj) : error LNK2019: unresolved external symbol _mkl_blas_dtpsv referenced in function _dtpsv
mkl_intel_c.lib(_idamax.obj) : error LNK2019: unresolved external symbol _mkl_blas_idamax referenced in function _idamax
mkl_intel_c.lib(_misc_mkl_lsame_f.obj) : error LNK2019: unresolved external symbol _mkl_serv_lsame referenced in function _LSAME
mkl_intel_c.lib(_misc_mkl_xerbla_iface_u.obj) : error LNK2019: unresolved external symbol _mkl_serv_default_xerbla referenced in function _XERBLA
mkl_intel_c.lib(_misc_mkl_progress_iface_u.obj) : error LNK2019: unresolved external symbol _mkl_serv_default_progress referenced in function _MKL_PROGRESS
libifcore.lib(for_nt_open_proc.obj) : error LNK2019: unresolved external symbol _errno referenced in function _for__open_proc.
libifcore.lib(for_portlib.obj) : error LNK2001: unresolved external symbol _errno
libm.lib(libm_error.obj) : error LNK2001: unresolved external symbol _errno
libifcore.lib(for_init.obj) : error LNK2019: unresolved external symbol __pxcptinfoptrs referenced in function _GETEXCEPTIONPTRSQQ
D:\Codes\Simlib-1.0\Projects\clear\bin\clear.exe : fatal error LNK1120: 45 unresolved externals
Results
Build log was saved at "file://D:\Codes\Simlib-1.0\Projects\Clear\Debug\BuildLog.htm"
clear - 89 error(s), 0 warning(s)

157 Views

Hi John,

Can you please remove the libguide40.lib from your link line which is a deprecated openmp lib and try?

libiomp5 isthe one which supports latest OpenMP version.

I see as below in your link line.
libguide40.lib mkl_solver.lib mkl_intel_c.lib mkl_intel_thread.lib mkl_core.lib

--Vipin

h88433
Beginner
157 Views

Hi Vipin, Sorry about including libguide, but I have already tried many builds without libguide and the problem is the same. I have used -Qopenmp in the compile flags, and left out libiomp5.
Regards,
john
Andrey_G_Intel2
Employee
157 Views

John,

try to not use incremental linking (remove /INCREMENTAL option from link line). As I can see from your output linker didn`t try to find unresolved symbols in all libraries which are specified in link line.

Andrey
h88433
Beginner
157 Views

Hi Andrey, I have done as you suggested, and tried to change the order in which the libraries are listed in the link list but have the same problem. The order given is:

arpack_win32.lib hsl_win32lib libmetis_win32.lib ParMetis_win32.lib mkl_core.lib mkl_solver.lib mkl_intel_thread.lib mkl_intel_c.lib wdat.obj

The build log is attached here as well, Thanks for your support, John

Build Log

Build started: Project: clear, Configuration: Debug|Win32

Command Lines
Creating temporary file "D:\DOCUME~1\ydfasel\LOCALS~1\Temp\RSP5A8.bs" with contents
[
kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /OUT:"D:\Codes\Simlib-1.0\Projects\clear\bin\clear.exe" /INCREMENTAL:NO /nologo /MANIFEST /MANIFESTFILE:"Debug\clear.exe.intermediate.manifest" /MANIFESTUAC:"level='asInvoker' uiAccess='false'" /TLBID:1 /DEBUG /PDB:"D:\Codes\Simlib-1.0\Projects\clear\bin\clear.pdb" /SUBSYSTEM:CONSOLE /LARGEADDRESSAWARE:NO /qnoipo /DYNAMICBASE /NXCOMPAT /IMPLIB:"D:\Codes\Simlib-1.0\Projects\clear\bin\clear.lib" /MACHINE:X86 /nodefaultlib:libc.lib /nodefaultlib:libcmt.lib arpack_win32.lib hsl_win32.lib  libmetis_win32.lib ParMetis_win32.lib mkl_solver.lib mkl_intel_c.lib mkl_intel_thread.lib mkl_core.lib  wdat.obj
Debug/clear.obj
Debug/bodies.obj
Debug/bulk.obj
Debug/errors.obj
Debug/feutils.obj
Debug/loads.obj
Debug/math.obj
Debug/matrices.obj
Debug/memalloc.obj
Debug/misc.obj
Debug/readfil.obj
Debug/shell.obj
Debug/simtiming.obj
Debug/solnvars.obj
Debug/sorting.obj
Debug/streams.obj
Debug/stress.obj
Debug/vectors.obj
Debug/writefil.obj
Debug/hcf.obj
Debug/arpack.obj
Debug/simmodes.obj
Debug/materials.obj
Debug/freqresp.obj
Debug/frespwm.obj
Debug/integrate.obj
Debug/limloadt.obj
Debug/mdamp.obj
Debug/mforce.obj
Debug/respalloc.obj
Debug/timeresp.obj
Debug/trespwm.obj
Debug/solvers.obj
Debug/abqsubs.obj
Debug/mload.obj
Debug/therm.obj
Debug/startup.obj
Debug/clear_input.obj
Debug/clear_models.obj
Debug/clear_post.obj
Debug/clear_resp.obj
Debug/htcs.obj
Debug/htresp.obj
Debug/bolt.obj
Debug/cloudfaces.obj
Debug/cTorque.obj
Debug/loadres.obj
Debug/properties.obj
Debug/utils.obj
Debug/static_future.obj
]
Creating command line "xilink.exe "@D:\DOCUME~1\ydfasel\LOCALS~1\Temp\RSP5A8.bs""
Output Window
Linking... (Intel C++ Environment)
mkl_intel_c.lib(_mkl_dcsrcsc.obj) : error LNK2019: unresolved external symbol _mkl_spblas_mkl_dcsrcsc referenced in function _mkl_dcsrcsc
mkl_intel_c.lib(_thrd_mkl_get_max_threads.obj) : error LNK2019: unresolved external symbol _mkl_serv_mkl_get_max_threads referenced in function _MKL_Get_Max_Threads
mkl_intel_c.lib(_dlasr.obj) : error LNK2019: unresolved external symbol _mkl_serv_set_progress referenced in function _dlasr
mkl_intel_c.lib(_dlanv2.obj) : error LNK2001: unresolved external symbol _mkl_serv_set_progress
mkl_intel_c.lib(_dlarfg.obj) : error LNK2001: unresolved external symbol _mkl_serv_set_progress
mkl_intel_c.lib(_dlarf.obj) : error LNK2001: unresolved external symbol _mkl_serv_set_progress
mkl_intel_c.lib(_dlanst.obj) : error LNK2001: unresolved external symbol _mkl_serv_set_progress
mkl_intel_c.lib(_dlaev2.obj) : error LNK2001: unresolved external symbol _mkl_serv_set_progress
mkl_intel_c.lib(_dlartg.obj) : error LNK2001: unresolved external symbol _mkl_serv_set_progress
mkl_intel_c.lib(_dlarnv.obj) : error LNK2001: unresolved external symbol _mkl_serv_set_progress
mkl_intel_c.lib(_dlanhs.obj) : error LNK2001: unresolved external symbol _mkl_serv_set_progress
mkl_intel_c.lib(_dlabad.obj) : error LNK2001: unresolved external symbol _mkl_serv_set_progress
mkl_intel_c.lib(_dlahqr.obj) : error LNK2001: unresolved external symbol _mkl_serv_set_progress
mkl_intel_c.lib(_dtrsen.obj) : error LNK2001: unresolved external symbol _mkl_serv_set_progress
mkl_intel_c.lib(_dtrevc.obj) : error LNK2001: unresolved external symbol _mkl_serv_set_progress
mkl_intel_c.lib(_dlascl.obj) : error LNK2001: unresolved external symbol _mkl_serv_set_progress
mkl_intel_c.lib(_dlacpy.obj) : error LNK2001: unresolved external symbol _mkl_serv_set_progress
mkl_intel_c.lib(_dsteqr.obj) : error LNK2001: unresolved external symbol _mkl_serv_set_progress
mkl_intel_c.lib(_dlapy2.obj) : error LNK2001: unresolved external symbol _mkl_serv_set_progress
mkl_intel_c.lib(_dlaset.obj) : error LNK2001: unresolved external symbol _mkl_serv_set_progress
mkl_intel_c.lib(_pardiso.obj) : error LNK2001: unresolved external symbol _mkl_serv_set_progress
mkl_intel_c.lib(_dlamch.obj) : error LNK2001: unresolved external symbol _mkl_serv_set_progress
mkl_intel_c.lib(_dgeqr2.obj) : error LNK2001: unresolved external symbol _mkl_serv_set_progress
mkl_intel_c.lib(_dorm2r.obj) : error LNK2001: unresolved external symbol _mkl_serv_set_progress
mkl_intel_c.lib(_pardiso.obj) : error LNK2019: unresolved external symbol _mkl_pds_pardiso referenced in function _pardiso
mkl_intel_c.lib(_time_mkl_second.obj) : error LNK2019: unresolved external symbol _mkl_serv_second referenced in function _SECOND
mkl_intel_c.lib(_dlanv2.obj) : error LNK2019: unresolved external symbol _mkl_serv_setxer referenced in function _dlanv2
mkl_intel_c.lib(_dlarf.obj) : error LNK2001: unresolved external symbol _mkl_serv_setxer
mkl_intel_c.lib(_dlanst.obj) : error LNK2001: unresolved external symbol _mkl_serv_setxer
mkl_intel_c.lib(_dlaev2.obj) : error LNK2001: unresolved external symbol _mkl_serv_setxer
mkl_intel_c.lib(_dlasr.obj) : error LNK2001: unresolved external symbol _mkl_serv_setxer
mkl_intel_c.lib(_dlarnv.obj) : error LNK2001: unresolved external symbol _mkl_serv_setxer
mkl_intel_c.lib(_dlanhs.obj) : error LNK2001: unresolved external symbol _mkl_serv_setxer
mkl_intel_c.lib(_dlabad.obj) : error LNK2001: unresolved external symbol _mkl_serv_setxer
mkl_intel_c.lib(_dlarfg.obj) : error LNK2001: unresolved external symbol _mkl_serv_setxer
mkl_intel_c.lib(_dtrsen.obj) : error LNK2001: unresolved external symbol _mkl_serv_setxer
mkl_intel_c.lib(_dtrevc.obj) : error LNK2001: unresolved external symbol _mkl_serv_setxer
mkl_intel_c.lib(_dlascl.obj) : error LNK2001: unresolved external symbol _mkl_serv_setxer
mkl_intel_c.lib(_dlartg.obj) : error LNK2001: unresolved external symbol _mkl_serv_setxer
mkl_intel_c.lib(_dsteqr.obj) : error LNK2001: unresolved external symbol _mkl_serv_setxer
mkl_intel_c.lib(_dlapy2.obj) : error LNK2001: unresolved external symbol _mkl_serv_setxer
mkl_intel_c.lib(_dlaset.obj) : error LNK2001: unresolved external symbol _mkl_serv_setxer
mkl_intel_c.lib(_dlahqr.obj) : error LNK2001: unresolved external symbol _mkl_serv_setxer
mkl_intel_c.lib(_dlamch.obj) : error LNK2001: unresolved external symbol _mkl_serv_setxer
mkl_intel_c.lib(_dgeqr2.obj) : error LNK2001: unresolved external symbol _mkl_serv_setxer
mkl_intel_c.lib(_dorm2r.obj) : error LNK2001: unresolved external symbol _mkl_serv_setxer
mkl_intel_c.lib(_dlacpy.obj) : error LNK2001: unresolved external symbol _mkl_serv_setxer
mkl_intel_c.lib(_dlamch.obj) : error LNK2019: unresolved external symbol _mkl_lapack_dlamch referenced in function _dlamch
mkl_intel_c.lib(_dnrm2.obj) : error LNK2019: unresolved external symbol _mkl_blas_dnrm2 referenced in function _dnrm2
mkl_intel_c.lib(_dcopy.obj) : error LNK2019: unresolved external symbol _mkl_blas_dcopy referenced in function _dcopy
mkl_intel_c.lib(_dscal.obj) : error LNK2019: unresolved external symbol _mkl_blas_dscal referenced in function _dscal
mkl_intel_c.lib(_dgeqr2.obj) : error LNK2019: unresolved external symbol _mkl_lapack_dgeqr2 referenced in function _dgeqr2
mkl_intel_c.lib(_dorm2r.obj) : error LNK2019: unresolved external symbol _mkl_lapack_dorm2r referenced in function _dorm2r
mkl_intel_c.lib(_dlacpy.obj) : error LNK2019: unresolved external symbol _mkl_lapack_dlacpy referenced in function _dlacpy
mkl_intel_c.lib(_dsteqr.obj) : error LNK2019: unresolved external symbol _mkl_lapack_dsteqr referenced in function _dsteqr
mkl_intel_c.lib(_dger.obj) : error LNK2019: unresolved external symbol _mkl_blas_dger referenced in function _dger
mkl_intel_c.lib(_dswap.obj) : error LNK2019: unresolved external symbol _mkl_blas_dswap referenced in function _dswap
mkl_intel_c.lib(_dlapy2.obj) : error LNK2019: unresolved external symbol _mkl_lapack_dlapy2 referenced in function _dlapy2
mkl_intel_c.lib(_dlaset.obj) : error LNK2019: unresolved external symbol _mkl_lapack_dlaset referenced in function _dlaset
mkl_intel_c.lib(_dlahqr.obj) : error LNK2019: unresolved external symbol _mkl_lapack_dlahqr referenced in function _dlahqr
mkl_intel_c.lib(_dtrsen.obj) : error LNK2019: unresolved external symbol _mkl_lapack_dtrsen referenced in function _dtrsen
mkl_intel_c.lib(_dtrevc.obj) : error LNK2019: unresolved external symbol _mkl_lapack_dtrevc referenced in function _dtrevc
mkl_intel_c.lib(_dgemv.obj) : error LNK2019: unresolved external symbol _mkl_blas_dgemv referenced in function _dgemv
mkl_intel_c.lib(_dtrmm.obj) : error LNK2019: unresolved external symbol _mkl_blas_dtrmm referenced in function _dtrmm
mkl_intel_c.lib(_ddot.obj) : error LNK2019: unresolved external symbol _mkl_blas_ddot referenced in function _ddot
mkl_intel_c.lib(_dlascl.obj) : error LNK2019: unresolved external symbol _mkl_lapack_dlascl referenced in function _dlascl
mkl_intel_c.lib(_daxpy.obj) : error LNK2019: unresolved external symbol _mkl_blas_daxpy referenced in function _daxpy
mkl_intel_c.lib(_dlartg.obj) : error LNK2019: unresolved external symbol _mkl_lapack_dlartg referenced in function _dlartg
mkl_intel_c.lib(_dlarnv.obj) : error LNK2019: unresolved external symbol _mkl_lapack_dlarnv referenced in function _dlarnv
mkl_intel_c.lib(_dlanhs.obj) : error LNK2019: unresolved external symbol _mkl_lapack_dlanhs referenced in function _dlanhs
mkl_intel_c.lib(_dlabad.obj) : error LNK2019: unresolved external symbol _mkl_lapack_dlabad referenced in function _dlabad
mkl_intel_c.lib(_dlarfg.obj) : error LNK2019: unresolved external symbol _mkl_lapack_dlarfg referenced in function _dlarfg
mkl_intel_c.lib(_dlarf.obj) : error LNK2019: unresolved external symbol _mkl_lapack_dlarf referenced in function _dlarf
mkl_intel_c.lib(_dlanst.obj) : error LNK2019: unresolved external symbol _mkl_lapack_dlanst referenced in function _dlanst
mkl_intel_c.lib(_dlaev2.obj) : error LNK2019: unresolved external symbol _mkl_lapack_dlaev2 referenced in function _dlaev2
mkl_intel_c.lib(_dlasr.obj) : error LNK2019: unresolved external symbol _mkl_lapack_dlasr referenced in function _dlasr
mkl_intel_c.lib(_dlanv2.obj) : error LNK2019: unresolved external symbol _mkl_lapack_dlanv2 referenced in function _dlanv2
mkl_intel_c.lib(_drot.obj) : error LNK2019: unresolved external symbol _mkl_blas_drot referenced in function _drot
mkl_intel_c.lib(_dgemm.obj) : error LNK2019: unresolved external symbol _mkl_blas_dgemm referenced in function _dgemm
mkl_intel_c.lib(_dtpsv.obj) : error LNK2019: unresolved external symbol _mkl_blas_dtpsv referenced in function _dtpsv
mkl_intel_c.lib(_idamax.obj) : error LNK2019: unresolved external symbol _mkl_blas_idamax referenced in function _idamax
mkl_intel_c.lib(_misc_mkl_lsame_f.obj) : error LNK2019: unresolved external symbol _mkl_serv_lsame referenced in function _LSAME
mkl_intel_c.lib(_misc_mkl_xerbla_iface_u.obj) : error LNK2019: unresolved external symbol _mkl_serv_default_xerbla referenced in function _XERBLA
mkl_intel_c.lib(_misc_mkl_progress_iface_u.obj) : error LNK2019: unresolved external symbol _mkl_serv_default_progress referenced in function _MKL_PROGRESS
libifcore.lib(for_nt_open_proc.obj) : error LNK2019: unresolved external symbol _errno referenced in function _for__open_proc.
libifcore.lib(for_portlib.obj) : error LNK2001: unresolved external symbol _errno
libm.lib(libm_error.obj) : error LNK2001: unresolved external symbol _errno
libifcore.lib(for_init.obj) : error LNK2019: unresolved external symbol __pxcptinfoptrs referenced in function _GETEXCEPTIONPTRSQQ
D:\Codes\Simlib-1.0\Projects\clear\bin\clear.exe : fatal error LNK1120: 45 unresolved externals
Results
Build log was saved at "file://D:\Codes\Simlib-1.0\Projects\Clear\Debug\BuildLog.htm"
clear - 89 error(s), 0 warning(s)
Andrey_G_Intel2
Employee
157 Views

Hi John!

could you specify MKL libraries files in full format? Something like C:\MKL\ia32\lib\mkl_intel_c.lib...

Andrey
h88433
Beginner
157 Views


Hi Andrey,

Thanks for the reply. The paths are:

C:\Program Files\Intel\MKL\10.2.6.037\ia32\lib

C:\Program Files\Intel\Compiler\11.1\067\lib\ia32

The environment variables define "Program Files" as "Progra~1"

Cheers,
John

TimP
Black Belt
157 Views

John,
I think Andrey means try specifying the full paths of each library in the link step of your build. This is required for static libraries in linux, maybe shouldn't be required for Windows, unless your environment settings are off.
h88433
Beginner
157 Views

Hi Tim, The more I think about it, the more sense something like this makes. I am going to have acloser look at the definitions of paths, directories etc.. I'll let you know if it works out.
thans
john
h88433
Beginner
157 Views

O.K., theproblem with the unresolved symbols is that the VC++ directories included both emt64, and ia32 directories as library sources. Since both of these directories contain a file by the name of mkl_core.lib, the compiler just picked up the first file it found in emt64 with mkl_core.lib as a name. Unfortunately, the emt64 version of the file does not have the required ia32 name decoration. Perhaps intel could name the library file something like mkl_core_win64.lib, mkl_core_win32.lib ??? Just a suggestion.
Reply