Ok, so I’ve been unable to compile my own SPH code for days now (see thread here: http://forums.nvidia.com/index.php?showtopic=198995 ) so I decided to start with the Particles example program from the CUDA SDK and the port it to an SPH simulation. However, yet again, I am getting similar compilation time errors (see below). I can see that they are all related to GLEW (which is already installed). Hopefully someone has seen this before? I have already tried compiling in Debug and Release modes. I downloaded the project from : http://developer.download.nvidia.com/compute/cuda/sdk/Projects/particles.zip
1>------ Rebuild All started: Project: particles, Configuration: Debug Win32 ------
1>Deleting intermediate and output files for project 'particles', configuration 'Debug|Win32'
1>Compiling with CUDA Build Rule...
1>"C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v3.2\bin\nvcc.exe" -gencode=arch=compute_10,code=\"sm_10,compute_10\" -gencode=arch=compute_20,code=\"sm_20,compute_20\" --machine 32 -ccbin "C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\bin" -Xcompiler "/EHsc /W3 /nologo /Od /Zi /MTd " -I"C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v3.2\/include" -I"./" -I"../../common/inc" -I"../../../shared/inc" -I"C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v3.2\include" -maxrregcount=32 --compile -o "Debug/particleSystem.cu.obj" particleSystem.cu
1>particleSystem.cu
1>tmpxft_00001be0_00000000-6_particleSystem.compute_20.cudafe1.gpu
1>tmpxft_00001be0_00000000-10_particleSystem.compute_20.cudafe2.gpu
1>particleSystem.cu
1>tmpxft_00001be0_00000000-3_particleSystem.compute_10.cudafe1.gpu
1>tmpxft_00001be0_00000000-14_particleSystem.compute_10.cudafe2.gpu
1>particleSystem.cu
1>particleSystem.cu
1>tmpxft_00001be0_00000000-6_particleSystem.compute_20.cudafe1.cpp
1>tmpxft_00001be0_00000000-23_particleSystem.compute_20.ii
1>Note: including lib: glut32.lib
1>Compiling...
1>cl : Command line warning D9035 : option 'Wp64' has been deprecated and will be removed in a future release
1>param.cpp
1>paramgl.cpp
1>Note: including lib: glut32.lib
1>particles.cpp
1>Note: including lib: glut32.lib
1>Note: including windows.h
1>Note: including math.h
1>Note: including assert.h
1>Note: including rendercheckGL.h
1>Note: including <vector>
1>Note: including <map>
1>Note: including <string>
1>Note: including GL/glew.h
1>Note: including GL/glut.h
1>particleSystem.cpp
1>render_particles.cpp
1>shaders.cpp
1>Generating Code...
1>Linking...
1>shrUtils32D.lib(shrUtils.obj) : warning LNK4075: ignoring '/EDITANDCONTINUE' due to '/INCREMENTAL:NO' specification
1>particles.obj : error LNK2001: unresolved external symbol __imp____wglewSwapIntervalEXT
1>particles.obj : error LNK2019: unresolved external symbol __imp__wglewIsSupported referenced in function "void __cdecl initGL(int *,char * *)" (?initGL@@YAXPAHPAPAD@Z)
1>particles.obj : error LNK2019: unresolved external symbol __imp__glewIsSupported referenced in function "void __cdecl initGL(int *,char * *)" (?initGL@@YAXPAHPAPAD@Z)
1>particles.obj : error LNK2019: unresolved external symbol __imp__glewInit referenced in function "void __cdecl initGL(int *,char * *)" (?initGL@@YAXPAHPAPAD@Z)
1>particleSystem.obj : error LNK2001: unresolved external symbol __imp____glewBufferData
1>particleSystem.obj : error LNK2001: unresolved external symbol __imp____glewBindBuffer
1>particleSystem.obj : error LNK2001: unresolved external symbol __imp____glewGenBuffers
1>particleSystem.obj : error LNK2001: unresolved external symbol __imp____glewUnmapBufferARB
1>shrUtils32D.lib(rendercheckGL.obj) : error LNK2001: unresolved external symbol __imp____glewUnmapBufferARB
1>particleSystem.obj : error LNK2001: unresolved external symbol __imp____glewMapBufferARB
1>shrUtils32D.lib(rendercheckGL.obj) : error LNK2001: unresolved external symbol __imp____glewMapBufferARB
1>particleSystem.obj : error LNK2001: unresolved external symbol __imp____glewBindBufferARB
1>render_particles.obj : error LNK2001: unresolved external symbol __imp____glewBindBufferARB
1>shrUtils32D.lib(rendercheckGL.obj) : error LNK2001: unresolved external symbol __imp____glewBindBufferARB
1>particleSystem.obj : error LNK2001: unresolved external symbol __imp____glewDeleteBuffers
1>particleSystem.obj : error LNK2001: unresolved external symbol __imp____glewBufferSubData
1>render_particles.obj : error LNK2001: unresolved external symbol __imp____glewUniform1f
1>render_particles.obj : error LNK2001: unresolved external symbol __imp____glewGetUniformLocation
1>render_particles.obj : error LNK2001: unresolved external symbol __imp____glewUseProgram
1>render_particles.obj : error LNK2001: unresolved external symbol __imp____glewDeleteProgram
1>render_particles.obj : error LNK2001: unresolved external symbol __imp____glewGetProgramInfoLog
1>render_particles.obj : error LNK2001: unresolved external symbol __imp____glewGetProgramiv
1>render_particles.obj : error LNK2001: unresolved external symbol __imp____glewLinkProgram
1>render_particles.obj : error LNK2001: unresolved external symbol __imp____glewAttachShader
1>render_particles.obj : error LNK2001: unresolved external symbol __imp____glewCreateProgram
1>render_particles.obj : error LNK2001: unresolved external symbol __imp____glewCompileShader
1>render_particles.obj : error LNK2001: unresolved external symbol __imp____glewShaderSource
1>render_particles.obj : error LNK2001: unresolved external symbol __imp____glewCreateShader
1>render_particles.obj : error LNK2001: unresolved external symbol __imp____glewClampColorARB
1>shrUtils32D.lib(rendercheckGL.obj) : error LNK2001: unresolved external symbol __imp____glewDeleteBuffersARB
1>shrUtils32D.lib(rendercheckGL.obj) : error LNK2001: unresolved external symbol __imp____glewBufferDataARB
1>shrUtils32D.lib(rendercheckGL.obj) : error LNK2001: unresolved external symbol __imp____glewGenBuffersARB
1>shrUtils32D.lib(rendercheckGL.obj) : error LNK2001: unresolved external symbol __imp____glewBindFramebufferEXT
1>shrUtils32D.lib(rendercheckGL.obj) : error LNK2001: unresolved external symbol __imp____glewGenFramebuffersEXT
1>shrUtils32D.lib(rendercheckGL.obj) : error LNK2001: unresolved external symbol __imp____glewDeleteProgramsARB
1>shrUtils32D.lib(rendercheckGL.obj) : error LNK2001: unresolved external symbol __imp____glewDeleteRenderbuffersEXT
1>shrUtils32D.lib(rendercheckGL.obj) : error LNK2001: unresolved external symbol __imp____glewDeleteFramebuffersEXT
1>shrUtils32D.lib(rendercheckGL.obj) : error LNK2001: unresolved external symbol __imp____glewFramebufferTexture2DEXT
1>shrUtils32D.lib(rendercheckGL.obj) : error LNK2001: unresolved external symbol __imp____glewFramebufferTexture3DEXT
1>shrUtils32D.lib(rendercheckGL.obj) : error LNK2001: unresolved external symbol __imp____glewFramebufferTexture1DEXT
1>shrUtils32D.lib(rendercheckGL.obj) : error LNK2001: unresolved external symbol __imp____glewProgramStringARB
1>shrUtils32D.lib(rendercheckGL.obj) : error LNK2001: unresolved external symbol __imp____glewBindProgramARB
1>shrUtils32D.lib(rendercheckGL.obj) : error LNK2001: unresolved external symbol __imp____glewGenProgramsARB
1>shrUtils32D.lib(rendercheckGL.obj) : error LNK2001: unresolved external symbol __imp____glewGenerateMipmapEXT
1>shrUtils32D.lib(rendercheckGL.obj) : error LNK2001: unresolved external symbol __imp____glewCheckFramebufferStatusEXT
1>shrUtils32D.lib(rendercheckGL.obj) : error LNK2001: unresolved external symbol __imp____glewFramebufferRenderbufferEXT
1>shrUtils32D.lib(rendercheckGL.obj) : error LNK2001: unresolved external symbol __imp____glewGetRenderbufferParameterivEXT
1>shrUtils32D.lib(rendercheckGL.obj) : error LNK2001: unresolved external symbol __imp____glewRenderbufferStorageMultisampleCoverageNV
1>shrUtils32D.lib(rendercheckGL.obj) : error LNK2001: unresolved external symbol __imp____glewBindRenderbufferEXT
1>shrUtils32D.lib(rendercheckGL.obj) : error LNK2001: unresolved external symbol __imp____glewGenRenderbuffersEXT
1>shrUtils32D.lib(rendercheckGL.obj) : error LNK2001: unresolved external symbol __imp____glewRenderbufferStorageMultisampleEXT
1>../../bin/win32/Debug/particles.exe : fatal error LNK1120: 47 unresolved externals
1>Build log was saved at "file://c:\Users\Santos\Desktop\NVIDIA GPU Computing SDK\C\src\particles\Debug\BuildLog.htm"
1>particles - 52 error(s), 2 warning(s)
========== Rebuild All: 0 succeeded, 1 failed, 0 skipped ==========