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:

$ 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.

2) Then I tried another approach:

http://pastebin.com/E6xfVe29

Again compiles with no error, but then:

$ csc -X easyffi test.scm -c++; ./test

Error: bad argument type - not a pointer: 0

        Call history:

        test.scm:1: ##sys#require       
        test.scm:17: double->uint64             <--

The error is very descriptive, but I don't know how I should handle
pointers or references here.

Thanks,
Hugo

_______________________________________________
Chicken-users mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/chicken-users

Reply via email to