Intel® C++ Compiler
Community support and assistance for creating C++ code that runs on platforms based on Intel® processors.

use Intel's xilink.exe and libirc.lib(new_proc_init.obj) : error LNK2019: unresolved external symbol strlen

Ying_H_Intel
Employee
808 Views

https://software.intel.com/en-us/comment/1795408#comment-1795408

I have the new Windows build system for NumPy trying to use Intel's xilink.exe

It seems the Intel linker isnt doing what it should. In Visual Studio I dont have to specify the CRT. However in Intel's xilink.exe it seems I need too?



Here is failed links.



xilink: executing 'link'

LINK : error LNK2001: unresolved external symbol mainCRTStartup

libirc.lib(new_proc_init.obj) : error LNK2019: unresolved external symbol strlen referenced in function __intel_new_feature_proc_init

libirc.lib(irc_msg_support.obj) : error LNK2001: unresolved external symbol strlen

libirc.lib(new_proc_init.obj) : error LNK2019: unresolved external symbol strncat referenced in function __intel_new_feature_proc_init

libirc.lib(new_proc_init.obj) : error LNK2019: unresolved external symbol exit referenced in function __intel_new_feature_proc_init

libirc.lib(irc_msg_support.obj) : error LNK2019: unresolved external symbol __imp_GetThreadLocale referenced in function __libirc_get_msg

libirc.lib(irc_msg_support.obj) : error LNK2019: unresolved external symbol sprintf referenced in function __libirc_get_msg

libirc.lib(irc_msg_support.obj) : error LNK2019: unresolved external symbol __imp_LoadLibraryA referenced in function __libirc_get_msg

libirc.lib(irc_msg_support.obj) : error LNK2019: unresolved external symbol __imp_FormatMessageA referenced in function __libirc_get_msg

libirc.lib(irc_msg_support.obj) : error LNK2019: unresolved external symbol vsprintf referenced in function __libirc_get_msg

libirc.lib(irc_msg_support.obj) : error LNK2019: unresolved external symbol strncpy referenced in function __libirc_get_msg

libirc.lib(irc_msg_support.obj) : error LNK2019: unresolved external symbol printf referenced in function __libirc_print

libirc.lib(proc_init_utils.obj) : error LNK2019: unresolved external symbol memset referenced in function __intel_proc_init_ftzdazule



There is actually no reason for this failure. Must I use Microsofts link.exe or Microsofts libraries? C runtime libraries are suppose to come for free and dont need to be specified on the link line. Actually if you do specify them it causes a lot of mismatching.



Thx,



Erik

0 Kudos
1 Reply
Om_S_Intel
Employee
808 Views

The Intel compiler environment setting does not seem to be proper. How did you set this?

 

 

0 Kudos
Reply