licentious radio

April 2002
Sun Mon Tue Wed Thu Fri Sat
  1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30        
Mar   May

   Click here to visit the Radio UserLand website.
   Click to see the XML version of this web page.


"What kind of peace do I mean? What kind of peace do we seek? Not a Pax Americana enforced on the world by American weapons of war. Not the peace of the grave or the security of the slave. I am talking about genuine peace, the kind of peace that makes life on earth worth living, the kind that enables men and nations to grow and to hope and to build a better life for their children - not merely peace for Americans but peace for all men and women - not merely peace in our time but peace for all time." -- JFK
 
Home | Stories | Politics/Humor | Web Usability/Humor | ipaq 3800 Linux | RadioRadio | Typography | About | Contact
licentious radio
Saturday, April 27, 2002
[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.