Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Yuzhuo_Su
Beginner
77 Views

warning while compiling

I am using MKL in my project and got the following warnings after building the project:

(additional dependencies has: mkl_solver_sequential.lib, mkl_intel_c.lib, mkl_sequential.lib, mkl_core.lib)

1>mkl_core.lib(vml_n8_strings.obj) : warning LNK4006: ___intel_f2int already defined in mkl_core.lib(intel_f2int.obj); second definition ignored
1>mkl_core.lib(vsl_p8_wh_tables.obj) : warning LNK4006: __vsl_WH_A already defined in mkl_core.lib(vsl_n8_wh_tables.obj); second definition ignored
1>mkl_core.lib(vsl_p8_wh_tables.obj) : warning LNK4006: __vsl_WH_M already defined in mkl_core.lib(vsl_n8_wh_tables.obj); second definition ignored
1>mkl_core.lib(vsl_p8_wh_tables.obj) : warning LNK4006: __vsldWH_IM_Tab already defined in mkl_core.lib(vsl_n8_wh_tables.obj); second definition ignored
1>mkl_core.lib(vsl_p8_wh_tables.obj) : warning LNK4221: This object file does not define any previously undefined public symbols, so it will not be used by any link operation that consumes this library
1>mkl_core.lib(vsl_p8_sobol_tables.obj) : warning LNK4006: _uSobolMInit already defined in mkl_core.lib(vsl_n8_sobol_tables.obj); second definition ignored
1>mkl_core.lib(vsl_p8_sobol_tables.obj) : warning LNK4006: _uSobolIrredPoly already defined in mkl_core.lib(vsl_n8_sobol_tables.obj); second definition ignored
1>mkl_core.lib(vsl_p8_sobol_tables.obj) : warning LNK4006: _iSobolIrredPolyDeg already defined in mkl_core.lib(vsl_n8_sobol_tables.obj); second definition ignored
1>mkl_core.lib(vsl_p8_sobol_tables.obj) : warning LNK4221: This object file does not define any previously undefined public symbols, so it will not be used by any link operation that consumes this library
1>mkl_core.lib(vsl_p8_niederr_tables.obj) : warning LNK4006: _uNiederrIrredPoly already defined in mkl_core.lib(vsl_n8_niederr_tables.obj); second definition ignored
1>mkl_core.lib(vsl_p8_niederr_tables.obj) : warning LNK4006: _iNiederrIrredPolyDeg already defined in mkl_core.lib(vsl_n8_niederr_tables.obj); second definition ignored
1>mkl_core.lib(vsl_p8_niederr_tables.obj) : warning LNK4221: This object file does not define any previously undefined public symbols, so it will not be used by any link operation that consumes this library
1>mkl_core.lib(vsl_p8_mt2203_table.obj) : warning LNK4006: __vsl_mt2203_table already defined in mkl_core.lib(vsl_n8_mt2203_table.obj); second definition ignored
1>mkl_core.lib(vsl_p8_mt2203_table.obj) : warning LNK4221: This object file does not define any previously undefined public symbols, so it will not be used by any link operation that consumes this library

....

Any one can give me a hint about why I am having these warnings? thanks!!
0 Kudos
1 Reply
Chao_Y_Intel
Employee
77 Views


Hello,

Could you please attach your project? So we can have a check about the problem.

This warning happens because multiple symbols were linked into the application. We noticed similar problem reported before. For example, some users were building some lib files. When building the library file, MKL libraries are also add into linking command line. When MKL library is added into several libraries, multiple symbols will added and may report warning like that. Only when you built the application (.exe files), MKL library will be added in the linking command line.

Thanks,
Chao

Reply