Obtaing error strings from codes

Hi there I’m using the C++ openCL bindings and my errors take the form of an int (-10, -54 etc) I was wondering how I can use this int to obtain the actual string error message?

Thanks in advance.

Your best bet at this point is to look up the number in the cl.h header file. Also, you can specify a callback function with the Context that will be called with more descriptive error messages. I know the OS X implementation will give very informative error messages to this call back function, your mileage may vary with others.

Cheers that helped a lot