chicken-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Chicken-users] bind error : "bad prototype syntax"


From: Felix
Subject: Re: [Chicken-users] bind error : "bad prototype syntax"
Date: Thu, 09 Dec 2010 03:27:38 -0500 (EST)

From: David Dreisigmeyer <address@hidden>
Subject: [Chicken-users] bind error : "bad prototype syntax"
Date: Wed, 8 Dec 2010 10:26:44 -0500

> For the attached scheme file I'm getting the error below.  The line
> it's complaining about looks like this:
> 

Add:

#define CL_API_CALL
#define CL_API_SUFFIX__VERSION_1_0
#define CL_API_ENTRY

I also had to add these to make it compile:

typedef int cl_int;
typedef unsigned int cl_uint;
typedef unsigned int cl_mem_flags;
typedef unsigned long cl_ulong;

I also recommend to use `bind' (not `bind*') and to add

(foreign-declare "#include <OpenCL/cl.h>")

at the start of your file.


cheers,
felix



reply via email to

[Prev in Thread] Current Thread [Next in Thread]