wasm-demo/demo/ermis-f/python_m/cur/1267

47 lines
1.1 KiB
Plaintext

From: ppessi at hut.fi (Pekka Pessi)
Date: 19 Apr 1999 17:34:46 +0300
Subject: what is reloc error ?
References: <371A1E26.846AF8B6@pk.highway.ne.jp>
Message-ID: <od1yajo7k6x.fsf@vanessa.tky.hut.fi>
X-UID: 1267
Thooney Millennier <thooney at pk.highway.ne.jp> writes:
>I am now working on building Python interface
>to my C++ matrix library.
>I have a problem.
>After compiling and when trying to import my
>module
>I get following message.
> % gcc -c XXXtype.cc
You are compiling position independent code, so use -fPIC flag.
> % gcc -c subXXXtype.cc
> .......................
> % ld -o XXXtype.so -dy -G -g *.o -lstdc++
What about gcc -o XXXtype.so *.o -shared -g -lstdc++?
> % python -c "import XXXtype"
> python: can't handle reloc type <NULL>
><====this!!!
>I don't understand why this occurs.
>Please help me!
>(Platform: python 1.5.2, Linux 2.0.34 with gcc.)
The best way to do compile modules is to write a Setup file and let
Python to create the Makefile by itself. For details, see
Demo/extend in the Python source distribution.
Pekka
--
Pekka.Pessi at hut.fi