Tillman, James writes:
> I realize everyone's busy working on the new beta of htdig, but I need to
> solicit some opinions on something. I've recently modified htsearch in the
> non-beta CVS branch to allow for an object oriented access to the parsing
> and searching mechanism. This was mainly with a view to creating a Perl
> interface, but it doesn't preclude someone creating their own custom
> htsearch program in C++ or anything else capable of using C++ objects.
Hi,
You may be interested to know that I'm building a Perl interface to
the htword classes (Word*.h). For this purpose I use SWIG. It helps a lot
since I don't have to write tons of similar wrappers.
As of now SWIG is not really enough to build a cleanly wrapped package. I
had to patch the code to get the desired effect. I based my patches on the
latest maintainance release (SWIG1.1 on the public CVS tree). The SWIG1.1
author is quite responsive and I expect my patches to be integrated soon.
I had no problems at all with inline functions. The biggest problem is
at dynamic link stage with Perl. Since perl is often already dynamically linked
with Berkeley DB, it conflicts with the Berkeley DB version of htdig. And since
perl is not a C++ program, symbols related to iostream are not resolved. There
are many ways to solve this (build a shared lib of htdig Berkeley DB, LD_PRELOAD
and such).
Take care,
--
Loic Dachary
ECILA
100 av. du Gal Leclerc
93500 Pantin - France
Tel: 33 1 56 96 10 85
e-mail: [EMAIL PROTECTED]
URL: http://www.senga.org/
------------------------------------
To unsubscribe from the htdig3-dev mailing list, send a message to
[EMAIL PROTECTED]
You will receive a message to confirm this.