MOO-cows Mailing List Archive
[Prev][Next][Index][Thread]
Re: register_function line
Here's what I got:
dist = new_float(sqrt(dist));
return make_var_pack(dist);
Then I get:
gcc -Wall -Wwrite-strings -g -O -c extensions.c
extensions.c: In function `bf_distance':
extensions.c:221: incompatible types in assignment
extensions.c:222: incompatible type for argument 1 of `make_var_pack'
*** Error code 1
I found that new_float is already a function, defined in numbers.c
I think the problem is somewhere integers are getting mixed with floats,
raising the 'incompatible types in assignment' or maybe how 'dist' is
defined at the beginning of the function.
I've been trying for a while now and just can't get it to work. Maybe someone
can figure out this little (or is it) problem...
Thanks again, I really appreciate the help given.
Home |
Subject Index |
Thread Index