[plt-scheme] Using the Foreign Language Interface.

From: Eli Barzilay (eli at barzilay.org)
Date: Wed Dec 10 20:03:56 EST 2008

On Dec 10, Zukowski, Steven D wrote:
> I'm having issues with the Foreign Language Libraries and using them
> to get at some C++ functions.

The short answer is that you can't.  C++ libraries use mangled names
and other tweaks that make interfacing them from Scheme very
difficult, perhaps even impossible to do in a portable way.  Your best
shot is to write a small C library that iteracts with the C++ code,
and interface that (the C library) from Scheme.

          ((lambda (x) (x x)) (lambda (x) (x x)))          Eli Barzilay:
                  http://www.barzilay.org/                 Maze is Life!

Posted on the users mailing list.