I am using some of the functions from cutil.h to time my code. It compiles fine on windows xp with vs 2008. Recently, I switch to window 7 and vs 2008. The same code doesn’t compile and I have following error,
1>LINK : C:\Users\weiqi\Documents\Visual Studio 2008\Projects\corrColumnLateral\Debug\corrColumnLateral.exe not found or not built by the last incremental link; performing full link
1>corrColumnLateral.cu.obj : error LNK2019: unresolved external symbol __imp__cutStopTimer@4 referenced in function _main
1>corrColumnLateral.cu.obj : error LNK2019: unresolved external symbol __imp__cutStartTimer@4 referenced in function _main
1>corrColumnLateral.cu.obj : error LNK2019: unresolved external symbol __imp__cutResetTimer@4 referenced in function _main
1>corrColumnLateral.cu.obj : error LNK2019: unresolved external symbol __imp__cutGetTimerValue@4 referenced in function _main
1>corrColumnLateral.cu.obj : error LNK2019: unresolved external symbol __imp__cutCreateTimer@4 referenced in function _main
The macros from the header file, such as CUDA_SAFE_CALL, work fine, but timing functions like cutCreatTimer fail to compile. Does anyone knows what is going on?