Build error on 10.6 x86: cl.h: error: expected function body after function declarator
Opened this issue · 2 comments
barracuda156 commented
In file included from command_queue.c:18:
In file included from ./socl.h:27:
./CL/cl.h:597:80: error: expected function body after function declarator
cl_uint * /* num_devices_ret */) CL_API_SUFFIX__VERSION_1_2;
^
./CL/cl.h:600:43: error: expected function body after function declarator
clRetainDevice(cl_device_id /* device */) CL_API_SUFFIX__VERSION_1_2;
^
./CL/cl.h:603:44: error: expected function body after function declarator
clReleaseDevice(cl_device_id /* device */) CL_API_SUFFIX__VERSION_1_2;
^
./CL/cl.h:610:35: error: expected ')'
void (CL_CALLBACK * /* pfn_notify */)(const char *, const void *, size_t, void *),
^
./CL/cl.h:610:22: note: to match this '('
void (CL_CALLBACK * /* pfn_notify */)(const char *, const void *, size_t, void *),
^
./CL/cl.h:617:43: error: expected ')'
void (CL_CALLBACK * /* pfn_notify*/ )(const char *, const void *, size_t, void *),
^
./CL/cl.h:617:30: note: to match this '('
void (CL_CALLBACK * /* pfn_notify*/ )(const char *, const void *, size_t, void *),
^
./CL/cl.h:667:63: error: expected function body after function declarator
cl_int * /* errcode_ret */) CL_API_SUFFIX__VERSION_1_1;
^
./CL/cl.h:675:58: error: expected function body after function declarator
cl_int * /* errcode_ret */) CL_API_SUFFIX__VERSION_1_2;
^
./CL/cl.h:707:55: error: expected ')'
void (CL_CALLBACK * /*pfn_notify*/)( cl_mem /* memobj */, void* /*user_data*/),
^
./CL/cl.h:707:42: note: to match this '('
void (CL_CALLBACK * /*pfn_notify*/)( cl_mem /* memobj */, void* /*user_data*/),
^
./CL/cl.h:708:73: error: expected function body after function declarator
void * /*user_data */ ) CL_API_SUFFIX__VERSION_1_1;
^
barracuda156 commented
Could you try this patch?
Sorry for a delay. Yes, I will try it shortly and update here.