Ask Your Question
0

Fail to link ippcoremt.lib with OpenCV provided library ippicvmt.lib

asked 2015-10-02 15:43:17 -0600

Hi,

I am using Visual Studio 2015 community edition. My application are using Intel IPP 8.2.3 so I have to link with ippcoremt.lib.

After upgrade to OpenCV 3.0 I need to link to the library ippicvmt.lib to resolve undefined symbol.

However if I do that will get the error

ippicvmt.lib(ippinit.obj) : error LNK2005: _ippSetCpuFeatures@8 already defined in ippcoremt.lib(ippinit.obj) ippicvmt.lib(ippinit.obj) : error LNK2005: _ownippStaticInitCpu already defined in ippcoremt.lib(ippinit.obj)

I understand there is duplicate function exists. But other than disable the IPP support in OpenCV and recompile it, do I have any other choice ?

I appreciate any feedback.

  • Kelvin
edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
1

answered 2015-10-03 03:38:11 -0600

LBerger gravatar image

Have you try option /FORCE:MULTIPLE?

edit flag offensive delete link more

Comments

Thanks a lot, didn't know there is such as option before. I have the executable now and is testing. :-)

tlchung gravatar imagetlchung ( 2015-10-03 11:07:34 -0600 )edit

Just did some rearranging. Better to have solved topics rather then closed topic :)

StevenPuttemans gravatar imageStevenPuttemans ( 2015-10-05 06:48:54 -0600 )edit

Question Tools

1 follower

Stats

Asked: 2015-10-02 15:42:07 -0600

Seen: 1,877 times

Last updated: Oct 02 '15