[cfe-dev] clang does not support extern for OpenCL
lattner at apple.com
Fri Apr 12 15:01:17 PDT 2013
You need to set the cl-std value to 1.2. By default its 1.1.
On Apr 12, 2013, at 2:40 PM, "Liu, Yaxun (Sam)" <Yaxun.Liu at amd.com> wrote:
> I was trying to compile a simple OpenCL source with clang:
> extern int foo(int, int);
> I got an error msg:
> clang.exe : tmp.cl:1:1: error: OpenCL does not support the 'extern' storage class specifier
> OpenCL spec 1.2 says:
> The typedef, extern, and static storage-class specifiers are supported.
> Is this a bug? Or did I miss anything? Thanks.
> cfe-dev mailing list
> cfe-dev at cs.uiuc.edu
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the cfe-dev