Results 1 to 3 of 3

Thread: OpenCL C++ bindings and Visual Studio 2008

  1. #1

    OpenCL C++ bindings and Visual Studio 2008

    I'm trying to setup my programming environment so I can start developing OpenCL on Visual Studio 2008. On VS I've added to project dependencies the OpenCL.lib and OpenCL header files from NVidia SDK folders, and downloaded the cl.hpp for C++ bindings.
    Everything should be fine, but running the C++ bindings example just gives me lots of errors like:

    error C2039: 'set_terminate' : is not a member of '`global namespace''
    error C2873: 'set_terminate' : symbol cannot be used in a using-declaration
    error C2039: 'terminate_handler' : is not a member of '`global namespace''
    error C2923: 'cl::vector' : 'size_t' is not a valid template type argument for parameter 'T'
    error C2504: 'exception' : base class undefined
    (...)

    and so on... everybody had the same issues or knows how to make that example up and running on Visual Studio?

  2. #2

    Re: OpenCL C++ bindings and Visual Studio 2008

    Well, solved it removing #define __CL_ENABLE_EXCEPTIONS and adding #include <malloc.h> ...

  3. #3

    Re: OpenCL C++ bindings and Visual Studio 2008

    Is it normal not having Error class defined on namespace cl?

Similar Threads

  1. openCL using visual studio 2008..
    By phoebe0105 in forum OpenCL
    Replies: 0
    Last Post: 04-19-2010, 09:50 AM
  2. Visual Studio 2008 Setup with OpenCL Plugin
    By plasmaphonic in forum OpenCL
    Replies: 2
    Last Post: 04-18-2010, 04:04 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •