I was getting the same errors and once i replaced the [new] and [delete] with malloc and free it worked (yeah and I use the updated driver). It makes sense since the code is being declared in an extern “C” environment whereby new and delete won’t be supported. Hope I am right on this.
replacing new and delete with malloc and free worked for me. i had the same error message. i also used extern “C” because i could not get my project to compile correctly in emulation mode without it. i wrapped my code in extern “C” and forgot to change over the new & delete.
I’m trying to write a simple code for getting some information from my GPU (NVidia Geforce 760 GTX) such as temperature using NVAPI.
I started with CUDA sample codes. Maybe you see these sample codes provided by NVidia. I copied one of the sample codes (‘CUDA Samples\v6.5\0_Simple\vectorAdd’) to write in this sample. I copied all of ‘.h’ files of NVAPI to ‘CUDA Samples\v6.5\common\inc’ and copied ‘nvapi.lib’ to ‘CUDA Samples\v6.5\common\lib\Win32’ and copied ‘nvapi64.lib’ to ‘CUDA Samples\v6.5\common\lib\x64’.
I preformed these copies to ‘C:\Program Files\CUDA\v6.5\include’ and ‘C:\Program Files\CUDA\v6.5\lib’.
But when I build my code I received these errors:
Error 28 error LNK2019: unresolved external symbol NvAPI_GPU_GetThermalSettings referenced in function...
Error 29 error LNK2019: unresolved external symbol NvAPI_GPU_GetFullName referenced in function...
and some similar errors.