Linking Python modules to C++ modules...a problem 
Author Message
 Linking Python modules to C++ modules...a problem

I'm trying to write an interface to a library written in C++ from Python, on
the BeOS.
The module is called OrchardExt, and I want to link it to a library called

So I create an appropriate OrchardExt.c and a OrchardExtwrapper.c, the
wrapper contains the functions (extern'd "C") that simply 'pass on' the
function call to the library, whereas the OrchardExt.c file is
empty (except for an #include that include the declarations for the

I run
Make -f boot

I edit the Makefile, making it link to the appropriate libraries and
ensuring that it will compile in C++.
make install

Unfortuanately, this doesn't work. The output is shown below.

Do I need to recompile the python binary for the BeOS with a C++ compiler,
or is such module compiling screwed on the BeOS for Python?
I have already written the Perl interface to this library, and it worked a
lot more beautifully than this.


Traceback (innermost last):
  File "/boot/home/Py_script", line 2, in ?
    import OrchardExt
ImportError: Unknown error loading

Thu, 19 Sep 2002 04:00:00 GMT  
 [ 1 post ] 

 Relevant Pages 

1. linking problem with Thread Module in Python 1.4

2. Help Linking Assembly Modules with C Modules

3. Linking ASM modules with Turbo C++

4. Linking ASM modules into Turbo C++

5. Linking ASM modules with Turbo C++

6. -- A Python module for Fvwm modules!

7. Python modules and Perl modules

8. Statically linking a C extension module into Python

9. Statically linking a C Extension Module in Python

10. Statically linking standard Python modules into an application

11. Python extension to a C++ module...

12. C++ calling a Python extension module


Powered by phpBB® Forum Software