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) already defined in NCV.obj 2>cuda_compile_generated_NCV.cu.obj : error LNK2005: "public: virtual bool __cdecl NCVMemStackAllocator::isInitialized(void)const " (?isInitialized@NCVMemStackAllocator@@UEBA_NXZ) already defined in NCV.obj 2>cuda_compile_generated_NCV.cu.obj : error LNK2005: "public: virtual unsigned __int64 __cdecl NCVMemNativeAllocator::maxSize(void)const " (?maxSize@NCVMemNativeAllocator@@UEBA_KXZ) already defined in NCV.obj 2>cuda_compile_generated_NCV.cu.obj : error LNK2005: "public: virtual unsigned __int64 __cdecl NCVMemStackAllocator::maxSize(void)const " (?maxSize@NCVMemStackAllocator@@UEBA_KXZ) already defined in NCV.obj 2>cuda_compile_generated_NCV.cu.obj : error LNK2005: "unsigned int __cdecl memSegCopyHelper2D(void *,unsigned int,enum NCVMemoryType,void const *,unsigned int,enum NCVMemoryType,unsigned int,unsigned int,struct CUstream_st *)" (?memSegCopyHelper2D@@YAIPEAXIW4NCVMemoryType@@PEBXI1IIPEAUCUstream_st@@@Z) already defined in NCV.obj 2>cuda_compile_generated_NCV.cu.obj : error LNK2005: "unsigned int __cdecl memSegCopyHelper(void *,enum NCVMemoryType,void const *,enum NCVMemoryType,unsigned __int64,struct CUstream_st *)" (?memSegCopyHelper@@YAIPEAXW4NCVMemoryType@@PEBX1_KPEAUCUstream_st@@@Z) already defined in NCV.obj 2>cuda_compile_generated_NCV.cu.obj : error LNK2005: "public: virtual enum NCVMemoryType __cdecl NCVMemNativeAllocator::memType(void)const " (?memType@NCVMemNativeAllocator@@UEBA?AW4NCVMemoryType@@XZ) already defined in NCV.obj 2>cuda_compile_generated_NCV.cu.obj : error LNK2005: "public: virtual enum NCVMemoryType __cdecl NCVMemStackAllocator::memType(void)const " (?memType@NCVMemStackAllocator@@UEBA?AW4NCVMemoryType@@XZ) already defined in NCV.obj 2>cuda_compile_generated_NCV.cu.obj : error LNK2005: "void __cdecl ncvDebugOutput(class cv::String const &)" (?ncvDebugOutput@@YAXAEBVString@cv@@@Z) already defined in NCV.obj 2>cuda_compile_generated_NCV.cu.obj : error LNK2005: "unsigned int __cdecl ncvDrawRects_32u_host(unsigned int *,unsigned int,unsigned int,unsigned int,struct NcvRect32u *,unsigned int,unsigned int)" (?ncvDrawRects_32u_host@@YAIPEAIIIIPEAUNcvRect32u@@II@Z) already defined in NCV.obj 2>cuda_compile_generated_NCV.cu.obj : error LNK2005: "unsigned int __cdecl ncvDrawRects_8u_host(unsigned char *,unsigned int,unsigned int,unsigned int,struct NcvRect32u *,unsigned int,unsigned char)" (?ncvDrawRects_8u_host@@YAIPEAEIIIPEAUNcvRect32u@@IE@Z) already defined in NCV.obj 2>cuda_compile_generated_NCV.cu.obj : error LNK2005: "double __cdecl ncvEndQueryTimerMs(struct _NcvTimer *)" (?ncvEndQueryTimerMs@@YANPEAU_NcvTimer@@@Z) already defined in NCV.obj 2>cuda_compile_generated_NCV.cu.obj : error LNK2005: "double __cdecl ncvEndQueryTimerUs(struct _NcvTimer *)" (?ncvEndQueryTimerUs@@YANPEAU_NcvTimer@@@Z) already defined in NCV.obj 2>cuda_compile_generated_NCV.cu.obj : error LNK2005: "unsigned int __cdecl ncvGroupRectangles_host(class NCVVector<struct ncvrect32u=""> &,unsigned int &,unsigned int,float,class NCVVector<unsigned int=""> *)" (?ncvGroupRectangles_host@@YAIAEAV?$NCVVector@UNcvRect32u@@@@AEAIIMPEAV?$NCVVector@I@@@Z) already defined in NCV.obj 2>cuda_compile_generated_NCV.cu.obj : error LNK2005: "void __cdecl ncvSetDebugOutputHandler(void (__cdecl)(class cv::String const &))" (?ncvSetDebugOutputHandler@@YAXP6AXAEBVString@cv@@@Z@Z) already defined in NCV.obj 2>cuda_compile_generated_NCV.cu.obj : error LNK2005: "struct _NcvTimer * __cdecl ncvStartTimer(void)" (?ncvStartTimer@@YAPEAU_NcvTimer@@XZ) already defined in NCV.obj 2> Creating library d:/dental_openCV/opencv_build/lib/Debug/opencv_cudalegacy300d.lib and object d:/dental_openCV/opencv_build/lib/Debug/opencv_cudalegacy300d.exp 2>d:\dental_openCV\opencv_build\bin\Debug\opencv_cudalegacy300d.dll : fatal error LNK1169: one or more multiply defined symbols found ========== Build: 1 succeeded, 1 failed, 15 up-to-date, 0 skipped ==========