I have just started learning CUDA. I downloaded the eigenvalue sample code from NVIDIA website " http://developer.nvidia.com/cuda-cc-sdk-code-samples#eigenvalues ", but I encountered following error during linking, hope someone could give me some advices:
Linking…
bisect_small.cu.obj : error LNK2005: “float __cdecl computeMidpoint(float,float)” (?computeMidpoint@@YAMMM@Z) already defined in bisect_large.cu.obj
bisect_small.cu.obj : error LNK2005: “unsigned int __cdecl computeNumSmallerEigenvals(float *,float *,unsigned int,float,unsigned int,unsigned int,float *,float *,unsigned int)” (?computeNumSmallerEigenvals@@YAIPAM0IMII00I@Z) already defined in bisect_large.cu.obj
bisect_small.cu.obj : error LNK2005: “unsigned int __cdecl computeNumSmallerEigenvalsLarge(float *,float *,unsigned int,float,unsigned int,unsigned int,float *,float *,unsigned int)” (?computeNumSmallerEigenvalsLarge@@YAIPAM0IMII00I@Z) already defined in bisect_large.cu.obj
…/…/bin/win32/Debug/eigenvalues.exe : fatal error LNK1169: one or more multiply defined symbols found
Attached the code here.
Thanks
JimpJimp
eigenvalues.zip (7.04 MB)