I’m on Windows 10 in Visual Studio 2022 trying to compile some CUDA code. I’ve used the CUDA 11.7 integration with VS to add a CUDA project (and I have successfully compiled CUDA on Windows before). I’ve added a few extra required libraries to the Properties->Linker->Additional Dependencies like ‘nvrtc.lib’ to get rid of some unresolved symbols but I can’t figure out how to get rid of the last few missing symbols:
1>proto.cu.obj : error LNK2001: unresolved external symbol cuGetErrorString
1>proto.cu.obj : error LNK2001: unresolved external symbol cuGetErrorName
1>proto.cu.obj : error LNK2001: unresolved external symbol cuModuleLoadData
1>proto.cu.obj : error LNK2001: unresolved external symbol cuModuleLoadDataEx
1>proto.cu.obj : error LNK2001: unresolved external symbol cuModuleUnload
1>proto.cu.obj : error LNK2001: unresolved external symbol cuModuleGetFunction
1>proto.cu.obj : error LNK2001: unresolved external symbol cuLinkCreate_v2
1>proto.cu.obj : error LNK2001: unresolved external symbol cuLinkAddData_v2
1>proto.cu.obj : error LNK2001: unresolved external symbol cuLinkAddFile_v2
1>proto.cu.obj : error LNK2001: unresolved external symbol cuLinkComplete
1>proto.cu.obj : error LNK2001: unresolved external symbol cuLinkDestroy
1>proto.cu.obj : error LNK2001: unresolved external symbol cuLaunchKernel
Hoping someone might see the pattern and know what is missing.
–Roger