Swig compile errors

John Machin sjmachin at lexicon.net
Wed Jun 1 02:37:28 CEST 2005


superprad at gmail.com wrote:
> Hi I am trying to write a python wrapper for a C code I have using
> swig. when i try to compile the _wrap.c i get a bunch of these warnings
> and errors can anyone help
> Steps I followed :
> 
> $swig -python test_hk.c
> this generates test_hk.py and test_hk_wrap.c
> then i compile it as
> 
> $gcc -Wall -std=c99 test_hk.c test_hk_wrap.c -I/usr/include/python2.3/

Worth a try:

gcc -Wall -std=c99 -I/usr/include/python2.3/ test_hk.c test_hk_wrap.c





More information about the Python-list mailing list