I think you may be mixing languages, perhaps... it isn't clear from your example.
REAL is a data type in most java implementations, but not c/c++.
Unless you have typedef'd it somewhere you should also be getting a host of other errors.
This should work:
Code:
#include <stdio.h>
float some_func(float *some_array);
int main(int argc, char **argv)
{
float my_array[2];
my_array[0] = 1.0;
my_array[1] = 2.0;
float val = some_func(my_array);
printf("val=%f\n", val);
}
float some_func(float *some_array)
{
return some_array[0] + some_array[1];
}