unknown symbol `clGetDeviceIDs' when trying to use OpenCL
Created by: ktosiek
When I'm trying to build any code using OpenCL with:
ghc -lOpenCL --make Test.hs
I'm getting:
ghc: /home/tomek/.cabal/lib/OpenCL-1.0.3.0/ghc-7.4.1/HSOpenCL-1.0.3.0.o: unknown symbol `clGetDeviceIDs'
It's the same for cabal-ghci in project using OpenCL, still, it works with runhaskell -lOpenCL Test.hs
it looks like adding "extra-libraries: OpenCL" in Library section of cabal file fixes this issue.