[C++-sig] linking problem

Gary Hughes geh at itga.com.au
Thu May 2 00:55:28 CEST 2002


Thanks David,

No Luck yet, however, I have found some 'interesting' things on the 2.6 
machine in regards to the compiler and linker versions etc. I'll let you 
know how I go.

Gary.

David Abrahams wrote:

>Two things to check:
>
>1. (Likely problem) Is your C++ standard library .so in your
>LD_LIBRARY_PATH?
>2. (Possible non-issue) Which compiler was your python built with?
>
>-Dave
>
>----- Original Message -----
>From: "Gary Hughes" <geh at itga.com.au>
>
>
>>Hi,
>>
>>I posted this question of comp.lang.python but I haven't received any
>>response, hopefully someone here can point me in the right direction.
>>
>>I have written an extension module that exposes a C++ class. I need to
>>be able to build and run it on Solaris 2.6 and 2.8 with g++.
>>
>>The 2.8 build works with no problems.
>>
>>When I try to use it on 2.6 however I get the following error.
>>
>>Traceback (most recent call last):
>> File "./t_py_configuration.py", line 30, in ?
>>   from configuration import *
>>ImportError: ld.so.1: /usr/local/bin/python: fatal: relocation error:
>>file ./.libs/configuration.so: symbol __ti7ostream: referenced symbol
>>not found
>>
>>I am using the same compiler version on both platforms. 2.95.3.
>>
>>I have found a multitude of linking problems on the net all relating
>>
>to
>
>>people not using PIC etc. Everything is compiled with PIC and it all
>>works on the 2.8 machine so I am at a loss to explain what is
>>
>happening.
>
>>I compile and build everything cleanly on each machine.
>>
>>Has anyone seen this problem or kind of problem?
>>
>>Any help is greatly appreciated.
>>
>>Gary.
>>
>>
>>
>>
>>_______________________________________________
>>C++-sig mailing list
>>C++-sig at python.org
>>http://mail.python.org/mailman/listinfo/c++-sig
>>
>
>
>
>_______________________________________________
>C++-sig mailing list
>C++-sig at python.org
>http://mail.python.org/mailman/listinfo/c++-sig
>







More information about the Cplusplus-sig mailing list