I’m attempting to create and compile an OpenCL program outside of the SDK framework, using GCC under Cygwin on Windows XP. Upon initial compilation, I was receiving link errors, and a brief Google search seemed to indicate that I needed to add -lOpenCL to the build command. However, this now gives the error:
/usr/lib/gcc/i686-pg-cygwin/3.4.4/…/…/…/…/i686-pc-cygwin/bin/ld: cannot find -lOpenCL
I have located the OpenCL.lib file in the NVIDIA GPU Computing SDK - where must I put it or what configuration settings must I modify to enable gcc to locate it at link-time?