Hi Simon,<div><br></div><div>Lately I've been trying to build RTK with CUDA. I tried both the CUDA production release 5.0 and 4.2. I doubled checked that CUDA is actually working (the CUDA examples run properly). And I made sure that the CUDA and CUDA SDK directories are correctly specified in the configuration when generating the build files. However, I keep getting these linking errors when I tried to compile RTK using Visual Studio 2010. Do you have any idea what might be going on? Thanks.</div>
<div><br></div><div>I'm using Win7 64bit, and my CUDA toolkit is for 64 bit as well.</div><div><br></div><div>=============================================</div><div><div><div>Error<span class="" style="white-space:pre">        </span>1<span class="" style="white-space:pre"> </span>error LNK2019: Unresolved external symbols "void __cdecl CUDA_reconstruct_conebeam_init(int * const,int * const,float * &,float * &,float * &)" (?CUDA_reconstruct_conebeam_init@@YAXQEAH0AEAPEAM11@Z) referenced in function "public: void __cdecl rtk::CudaFDKBackProjectionImageFilter::InitDevice(void)" (?InitDevice@CudaFDKBackProjectionImageFilter@rtk@@QEAAXXZ) <span class="" style="white-space:pre"> </span>C:\SimonRit-RTK-4353(withHNC)\build\applications\rtkcuda.lib(rtkCudaFDKBackProjectionImageFilter.obj)<span class="" style="white-space:pre">     </span>rtkinlinefdk</div>
<div>Error<span class="" style="white-space:pre">       </span>2<span class="" style="white-space:pre"> </span>error LNK2019: Unresolved external symbols "class std::vector<int,class std::allocator<int> > __cdecl GetListOfCudaDevices(void)" (?GetListOfCudaDevices@@YA?AV?$vector@HV?$allocator@H@std@@@std@@XZ) referenced in function "public: void __cdecl rtk::CudaFDKBackProjectionImageFilter::InitDevice(void)" (?InitDevice@CudaFDKBackProjectionImageFilter@rtk@@QEAAXXZ) <span class="" style="white-space:pre"> </span>C:\SimonRit-RTK-4353(withHNC)\build\applications\rtkcuda.lib(rtkCudaFDKBackProjectionImageFilter.obj)<span class="" style="white-space:pre">     </span>rtkinlinefdk</div>
<div>Error<span class="" style="white-space:pre">       </span>3<span class="" style="white-space:pre"> </span>error LNK2019: Unresolved external symbols "void __cdecl CUDA_reconstruct_conebeam_cleanup(int * const,float *,float *,float *,float *)" (?CUDA_reconstruct_conebeam_cleanup@@YAXQEAHPEAM111@Z) referenced in function "public: void __cdecl rtk::CudaFDKBackProjectionImageFilter::CleanUpDevice(void)" (?CleanUpDevice@CudaFDKBackProjectionImageFilter@rtk@@QEAAXXZ) <span class="" style="white-space:pre">      </span>C:\SimonRit-RTK-4353(withHNC)\build\applications\rtkcuda.lib(rtkCudaFDKBackProjectionImageFilter.obj)<span class="" style="white-space:pre">     </span>rtkinlinefdk</div>
<div>Error<span class="" style="white-space:pre">       </span>4<span class="" style="white-space:pre"> </span>error LNK2019: Unresolved external symbols "void __cdecl CUDA_reconstruct_conebeam(int * const,int * const,float *,float * const,float *,float *,float *)" (?CUDA_reconstruct_conebeam@@YAXQEAH0PEAMQEAM111@Z) referenced in function "protected: virtual void __cdecl rtk::CudaFDKBackProjectionImageFilter::GenerateData(void)" (?GenerateData@CudaFDKBackProjectionImageFilter@rtk@@MEAAXXZ) <span class="" style="white-space:pre">      </span>C:\SimonRit-RTK-4353(withHNC)\build\applications\rtkcuda.lib(rtkCudaFDKBackProjectionImageFilter.obj)<span class="" style="white-space:pre">     </span>rtkinlinefdk</div>
<div>Error<span class="" style="white-space:pre">       </span>5<span class="" style="white-space:pre"> </span>error LNK2019: Unresolved external symbols "void __cdecl CUDA_fft_convolution(struct int3 const &,float *,struct float2 *)" (?CUDA_fft_convolution@@YAXAEBUint3@@PEAMPEAUfloat2@@@Z) referenced in function "protected: virtual void __cdecl rtk::CudaFFTRampImageFilter::GenerateData(void)" (?GenerateData@CudaFFTRampImageFilter@rtk@@MEAAXXZ) <span class="" style="white-space:pre">        </span>C:\SimonRit-RTK-4353(withHNC)\build\applications\rtkcuda.lib(rtkCudaFFTRampImageFilter.obj)<span class="" style="white-space:pre">       </span>rtkinlinefdk</div>
<div>Error<span class="" style="white-space:pre">       </span>6<span class="" style="white-space:pre"> </span>error LNK1120: Five unresolved external symbols<span class="" style="white-space:pre">   </span>C:\SimonRit-RTK-4353(withHNC)\build\Release\rtkinlinefdk.exe<span class="" style="white-space:pre">      </span>rtkinlinefdk</div>
<div>Error<span class="" style="white-space:pre">       </span>7<span class="" style="white-space:pre"> </span>error LNK2019: Unresolved external symbols "void __cdecl CUDA_reconstruct_conebeam_init(int * const,int * const,float * &,float * &,float * &)" (?CUDA_reconstruct_conebeam_init@@YAXQEAH0AEAPEAM11@Z) referenced in function "public: void __cdecl rtk::CudaFDKBackProjectionImageFilter::InitDevice(void)" (?InitDevice@CudaFDKBackProjectionImageFilter@rtk@@QEAAXXZ) <span class="" style="white-space:pre"> </span>C:\SimonRit-RTK-4353(withHNC)\build\applications\rtkcuda.lib(rtkCudaFDKBackProjectionImageFilter.obj)<span class="" style="white-space:pre">     </span>rtkfdk</div>
<div>Error<span class="" style="white-space:pre">       </span>8<span class="" style="white-space:pre"> </span>error LNK2019: Unresolved external symbols "class std::vector<int,class std::allocator<int> > __cdecl GetListOfCudaDevices(void)" (?GetListOfCudaDevices@@YA?AV?$vector@HV?$allocator@H@std@@@std@@XZ) referenced in function "public: void __cdecl rtk::CudaFDKBackProjectionImageFilter::InitDevice(void)" (?InitDevice@CudaFDKBackProjectionImageFilter@rtk@@QEAAXXZ) <span class="" style="white-space:pre"> </span>C:\SimonRit-RTK-4353(withHNC)\build\applications\rtkcuda.lib(rtkCudaFDKBackProjectionImageFilter.obj)<span class="" style="white-space:pre">     </span>rtkfdk</div>
<div>Error<span class="" style="white-space:pre">       </span>9<span class="" style="white-space:pre"> </span>error LNK2019: Unresolved external symbols "void __cdecl CUDA_reconstruct_conebeam_cleanup(int * const,float *,float *,float *,float *)" (?CUDA_reconstruct_conebeam_cleanup@@YAXQEAHPEAM111@Z) referenced in function "public: void __cdecl rtk::CudaFDKBackProjectionImageFilter::CleanUpDevice(void)" (?CleanUpDevice@CudaFDKBackProjectionImageFilter@rtk@@QEAAXXZ) <span class="" style="white-space:pre">      </span>C:\SimonRit-RTK-4353(withHNC)\build\applications\rtkcuda.lib(rtkCudaFDKBackProjectionImageFilter.obj)<span class="" style="white-space:pre">     </span>rtkfdk</div>
<div>Error<span class="" style="white-space:pre">       </span>10<span class="" style="white-space:pre">        </span>error LNK2019: Unresolved external symbols "void __cdecl CUDA_reconstruct_conebeam(int * const,int * const,float *,float * const,float *,float *,float *)" (?CUDA_reconstruct_conebeam@@YAXQEAH0PEAMQEAM111@Z) referenced in function "protected: virtual void __cdecl rtk::CudaFDKBackProjectionImageFilter::GenerateData(void)" (?GenerateData@CudaFDKBackProjectionImageFilter@rtk@@MEAAXXZ) <span class="" style="white-space:pre">      </span>C:\SimonRit-RTK-4353(withHNC)\build\applications\rtkcuda.lib(rtkCudaFDKBackProjectionImageFilter.obj)<span class="" style="white-space:pre">     </span>rtkfdk</div>
<div>Error<span class="" style="white-space:pre">       </span>11<span class="" style="white-space:pre">        </span>error LNK2019: Unresolved external symbols "void __cdecl CUDA_fft_convolution(struct int3 const &,float *,struct float2 *)" (?CUDA_fft_convolution@@YAXAEBUint3@@PEAMPEAUfloat2@@@Z) referenced in function "protected: virtual void __cdecl rtk::CudaFFTRampImageFilter::GenerateData(void)" (?GenerateData@CudaFFTRampImageFilter@rtk@@MEAAXXZ) <span class="" style="white-space:pre">        </span>C:\SimonRit-RTK-4353(withHNC)\build\applications\rtkcuda.lib(rtkCudaFFTRampImageFilter.obj)<span class="" style="white-space:pre">       </span>rtkfdk</div>
<div>Error<span class="" style="white-space:pre">       </span>12<span class="" style="white-space:pre">        </span>error LNK1120: Five unresolved external symbols<span class="" style="white-space:pre">   </span>C:\SimonRit-RTK-4353(withHNC)\build\Release\rtkfdk.exe<span class="" style="white-space:pre">    </span>rtkfdk</div>
</div></div><div>=============================================<br></div><div><br></div><div>Cheers,</div><div>Andy</div>