[Python-Dev] MacOSX dlopen equivalent?

Simon Cozens simon@netthink.co.uk
Wed, 8 May 2002 11:02:46 +0100


Ralf W. Grosse-Kunstleve:
> 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

A decent workaround is to use fink (http://fink.sourceforge.net/) which
includes a working dlfcn.h and dl library. You'll want the following flags:

CC: -I/sw/include
LD: -L/sw/lib -flat_namespace
libs: -ldl

-- 
Putting heated bricks close to the news.admin.net-abuse.* groups.
        -- Megahal (trained on asr), 1998-11-06