jeanluca

compile/run c code

Discussion created by jeanluca on Jan 1, 2010
Latest reply on Jan 2, 2010 by jeanluca

Hi All

On my fedora 12 system I've installed

ati-stream-sdk-v2.0-lnx32.tgz

I can run the samples from ati-stream-sdk.

Here is the problem, I want to program in C, but I cannot get it to work. For example, I'm used to program OpenCL stuff on my Mac. All I needed to do  was to include

#include <OpenCL/opencl.h>

and compile

$> gcc -framework OpenCL helloworld.c

 

However, this code doesn't compile at all on my Linux system. Also I cannot find much about C, most is C++, right ?

Anu suggestion how to get my C code to work? Maybe someone has a working hello_world.c

 

thnx

Luca

Outcomes