[Python-Dev] MacOSX dlopen equivalent?
Ralf W. Grosse-Kunstleve
rwgk@cci.lbl.gov
Wed, 8 May 2002 00:13:59 -0700 (PDT)
I am interested in investigating the feasibility of porting the
Boost.Python library to Mac OSX. A very good first step would be if we
could port the example that I just made for tracking down gcc
exception handling bugs (http://cci.lbl.gov/~rwgk/tmp/gcc_dl_eh.tar.gz)
because it is both a small and an accurate model of the mechanism used
by Boost.Python.
Unfortunately I did not get very far:
# make macosx
make CC=cc CPP="c++" LDDLL=-shared LIBDL=""
cc -g -c master.c
master.c:8: header file 'dlfcn.h' not found
Looking at the Python source to figure out what is used in place of
dlopen was not immediately inspiring. Then I found dlcompat. It is not
clear to me what is the best route to choose for my feasibility test.
Are there resources that could give me some guidance?
Thanks,
Ralf