Re: [Chicken-users] Compiling a shared library from swig interface

2016-10-23 Thread Peter Bex
On Sat, Oct 22, 2016 at 01:16:12PM +0200, spalis wrote: > I tried to get the following class example from swig running: Please note that SWIG is no longer officially supported. In CHICKEN 5, all support will be dropped. 4.x still contains the SWIG support code but it hasn't been tested in a long

Re: [Chicken-users] Compiling a shared library from swig interface

2016-10-22 Thread Thomas Chust
On 2016-10-22 13:16, spalis wrote: > [...] > Error: (load) unable to load compiled module - ./example.so: undefined > symbol: _ZTV6Square: "./example.so" > [...] Hello, well, binutils tells us that $ c++filt _ZTV6Square vtable for Square So the shared object you built apparently does not link

[Chicken-users] Compiling a shared library from swig interface

2016-10-22 Thread spalis
I tried to get the following class example from swig running: /* File : example.cxx */ #include "example.h" #define M_PI 3.14159265358979323846 /* Move the shape to a new location */ void Shape::move(double dx, double dy) { x += dx; y += dy; } int Shape::nshapes = 0; double Circle::area()