Using a C++ library from either C or Scheme

Christian Stimming stimming@tuhh.de
Tue, 07 May 2002 10:12:36 +0200


gnucash@cbbrowne.com wrote:

>>Also, does anybody know any resources and/or tutorials and/or examples on how
>>to wrap the C++-library best into C or Scheme?
> 
> Ack!  There's already a downright frightening number of dependencies in 
> GnuCash what with the GNOME stuff.
> 
> Throwing in C++ as another would be downright disastrous.


Oops. Maybe I should clear things up a bit: I totally agree that Gnucash 
should not include any C++ dependencies. I am not intending to add any 
C++ parts into Gnucash.

Rather, I'm going to use an existing library (more precisely: two 
libraries, OpenHBCI and libaqmoney) which happen to be written in C++. 
But I will have development access to them -- therefore I can provide 
wrappers to our favorite programming language to gnucash. And my 
question was about how to write those wrappers and in which language 
that would be easiest.

For the non-HBCI-using users this will just result in another configure 
option --with-hbci, which will be disabled by default. For the 
hbci-using users, the enabled hbci feature will require them to have 
some more libraries installed (the abovementioned OpenHBCI plus 
libaqmoney plus their dependencies).


Christian