Looks like it might be an issue with your compiler. You are going to have to investigate on your own.
My guess it that your compiler does not allow you to pass by function.
You could try creating your own test program and see if it compiles.
I also realized that I used some variables that are declared on use. My compiler works fine with them but others might choke. I will get those updates changed soon but investigate your structure issue. If I have to I can pass by value. You might check that generic pointer thing. That is very strange and I have never seen that.
Are you certain you have the latest version of your compiler?
My guess it that your compiler does not allow you to pass by function.
You could try creating your own test program and see if it compiles.
Code:
struct test_struct
{
int x;
int y;
};
void test(struct test_struct t)
{
int x;
int y;
x = t.x;
y = t.y;
}
void main()
{
struct test_struct a;
test(a);
}
I also realized that I used some variables that are declared on use. My compiler works fine with them but others might choke. I will get those updates changed soon but investigate your structure issue. If I have to I can pass by value. You might check that generic pointer thing. That is very strange and I have never seen that.
Are you certain you have the latest version of your compiler?