- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Dear Experts,
I am experience a link error :
OS: Windows 10
MSVC : 2019
ICC : Intel(R) C++ Intel(R) 64 Compiler for applications running on Intel(R) 64, Version 19.1.2.254 Build 20200623
xilink /nodefaultlib:vcomp /nodefaultlib:crt libiomp5md.lib -LIBPATH:Debug\lib -out:Debug/target.exe DEBUG/obj/target_object.obj lib_some_internal_lib.lib
xilink: executing 'link'
Microsoft (R) Incremental Linker Version 14.26.28806.0
Copyright (C) Microsoft Corporation. All rights reserved.
/nodefaultlib:vcomp
/nodefaultlib:crt libucrt
libiomp5md.lib
-LIBPATH:Debug\lib
-out:Debug/ark_cpplab.exe
DEBUG/obj/target_object.obj
lib_some_internal_lib.lib
libucrt.lib(nan.obj) : error LNK2005: nan already defined in libmmt.lib(nan.obj)
libucrt.lib(nanf.obj) : error LNK2005: nanf already defined in libmmt.lib(nan.obj)
Debug\target.exe : fatal error LNK1169: one or more multiply defined symbols found
Any comment is much appreciate it.
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Please let me know if there is any update on this. I googled pretty much everywhere and couldn't find a solution yet.
Regards
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
SUCCESS ... I don't know how and why it solved the problem but I just added /MD to compile flags and the issue sorted out. If I check Reference and Guide it says "Tells the linker to search for unresolved references in a multi-threaded, dynamic-link run-time library!"
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
Since you have figured out the issue, I will go ahead and close this thread. Intel will no longer monitor this thread. However, it will remain open for community discussion.
--Rahul
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page