Re: [Chicken-users] My code doesn't float

2011-08-16 Thread Jim Ursetto
Better solution is probably to declare these in test1.h and then include it from stest1.scm via #> #include "test1.h" <# and also #include it from test1.c for good measure. Same would be true if you had implemented stest1 directly in C. On Aug 17, 2011, at 12:04 AM, Paul Colby wrote: > Got

Re: [Chicken-users] My code doesn't float

2011-08-16 Thread Paul Colby
Got it, I finally resorted to clang and got a warning about implicit declarations in c compilation. Apparently, one needs something to the effect, (foreign-declare "float testFloat(float);") (foreign-declare "double testDouble(double);") in stest1.scm to tell c that testFloat and it's argumen

[Chicken-users] My code doesn't float

2011-08-16 Thread Paul Colby
Hi, I'm running v4.7.0 installed with brew on my mac running 10.6. Before I do a complete reinstall of my operating system I'd like to know if foreign works for anyone? I've made a c-file, -- test1.c --- #include float testFloat(float f) { printf("