<p dir="ltr">Great! I had no clue what the problem was.... Let us know if when we can help you with anything else,<br>
Simon</p>
<div class="gmail_quote">On Nov 29, 2012 8:11 AM, "Andy Shieh" <<a href="mailto:hsieandy@gmail.com">hsieandy@gmail.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi Simon,<div><br></div><div>The problem seems to disappear when I updated the whole directory to the newest version of RTK.</div><div><br></div><div>Cheers,</div><div>Andy</div><div class="gmail_extra"><br><br><div class="gmail_quote">

2012/11/29 Andy Shieh <span dir="ltr"><<a href="mailto:hsieandy@gmail.com" target="_blank">hsieandy@gmail.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

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 style="white-space:pre-wrap">      </span>1<span style="white-space:pre-wrap">       </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 style="white-space:pre-wrap">       </span>C:\SimonRit-RTK-4353(withHNC)\build\applications\rtkcuda.lib(rtkCudaFDKBackProjectionImageFilter.obj)<span style="white-space:pre-wrap">   </span>rtkinlinefdk</div>


<div>Error<span style="white-space:pre-wrap">     </span>2<span style="white-space:pre-wrap">       </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 style="white-space:pre-wrap">       </span>C:\SimonRit-RTK-4353(withHNC)\build\applications\rtkcuda.lib(rtkCudaFDKBackProjectionImageFilter.obj)<span style="white-space:pre-wrap">   </span>rtkinlinefdk</div>


<div>Error<span style="white-space:pre-wrap">     </span>3<span style="white-space:pre-wrap">       </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 style="white-space:pre-wrap">    </span>C:\SimonRit-RTK-4353(withHNC)\build\applications\rtkcuda.lib(rtkCudaFDKBackProjectionImageFilter.obj)<span style="white-space:pre-wrap">   </span>rtkinlinefdk</div>


<div>Error<span style="white-space:pre-wrap">     </span>4<span style="white-space:pre-wrap">       </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 style="white-space:pre-wrap">    </span>C:\SimonRit-RTK-4353(withHNC)\build\applications\rtkcuda.lib(rtkCudaFDKBackProjectionImageFilter.obj)<span style="white-space:pre-wrap">   </span>rtkinlinefdk</div>


<div>Error<span style="white-space:pre-wrap">     </span>5<span style="white-space:pre-wrap">       </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 style="white-space:pre-wrap">      </span>C:\SimonRit-RTK-4353(withHNC)\build\applications\rtkcuda.lib(rtkCudaFFTRampImageFilter.obj)<span style="white-space:pre-wrap">     </span>rtkinlinefdk</div>


<div>Error<span style="white-space:pre-wrap">     </span>6<span style="white-space:pre-wrap">       </span>error LNK1120: Five unresolved external symbols<span style="white-space:pre-wrap"> </span>C:\SimonRit-RTK-4353(withHNC)\build\Release\rtkinlinefdk.exe<span style="white-space:pre-wrap">    </span>rtkinlinefdk</div>


<div>Error<span style="white-space:pre-wrap">     </span>7<span style="white-space:pre-wrap">       </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 style="white-space:pre-wrap">       </span>C:\SimonRit-RTK-4353(withHNC)\build\applications\rtkcuda.lib(rtkCudaFDKBackProjectionImageFilter.obj)<span style="white-space:pre-wrap">   </span>rtkfdk</div>


<div>Error<span style="white-space:pre-wrap">     </span>8<span style="white-space:pre-wrap">       </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 style="white-space:pre-wrap">       </span>C:\SimonRit-RTK-4353(withHNC)\build\applications\rtkcuda.lib(rtkCudaFDKBackProjectionImageFilter.obj)<span style="white-space:pre-wrap">   </span>rtkfdk</div>


<div>Error<span style="white-space:pre-wrap">     </span>9<span style="white-space:pre-wrap">       </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 style="white-space:pre-wrap">    </span>C:\SimonRit-RTK-4353(withHNC)\build\applications\rtkcuda.lib(rtkCudaFDKBackProjectionImageFilter.obj)<span style="white-space:pre-wrap">   </span>rtkfdk</div>


<div>Error<span style="white-space:pre-wrap">     </span>10<span style="white-space:pre-wrap">      </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 style="white-space:pre-wrap">    </span>C:\SimonRit-RTK-4353(withHNC)\build\applications\rtkcuda.lib(rtkCudaFDKBackProjectionImageFilter.obj)<span style="white-space:pre-wrap">   </span>rtkfdk</div>


<div>Error<span style="white-space:pre-wrap">     </span>11<span style="white-space:pre-wrap">      </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 style="white-space:pre-wrap">      </span>C:\SimonRit-RTK-4353(withHNC)\build\applications\rtkcuda.lib(rtkCudaFFTRampImageFilter.obj)<span style="white-space:pre-wrap">     </span>rtkfdk</div>


<div>Error<span style="white-space:pre-wrap">     </span>12<span style="white-space:pre-wrap">      </span>error LNK1120: Five unresolved external symbols<span style="white-space:pre-wrap"> </span>C:\SimonRit-RTK-4353(withHNC)\build\Release\rtkfdk.exe<span style="white-space:pre-wrap">  </span>rtkfdk</div>


</div></div><div>=============================================<br></div><div><br></div><div>Cheers,</div><div>Andy</div>
</blockquote></div><br></div>
<br>_______________________________________________<br>
Rtk-users mailing list<br>
<a href="mailto:Rtk-users@openrtk.org">Rtk-users@openrtk.org</a><br>
<a href="http://public.kitware.com/cgi-bin/mailman/listinfo/rtk-users" target="_blank">http://public.kitware.com/cgi-bin/mailman/listinfo/rtk-users</a><br>
<br></blockquote></div>