chicken-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


From: Hugo Arregui
Subject: [Chicken-users] some questions about easyffi and foreign code
Date: Fri, 1 Feb 2013 13:55:55 -0300

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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]