Problem is with c++ code in your .br file.
.br should contain c-language only.
Move non-kernel code to your C++ file if you like to use C++ for non-kernel code.
Ok i use the C++ Code only in my *.cpp Files, how i can pass a Stream to a function in the *.br file:
kernel void test_kernel(float a<>, float b<>, out float c<>
c = a + b;
void call_brook(float a<>, float b<>, float c<>
i get the error: ERROR--1 Problem with stream declaration Statement: float s1()
I don't want to pass them direct to the kernel.