Thanks a lot. How would this work if I wanted to not run Guile embedded in a C++ program, but instead load the C++ code at runtime from a regular Guile interpreter? (This could use either the libffi binding or the regular Guile ones.)
Thank you Noah On Fri, May 14, 2010 at 3:54 PM, objc <objcj...@hotmail.com> wrote: > Dear Noah, > > there are no inherent problems with mixing Guile, C, C++, guile ........(MS > windows, LINUX,GNUStep,X11) > Depends on how you order your includes, which OS you use, version conflicts > etc. > Using scoping rules to the fullest you can pretty much mix it up as you > like. > > obj. > > -------------------------------------------------- > From: "Noah Lavine" <noah...@gmail.com> > Sent: Thursday, May 13, 2010 8:53 PM > To: <guile-user@gnu.org> > Subject: Guile and C++ > >> Dear Guile-users, >> >> I am wondering what the best way is to connect Guile with C++ code. I >> notice that several large programs use Guile in this way (TeXmacs and >> LilyPond), so it seems that it is possible to do it, and it works well >> enough that you can write a large, functioning program with it. >> However, I don't see any mention of it in the Guile documentation. >> Does Guile come with the ability to use C++ code, or should I plan on >> writing C wrappers for any functions I want to use? (I'm planning on >> using Guile 2.0, if that makes a difference.) >> >> Thank you >> Noah Lavine >> >> >