chicken-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Chicken-users] swig and c++ and stuff


From: felix winkelmann
Subject: Re: [Chicken-users] swig and c++ and stuff
Date: Mon, 26 Feb 2007 22:58:51 +0100

On 2/26/07, Tony Sidaway <address@hidden> wrote:
I tried a big SWIG wrap on part of a C++ library.  This generated a
.cxx wrap file and a .scm file.

The build sequence I'm using is this:

       $(CHICKEN) tvision.scm -output-file otvision.c
        $(CXX) --shared otvision.c tvision_wrap.cxx -o tvision.so
`rhtv-config --include` `rhtv-config --cppflags` `rhtv-config
--dir-libs` `rhtv-config --dlibs` -lchicken

This seems to build to a tvision.so file, but when I install that and
(use tvision), I get this:


If you load the code with "use", you *must* pass "-shared" to the Scheme
compiler. You also must pass "`csc -shared -cflags -libs`". I recommend
to use csc instead of chicken + g++.

The missing symbol is strange, though. Check the _wrap.cxx file and
the binaries with nm (and c++filt


cheers,
felix




reply via email to

[Prev in Thread] Current Thread [Next in Thread]