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

link2005 error with libmmd.lib (linmmd.dll)

Scott_S_
Beginner
1,343 Views

Hello,

I've recently upgraded to a newer version of the Intel Compiler (from 12.1.3.300 to the latest - 14.0.3.202) and I seem to have a bunch of LINK2005 errors that I never had before - partial snippet below:

"
p.cu.obj) : error LNK2005: _cosf already defined in libmmd.lib(libmmd.dll)
p.cu.obj) : error LNK2005: _powf already defined in libmmd.lib(libmmd.dll)
p.cu.obj) : error LNK2005: _sinf already defined in libmmd.lib(libmmd.dll)
p.cu.obj) : error LNK2005: _cosf already defined in libmmd.lib(libmmd.dll)
p.cu.obj) : error LNK2005: _powf already defined in libmmd.lib(libmmd.dll)
p.cu.obj) : error LNK2005: _sinf already defined in libmmd.lib(libmmd.dll)
"

I'm not entirely sure why these are clashing now and not before.  Any ideas?

 

0 Kudos
1 Reply
Feilong_H_Intel
Employee
1,343 Views

Hi Scott,

It might be related to the MSFT libraries you were linking with.  I didn't a search and found a similar issue at <http://stackoverflow.com/questions/925540/how-to-resolve-the-following-linker-errors-in-visual-studio>.  Please see if it solves the problem you reported.  If not, please upload a small project, so that we can reproduce the problem.

Thanks.

0 Kudos
Reply