Hi Im currently using 9800GT and windows platform for programming. I made my OpenGL, CUDA interlop program based on simpleGL. I checked the property of simpleGL and made them similar except for mine, I made the property to ignore libcmt.lib. Then I get Link2019 errors related to those functions in
cutil.h header file. Following are the errors from debugging window
1>Linking…
1>Resampling_GL.obj : error LNK2019: unresolved external symbol __imp__cutCheckCmdLineFlag@12 referenced in function _main
1>Resampling_GL.obj : error LNK2019: unresolved external symbol __imp__cutGetAverageTimerValue@4 referenced in function “void __cdecl computeFPS(void)” (?computeFPS@@YAXXZ)
1>Resampling_GL.obj : error LNK2019: unresolved external symbol “public: __thiscall CheckBackBuffer::CheckBackBuffer(unsigned int,unsigned int,unsigned int,bool)” (??0CheckBackBuffer@@QAE@III_N@Z) referenced in function “enum CUTBoolean __cdecl runTest(int,char * *)” (?runTest@@YA?AW4CUTBoolean@@HPAPAD@Z)
1>Resampling_GL.obj : error LNK2019: unresolved external symbol __imp__cutCreateTimer@4 referenced in function “enum CUTBoolean __cdecl runTest(int,char * *)” (?runTest@@YA?AW4CUTBoolean@@HPAPAD@Z)
1>Resampling_GL.obj : error LNK2019: unresolved external symbol __imp__cutGetCmdLineArgumenti@16 referenced in function “int __cdecl cutilDeviceInit(int,char * *)” (?cutilDeviceInit@@YAHHPAPAD@Z)
1>Resampling_GL.obj : error LNK2019: unresolved external symbol __imp__cutStopTimer@4 referenced in function “void __cdecl display(void)” (?display@@YAXXZ)
1>Resampling_GL.obj : error LNK2019: unresolved external symbol __imp__cutStartTimer@4 referenced in function “void __cdecl display(void)” (?display@@YAXXZ)
1>Resampling_GL.obj : error LNK2019: unresolved external symbol __imp__cutDeleteTimer@4 referenced in function “void __cdecl cleanup(void)” (?cleanup@@YAXXZ)
1>C:\Users\RETINALOCT2\Desktop\Jay\OCTProcessor\gpu_testers\GL_With_Rendering\Debug\Resampling_GL.exe : fatal error LNK1120: 8 unresolved externals
Can somebody tell me why this will help Im using following headers in my code. Thanks.
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <math.h>
// Graphics includes
#include <GL/glew.h>
#include <GL/glut.h>
// includes CUDA <–> C++ interlops
#include <cuda_runtime_api.h>
#include <cutil_inline.h>
#include <cutil_gl_inline.h>
#include <cutil_gl_error.h>
#include <cuda_gl_interop.h>
#include <vector_types.h>
#include <rendercheck_gl.h>