licentious radio

[11:52:51 PM]

Swig sounds wonderful. I'm hopeful. Swig creates wrappers for c++ classes to use in scripting languages. This is very slick.
Alas, the "latest stable version" (1.1.p5) only gave me errors on the simple example. Lots of Google searching turned up rumors that the answer is to compile perl without thread support, or use a previous version of gcc.
What worked was to download version 1.3.11. Apparently there are enough significant changes that you wouldn't want to start out using the 1.1 version anyway.
For the record, here is the error output from the 1.1 version. (It was about the same on Solaris and Linux.)
swig> gcc -V 2.95.3 -c -Dbool=char example.c example_wrap.c -I/usr/lib/perl5/5.6.0/i586-linux/CORE
example_wrap.c: In function `SWIG_GetPtr':
example_wrap.c:292: `sv_undef' undeclared (first use in this function)
example_wrap.c:292: (Each undeclared identifier is reported only once
example_wrap.c:292: for each function it appears in.)
example_wrap.c: In function `boot_example':
example_wrap.c:560: `sv_yes' undeclared (first use in this function)
© Copyright 2002 john robert boynton.
Last update: 9/27/02; 11:03:32 PM.