LWN.net Logo

Embedding Python in Your C Programs (Linux Journal)

Embedding Python in Your C Programs (Linux Journal)

Posted Jan 2, 2006 5:32 UTC (Mon) by welinder (guest, #4699)
In reply to: Embedding Python in Your C Programs (Linux Journal) by busterb
Parent article: Embedding Python in Your C Programs (Linux Journal)

Unfortunately, the code you link to does not work. Things like

_your_extension_la_CPPFLAGS = $(SWIG_PYTHON_CPPFLAGS) -I$(top_srcdir)/src

assume that the compiler used for compiling your project understands
the options that whatever compiler was used to compile swig itself
used.

The C library and the X11 libraries do not impose such constraints.
They just supply a well defined interface [from a C language point
of view, mind you], i.e., .h files, and that's it.


(Log in to post comments)

Copyright © 2008, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds