Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#7 example problem on sol 2.7, gcc 2.95.2

closed
nobody
None
5
2002-03-18
2001-04-02
Chetan Gadgil
No

CXX 5.0b

Python 2.0 (#1, Mar 15 2001, 16:27:27)
[GCC 2.95.2 19991024 (release)] on sunos5
Type "copyright", "credits" or "license" for more
information.
>>> import example
Traceback (most recent call last):
File "<stdin>", line 1, in ?
ImportError: ld.so.1: python: fatal: relocation error:
file /disk4/home/cgadgil/
download/CXX-5.0b/Demo/build/lib.solaris-2.7-sun4u-
2.0/CXX/example.so: symbol co
ut: referenced symbol not found

PYTHONPATH AND LD_LIBRARY_PATH ARE CORRECTLY SET UP.

Discussion

  • Chetan Gadgil
    Chetan Gadgil
    2001-04-02

    Logged In: YES
    user_id=21159

    I was able to fix this after I added "-lstdc++" to the
    linker.

    My gcc/g++ have the "shared" libraries enabled by default.

     
  • Chetan Gadgil
    Chetan Gadgil
    2002-03-18

    • status: open --> closed