From: Bill S. <wf...@sa...> - 2007-08-27 22:52:52
|
One of the best approaches is to use the python module distutils. By convention, you write a setup.py script and create an Extension object with all of the source code, libraries, include directories, etc., that you need. Then you call a setup function that builds or installs or whatever you specify on the command line. The disutils module knows where the Python.h header file is and how to link to make a python-compatible shared object. On Aug 27, 2007, at 4:22 PM, sz...@ti... wrote: > Hi! > I'm just learning the use of Swing, but i have serious problems with > compileing. I use ubuntu 6.10, gcc and python 2.5. > The problem is when I'm trying to compile the c file (which was > made by > swing) the gcc prints error messages: it can't find python.h > > How could I solve this problem? > thx > > > ---------------------------------------------------------------------- > --- > This SF.net email is sponsored by: Splunk Inc. > Still grepping through log files to find problems? Stop. > Now Search log events and configuration files using AJAX and a > browser. > Download your FREE copy of Splunk now >> http://get.splunk.com/ > _______________________________________________ > Swig-user mailing list > Swi...@li... > https://lists.sourceforge.net/lists/listinfo/swig-user ** Bill Spotz ** ** Sandia National Laboratories Voice: (505)845-0170 ** ** P.O. Box 5800 Fax: (505)284-5451 ** ** Albuquerque, NM 87185-0370 Email: wf...@sa... ** |