I am using Microsoft Visual Studio 2005 (version 8) and would like to set up the necessary includes and libraries in order to be able to compile, for instance, one of the Nvidia examples. So far I have solved several issues:
- First of all I have set the Custom Build Rules provided by JaredHoberock.
- Then I added CUDA\include and CUDA\lib directories in the Options menu.
- Next thing, I added the Additional Dependences in the Project Properties menu (cuda.lib, cudart.lib, … and so on).
- And finally, I solved a library conflict by ignoring LIBCMTD.lib.
As far as I understand, this should do the job, but I still get a link error. I get several unresolved external symbol errors according for every call I do from a .cpp file to a .cu file. It seems like it only tries to link the .cpp files ignoring the .obj compiled .cu files.
I have tried to fix the problem in many different ways but I don’t seem to have any success.
I imagine it can be just a simple modification, but I have no idea which one. Could someone please point me out how to fix the linking problem?