[Pythonmac-SIG] Accessing CoreFoundation/IOKit from inside a module?
Just van Rossum
just@letterror.com
Wed, 5 Feb 2003 22:39:21 +0100
Pascal Oberndoerfer wrote:
> Isn't it possible to use stuff from "#include
> <CoreFoundation/CoreFoundation.h>" from inside a module? Everything
> compiles and links fine (using "python setup.py build") as long as I
> don't use for example "CFDictionarySetValue()". If I use it I get the
> following linking error message:
I think you need to add
extra_link_args=['-framework', 'CoreFoundation']
to you Extension definition in your setup.py.
Just