From: Larry Hunter
Subject: Interface between some CL and C++
Date: 
Message-ID: <HUNTER.94Sep20100214@work.nlm.nih.gov>
As a trying-to-stick-with-it lisp hacker, I hate asking these kinds of
questions, but...

Has anyone had much success linking C++ programs into some Common Lisp?  I'm
using Franz on an SGI (ACL 4.2) and the foreign function interface, which
although greatly improved for SVR4 (shared objects!), is designed with only
C in mind.  There are a couple of things you can do to demangle the C++
names, make sure inits are executed, etc., but it's pretty painful.  Do any
of the other CL implementations have a cleaner foreign function interface to
C++?

Ideally, I'd like CL code that reads *.h files and generates the appropriate
def-c(++)-types, defforeigns, etc. (or whatever), but I'd settle for something
that could just find the right entry points given a variable or function
name....

Larry

--
Lawrence Hunter, PhD.
National Library of Medicine
Bldg. 38A, 9th floor
Bethesda. MD 20894 USA
tel: +1 (301) 496-9300
fax: +1 (301) 496-0673 
internet: ······@nlm.nih.gov
encryption: RIPEM via server; PGP via "finger ······@work.nlm.nih.gov"