OpenCV3.00 + Visual Studio 2013 + Cuda 6.5RC compiling error!

asked 2014-08-14 07:13:58 -0600

I am compiling openCV 3.00 with visual studio 2013 and CUDA 6.5 RC! Unfortunately, I got these errors in compiling OpenCV_Dudalagency! Is there any Idea?

2>cuda_compile_generated_NCV.cu.obj : error LNK2005: "public: __cdecl NCVMemNativeAllocator::NCVMemNativeAllocator(enum NCVMemoryType,unsigned int)" (??0NCVMemNativeAllocator@@QEAA@W4NCVMemoryType@@I@Z) already defined in NCV.obj 2>cuda_compile_generated_NCV.cu.obj : error LNK2005: "public: __cdecl NCVMemStackAllocator::NCVMemStackAllocator(unsigned int)" (??0NCVMemStackAllocator@@QEAA@I@Z) already defined in NCV.obj 2>cuda_compile_generated_NCV.cu.obj : error LNK2005: "public: __cdecl NCVMemStackAllocator::NCVMemStackAllocator(enum NCVMemoryType,unsigned __int64,unsigned int,void )" (??0NCVMemStackAllocator@@QEAA@W4NCVMemoryType@@_KIPEAX@Z) already defined in NCV.obj 2>cuda_compile_generated_NCV.cu.obj : error LNK2005: "public: virtual __cdecl NCVMemNativeAllocator::~NCVMemNativeAllocator(void)" (??1NCVMemNativeAllocator@@UEAA@XZ) already defined in NCV.obj 2>cuda_compile_generated_NCV.cu.obj : error LNK2005: "public: virtual __cdecl NCVMemStackAllocator::~NCVMemStackAllocator(void)" (??1NCVMemStackAllocator@@UEAA@XZ) already defined in NCV.obj 2>cuda_compile_generated_NCV.cu.obj : error LNK2005: "double __cdecl _ncvMomentToMicroseconds(struct _NcvTimeMoment *)" (?_ncvMomentToMicroseconds@@YANPEAU_NcvTimeMoment@@@Z) already defined in NCV.obj 2>cuda_compile_generated_NCV.cu.obj : error LNK2005: "double __cdecl _ncvMomentsDiffToMicroseconds(struct _NcvTimeMoment *,struct _NcvTimeMoment *)" (?_ncvMomentsDiffToMicroseconds@@YANPEAU_NcvTimeMoment@@0@Z) already defined in NCV.obj 2>cuda_compile_generated_NCV.cu.obj : error LNK2005: "double __cdecl _ncvMomentsDiffToMilliseconds(struct _NcvTimeMoment *,struct _NcvTimeMoment *)" (?_ncvMomentsDiffToMilliseconds@@YANPEAU_NcvTimeMoment@@0@Z) already defined in NCV.obj 2>cuda_compile_generated_NCV.cu.obj : error LNK2005: "unsigned int __cdecl alignUp(unsigned int,unsigned int)" (?alignUp@@YAIII@Z) already defined in NCV.obj 2>cuda_compile_generated_NCV.cu.obj : error LNK2005: "public: virtual unsigned int __cdecl NCVMemNativeAllocator::alignment(void)const " (?alignment@NCVMemNativeAllocator@@UEBAIXZ) already defined in NCV.obj 2>cuda_compile_generated_NCV.cu.obj : error LNK2005: "public: virtual unsigned int __cdecl NCVMemStackAllocator::alignment(void)const " (?alignment@NCVMemStackAllocator@@UEBAIXZ) already defined in NCV.obj 2>cuda_compile_generated_NCV.cu.obj : error LNK2005: "public: virtual unsigned int __cdecl NCVMemNativeAllocator::alloc(struct NCVMemSegment &,unsigned __int64)" (?alloc@NCVMemNativeAllocator@@UEAAIAEAUNCVMemSegment@@_K@Z) already defined in NCV.obj 2>cuda_compile_generated_NCV.cu.obj : error LNK2005: "public: virtual unsigned int __cdecl NCVMemStackAllocator::alloc(struct NCVMemSegment &,unsigned __int64)" (?alloc@NCVMemStackAllocator@@UEAAIAEAUNCVMemSegment@@_K@Z) already defined in NCV.obj 2>cuda_compile_generated_NCV.cu.obj : error LNK2005: "public: void __cdecl NCVMemPtr::clear(void)" (?clear@NCVMemPtr@@QEAAXXZ) already defined in NCV.obj 2>cuda_compile_generated_NCV.cu.obj : error LNK2005: "public: void __cdecl NCVMemSegment::clear(void)" (?clear@NCVMemSegment@@QEAAXXZ) already defined in NCV.obj 2>cuda_compile_generated_NCV.cu.obj : error LNK2005: "public: virtual unsigned int __cdecl NCVMemNativeAllocator::dealloc(struct NCVMemSegment &)" (?dealloc@NCVMemNativeAllocator@@UEAAIAEAUNCVMemSegment@@@Z) already defined in NCV.obj 2>cuda_compile_generated_NCV.cu.obj : error LNK2005: "public: virtual unsigned int __cdecl NCVMemStackAllocator::dealloc(struct NCVMemSegment &)" (?dealloc@NCVMemStackAllocator@@UEAAIAEAUNCVMemSegment@@@Z) already defined in NCV.obj 2>cuda_compile_generated_NCV.cu.obj : error LNK2005: "class cv::String __cdecl cv::cuda::getNcvErrorMessage(int)" (?getNcvErrorMessage@cuda@cv@@YA?AVString@2@H@Z) already defined in NCV.obj 2>cuda_compile_generated_NCV.cu.obj : error LNK2005: "public: virtual bool __cdecl NCVMemNativeAllocator::isCounting(void)const " (?isCounting@NCVMemNativeAllocator@@UEBA_NXZ) already defined in NCV.obj 2>cuda_compile_generated_NCV.cu.obj : error LNK2005: "public: virtual bool __cdecl NCVMemStackAllocator::isCounting(void)const " (?isCounting@NCVMemStackAllocator@@UEBA_NXZ) already defined in NCV.obj 2>cuda_compile_generated_NCV.cu.obj : error LNK2005: "public: virtual bool __cdecl NCVMemNativeAllocator::isInitialized(void)const " (?isInitialized@NCVMemNativeAllocator@@UEBA_NXZ ... (more)

edit retag flag offensive close merge delete