I am running Windows 10 Pro 64-bit and Visual Studio 2015 with CUDA SDK Toolkit 9.1 installed properly. I can open all Sample Projects, build them, and then successfully execute them.
However, when I try to complete any simple NPP program using any number of the NPP Geometry Transforms, at:
I get unresolved external symbol errors in linking, such as the following:
Error LNK2019 unresolved external symbol nppiFilter_8u_C1R referenced in function Error LNK2019 unresolved external symbol nppiMirror_8u_C1R referenced in function Error LNK2019 unresolved external symbol nppiRotate_8u_C1R referenced in function
I have this document, as well, and the declarations in this PDF match the web site (above)
I can also open successive includes: npp.h, nppi.h, nppi_geometry_transforms.h – and the declarations are there. For example:
nppiRotate_8u_C1R(const Npp8u * pSrc, NppiSize oSrcSize, int nSrcStep, NppiRect oSrcROI,
Npp8u * pDst, int nDstStep, NppiRect oDstROI,
double nAngle, double nShiftX, double nShiftY, int eInterpolation);
nppiMirror_8u_C1R(const Npp8u * pSrc, int nSrcStep,
Npp8u * pDst, int nDstStep,
NppiSize oROI, NppiAxis flip);
I have (even) gone to the extremes of commenting out all code in a sample, jpegNPP for instance (which successfully compiles and executes correctly) and entered in my code and these unresolved externals appear.
In order to save some time, consider a simple example. I have used the following code from StackOverflow:
Forget (for now) that the code referenced (at Stack Overflow) might not produce a correct result, none of the simple code examples I have will (even) build because of the link errors.
Does anyone know how to fix these errors ?