> Nowhere in your code is the definition of binary_op - that is why you
> get a linker error.
>
> Is it defined in another C file? If so you need to link it with the
> swig wrapper before you make the .so
>
Thanks for pointing out. I sorted the code out finally!
Charlie
--
http://mail.python.or
Charlie <[EMAIL PROTECTED]> wrote:
>
> >
> > > ?But when I try to import test in python, it complains:
> > > ?import _test
> > > ?ImportError: ./_test.so undefined symbol: _Z9binary_opiiPFiiiE
> >
> > The above is a mangled name so you've got some C vs C++ problems I'd
> > say.
> >
> > You could t
On Nov 16, 8:56 pm, Charlie <[EMAIL PROTECTED]> wrote:
> > > But when I try to import test in python, it complains:
> > > import _test
> > > ImportError: ./_test.so undefined symbol: _Z9binary_opiiPFiiiE
>
> > The above is a mangled name so you've got some C vs C++ problems I'd
> > say.
>
> > Yo
>
> > But when I try to import test in python, it complains:
> > import _test
> > ImportError: ./_test.so undefined symbol: _Z9binary_opiiPFiiiE
>
> The above is a mangled name so you've got some C vs C++ problems I'd
> say.
>
> You could try putting some extern "C" {} in around all the functio
Charlie <[EMAIL PROTECTED]> wrote:
> I am new to using swig/C++/python. I got some problem with function
> pointers. I posted in swig-user, but got no response. So I forwarded
> it here. You help is greatly appreciated.
>
> Thanks!
>
>
> Hi All,
>
> Yesterday I posted about the question I
Hi All,
I am new to using swig/C++/python. I got some problem with function
pointers. I posted in swig-user, but got no response. So I forwarded
it here. You help is greatly appreciated.
Thanks!
-- Forwarded message --
Hi All,
Yesterday I posted about the question I had of temp