[C++-sig] Re: gcc-3.0.4, SunOS import module error

FLETCHER, Shayne, FM Shayne.FLETCHER at rbos.com
Wed Nov 20 14:25:39 CET 2002


>> Hi all:
>>
>> I'm having trouble reflecting inheritance hierarchies with gcc 3.0.4 on
>> SunOS 5.8.
>> Basically, a module like:
>>
>> struct bar{};
>> struct baz{};
>> struct foo : bar, baz {};
>>
>> BOOST_PYTHON_MODULE(test_derivation)
>> {
>>       class_<bar>("bar")
>> 	;
>>       class_<baz>("baz")
>> 	;
>>       class_<foo, bases<bar, baz> >("foo")
>> 	;
>> }
>>
>> gives a bus error when the module is loaded from the interpreter

<snip>

>try 
>
>    bjam -sTOOLS=gcc -sPYTHON_TEST_ARGS=-v -n -a test
>
>to see what commands it's executing. You may be missing something
>important when you try to build/run "by hand".

Thanks, your advice has helped.
Loading "by hand" was picking up the release build of libboost_python.so.
Linking with that causes the bus error.

- Shayne.




***********************************************************************
      Visit our Internet site at http://www.rbsmarkets.com

This e-mail is intended only for the addressee named above.
As this e-mail may contain confidential or privileged information,
if you are not the named addressee, you are not authorised to
retain, read, copy or disseminate this message or any part of it.
The Royal Bank of Scotland plc is registered in Scotland No 90312
Registered Office: 36 St Andrew Square, Edinburgh EH2 2YB 
Regulated by the Financial Services Authority
***********************************************************************




More information about the Cplusplus-sig mailing list