Re: [Chicken-users] some questions about easyffi and foreign code

2013-02-03 Thread Kristian Lein-Mathisen
Hey Hugo, Yeah, that example wasn't working for me either. If you put (use easyffi) at the top of the file though, it should work. Note that easyffi is deprecated, use bind http://api.call-cc.org/doc/bind instead: (use bind) (bind* double modf(double x, ___out double *iptr);) (let-values ([(frac

Re: [Chicken-users] some questions about easyffi and foreign code

2013-02-03 Thread Hugo Arregui
Hey Kristian, many thanks for you response! Yeah, that example wasn't working for me either. If you put (use easyffi) at the top of the file though, it should work. Note that easyffi is deprecated, use bind instead: (use bind) (bind* double modf(double x, ___out double *iptr);)

Re: [Chicken-users] some questions about easyffi and foreign code

2013-02-02 Thread Hugo Arregui
Hi again, 1) .. $ csc -X easyffi test.scm -c++; ./test Error: unbound variable: foreign-parse Call history: foreign-parse I have no idea of what's going on. Could this be a problem in my installation? The example in the wiki is not working either: #! #ifndef CHICKEN

[Chicken-users] some questions about easyffi and foreign code

2013-02-01 Thread Hugo Arregui
Hi guys, I'm having some troubles using easyffi to embed some C++ code in my program, sorry if my questions are kind of trivial but it's the first time that I do something like this. 1) First I try this: http://pastebin.com/1X3qcvjK Compiles with no error, but then I get this when it runs: $