[C++-sig] Re: compiling test/embedding.cpp

David Abrahams dave at boost-consulting.com
Wed Jun 11 20:52:49 CEST 2003


"Ralf W. Grosse-Kunstleve" <rwgk at yahoo.com> writes:

> --- Stefan Seefeld <seefeld at sympatico.ca> wrote:
>> This means it uses its own build rule, which seems to
>> be broken for IRIX (notably the -lutil flag which is wrong for IRIX).
>
> You are the first to pay attention.
>
>> When linking manually I had to add other libraries such as -lm and 
>> -lpthread to get all symbols resolved.
>
> If you post a complete list of libraries required I am sure Rene will update
> the IRIX toolset. (E.g. you could post the complete link line that you used.)
>
>> The missing symbol
>> 
>> boost::python::converter::shared_ptr_deleter::__dt(void)
>> 
>> is reported at runtime, i.e. when I try to execute 'embedding'.
>
> A quick find/grep in the Boost.Python sources (current CVS) suggests that
> ~shared_ptr_deleter(); is declared but not defined. 

It's in builtin_converters.cpp.

> David, what's the best way to resolve this? 

Fix the compiler/linker?

> -- I guess as a quick fix Stefan could edit
> ./converter/shared_ptr_deleter.hpp and replace a semicolon by {}:
>
>    ~shared_ptr_deleter() {}

That might turn out to be a workaround for IRIX, but it will fail in
general.

-- 
Dave Abrahams
Boost Consulting
www.boost-consulting.com





More information about the Cplusplus-sig mailing list