Hello,
I am trying to embed some Chicken code in a C++ application. I
have a C++ class with a constructor that calls
CHICKEN_intitialize(0, 0, 0, (void*)C_toplevel), and that call returns
0. Another method in the class subsequently makes the following call:
C_word result = C_SCHEME_UNDEFINED;
int status;
status = CHICKEN_eval_string("(repl)", &result);
Unfortunately, this causes a segmentation fault. I have also tried
calling CHICKEN_run((void*)CHICKEN_default_toplevel) in the
constructor, and many other variations of this, but a segmentation
fault occurs in all cases. I am using Chicken 2.3. Has anyone had a
recent experience with embedding Chicken in a C or C++ program? My
code is attached to this message, if anyone is interested in looking
at it. I appreciate all and any help.