Dear All
I was trying to workout the example give in the SWIG tutrial. It throws some error .
OS - Ubuntu 9.04
SWIG - 1.3
Python 2.6

How can i solve the error
Error last lines

exaple_wrap.c:1766: error: expected ‘)’ before ‘*’ token
exaple_wrap.c:1772: error: expected ‘)’ before ‘*’ token
exaple_wrap.c:1781: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
exaple_wrap.c:1851: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
exaple_wrap.c:1871: error: expected ‘)’ before ‘*’ token
exaple_wrap.c:1887: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
exaple_wrap.c:1893: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
exaple_wrap.c:1903: error: expected ‘)’ before ‘*’ token
exaple_wrap.c:1954: error: expected ‘)’ before ‘*’ token
exaple_wrap.c:1969: error: expected ‘)’ before ‘*’ token
exaple_wrap.c:2060: error: expected ‘)’ before ‘*’ token
exaple_wrap.c:2092: error: expected ‘)’ before ‘*’ token
exaple_wrap.c:2114: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
exaple_wrap.c:2178: error: expected ‘)’ before ‘*’ token
exaple_wrap.c:2199: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
exaple_wrap.c:2217: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
exaple_wrap.c:2238: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
exaple_wrap.c: In function ‘SWIG_Python_GetModule’:
exaple_wrap.c:2260: warning: assignment makes pointer from integer without a cast
exaple_wrap.c: At top level:
exaple_wrap.c:2274: error: expected ‘)’ before ‘*’ token
exaple_wrap.c: In function ‘SWIG_Python_SetModule’:
exaple_wrap.c:2320: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘swig_empty_runtime_method_table’
exaple_wrap.c:2320: error: ‘swig_empty_runtime_method_table’ undeclared (first use in this function)
exaple_wrap.c:2320: error: expected expression before ‘]’ token
exaple_wrap.c:2322: error: ‘PyObject’ undeclared (first use in this function)
exaple_wrap.c:2322: error: ‘module’ undeclared (first use in this function)
exaple_wrap.c:2324: error: ‘pointer’ undeclared (first use in this function)
exaple_wrap.c: At top level:
exaple_wrap.c:2333: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
exaple_wrap.c: In function ‘SWIG_Python_TypeQuery’:
exaple_wrap.c:2342: error: ‘PyObject’ undeclared (first use in this function)
exaple_wrap.c:2342: error: ‘cache’ undeclared (first use in this function)
exaple_wrap.c:2343: error: ‘key’ undeclared (first use in this function)
exaple_wrap.c:2344: error: ‘obj’ undeclared (first use in this function)
exaple_wrap.c: In function ‘SWIG_Python_AddErrMesg’:
exaple_wrap.c:2372: error: ‘PyObject’ undeclared (first use in this function)
exaple_wrap.c:2372: error: ‘type’ undeclared (first use in this function)
exaple_wrap.c:2373: error: ‘value’ undeclared (first use in this function)
exaple_wrap.c:2374: error: ‘traceback’ undeclared (first use in this function)
exaple_wrap.c:2377: error: ‘old_str’ undeclared (first use in this function)
exaple_wrap.c: In function ‘SWIG_Python_ArgFail’:
exaple_wrap.c:2399: warning: incompatible implicit declaration of built-in function ‘snprintf’
exaple_wrap.c: At top level:
exaple_wrap.c:2407: error: expected ‘)’ before ‘*’ token
exaple_wrap.c:2415: error: expected declaration specifiers or ‘...’ before ‘PyObject’
exaple_wrap.c: In function ‘SWIG_Python_TypeError’:
exaple_wrap.c:2429: error: ‘obj’ undeclared (first use in this function)
exaple_wrap.c:2431: error: ‘PyObject’ undeclared (first use in this function)
exaple_wrap.c:2431: error: ‘str’ undeclared (first use in this function)
exaple_wrap.c:2434: error: ‘PyExc_TypeError’ undeclared (first use in this function)
exaple_wrap.c: At top level:
exaple_wrap.c:2453: error: expected ‘)’ before ‘*’ token
exaple_wrap.c:2493:4: error: #error "This python version requires swig to be run with the '-classic' option"
exaple_wrap.c:2520: error: expected ‘)’ before ‘*’ token
exaple_wrap.c: In function ‘SWIG_CanCastAsInteger’:
exaple_wrap.c:2589: error: ‘errno’ undeclared (first use in this function)
exaple_wrap.c:2589: error: ‘EDOM’ undeclared (first use in this function)
exaple_wrap.c:2589: error: ‘ERANGE’ undeclared (first use in this function)
exaple_wrap.c: At top level:
exaple_wrap.c:2613: error: expected ‘)’ before ‘*’ token
exaple_wrap.c:2652: error: expected ‘)’ before ‘*’ token
exaple_wrap.c:2670: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
exaple_wrap.c:2690: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
exaple_wrap.c:2707: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
exaple_wrap.c:2716: error: expected ‘)’ before ‘*’ token
exaple_wrap.c:2731: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
exaple_wrap.c:2739: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
exaple_wrap.c:2761: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
exaple_wrap.c:2792: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
exaple_wrap.c:2805: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘SwigMethods’
exaple_wrap.c:3090: error: expected specifier-qualifier-list before ‘PyObject’
exaple_wrap.c:3096: error: expected specifier-qualifier-list before ‘PyObject_HEAD’
exaple_wrap.c:3100: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
exaple_wrap.c:3105: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
exaple_wrap.c:3118: error: expected declaration specifiers or ‘...’ before ‘FILE’
exaple_wrap.c: In function ‘swig_varlink_print’:
exaple_wrap.c:3119: error: ‘PyObject’ undeclared (first use in this function)
exaple_wrap.c:3119: error: ‘str’ undeclared (first use in this function)
exaple_wrap.c:3120: warning: incompatible implicit declaration of built-in function ‘fprintf’
exaple_wrap.c:3120: error: ‘fp’ undeclared (first use in this function)
exaple_wrap.c:3121: warning: format ‘%s’ expects type ‘char *’, but argument 3 has type ‘int’
exaple_wrap.c: In function ‘swig_varlink_dealloc’:
exaple_wrap.c:3128: error: ‘swig_varlinkobject’ has no member named ‘vars’
exaple_wrap.c:3130: error: ‘swig_globalvar’ has no member named ‘next’
exaple_wrap.c:3131: warning: incompatible implicit declaration of built-in function ‘free’
exaple_wrap.c: At top level:
exaple_wrap.c:3137: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
exaple_wrap.c:3155: error: expected declaration specifiers or ‘...’ before ‘PyObject’
exaple_wrap.c: In function ‘swig_varlink_setattr’:
exaple_wrap.c:3157: error: ‘swig_varlinkobject’ has no member named ‘vars’
exaple_wrap.c:3160: error: ‘swig_globalvar’ has no member named ‘set_attr’
exaple_wrap.c:3160: error: ‘p’ undeclared (first use in this function)
exaple_wrap.c:3163: error: ‘swig_globalvar’ has no member named ‘next’
exaple_wrap.c:3166: error: ‘PyExc_NameError’ undeclared (first use in this function)
exaple_wrap.c: At top level:
exaple_wrap.c:3171: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
exaple_wrap.c:3223: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
exaple_wrap.c:3233: error: expected ‘)’ before ‘*’ token
exaple_wrap.c:3249: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
exaple_wrap.c:3262: error: expected ‘)’ before ‘*’ token
exaple_wrap.c:3289: error: expected ‘)’ before ‘*’ token
exaple_wrap.c: In function ‘init_example’:
exaple_wrap.c:3342: error: ‘PyObject’ undeclared (first use in this function)
exaple_wrap.c:3342: error: ‘m’ undeclared (first use in this function)
exaple_wrap.c:3342: error: ‘d’ undeclared (first use in this function)
exaple_wrap.c:3345: error: ‘SwigMethods’ undeclared (first use in this function)
exaple_wrap.c:3355: error: ‘Swig_var_My_variable_get’ undeclared (first use in this function)
exaple_wrap.c:3355: error: ‘Swig_var_My_variable_set’ undeclared (first use in this function)
jaganadh@nrcfoss31:~/Desktop/swigp$
jaganadh@nrcfoss31:~/Desktop/swigp$ swig-1.3 -python exaple.i
jaganadh@nrcfoss31:~/Desktop/swigp$ gcc -c exaple.c exaple_wrap.c -I/usr/local/include/python2.1
exaple_wrap.c:124:20: error: Python.h: No such file or directory
exaple_wrap.c:730: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
exaple_wrap.c:785: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
exaple_wrap.c:806: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
exaple_wrap.c: In function ‘SWIG_Python_AddErrorMsg’:
exaple_wrap.c:853: error: ‘PyObject’ undeclared (first use in this function)
exaple_wrap.c:853: error: (Each undeclared identifier is reported only once
exaple_wrap.c:853: error: for each function it appears in.)
exaple_wrap.c:853: error: ‘type’ undeclared (first use in this function)
exaple_wrap.c:854: error: ‘value’ undeclared (first use in this function)
exaple_wrap.c:855: error: ‘traceback’ undeclared (first use in this function)
exaple_wrap.c:859: error: ‘old_str’ undeclared (first use in this function)
exaple_wrap.c:866: error: ‘PyExc_RuntimeError’ undeclared (first use in this function)
exaple_wrap.c: At top level:
exaple_wrap.c:1034: error: expected ‘)’ before ‘*’ token
exaple_wrap.c:1042: error: expected ‘)’ before ‘*’ token
exaple_wrap.c:1053: error: expected ‘)’ before ‘*’ token
exaple_wrap.c:1060: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
exaple_wrap.c:1106: error: expected ‘)’ before ‘*’ token
exaple_wrap.c:1208: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
exaple_wrap.c:1219: error: expected specifier-qualifier-list before ‘PyObject’
exaple_wrap.c: In function ‘SWIG_Python_CheckImplicit’:
exaple_wrap.c:1231: error: ‘PySwigClientData’ has no member named ‘implicitconv’
exaple_wrap.c: At top level:
exaple_wrap.c:1234: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
exaple_wrap.c:1243: error: expected ‘)’ before ‘*’ token
exaple_wrap.c: In function ‘PySwigClientData_Del’:
exaple_wrap.c:1298: error: ‘PySwigClientData’ has no member named ‘newraw’
exaple_wrap.c:1299: error: ‘PySwigClientData’ has no member named ‘newargs’
exaple_wrap.c:1300: error: ‘PySwigClientData’ has no member named ‘destroy’
exaple_wrap.c: At top level:
exaple_wrap.c:1306: error: expected specifier-qualifier-list before ‘PyObject_HEAD’
exaple_wrap.c:1313: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
exaple_wrap.c:1319: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
exaple_wrap.c:1337: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
exaple_wrap.c:1343: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
exaple_wrap.c:1349: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
exaple_wrap.c:1372: error: expected declaration specifiers or ‘...’ before ‘FILE’
exaple_wrap.c: In function ‘PySwigObject_print’:
exaple_wrap.c:1377: error: ‘PyObject’ undeclared (first use in this function)
exaple_wrap.c:1377: error: ‘repr’ undeclared (first use in this function)
exaple_wrap.c:1380: error: ‘fp’ undeclared (first use in this function)
exaple_wrap.c: At top level:
exaple_wrap.c:1388: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
exaple_wrap.c: In function ‘PySwigObject_compare’:
exaple_wrap.c:1399: error: ‘PySwigObject’ has no member named ‘ptr’
exaple_wrap.c:1400: error: ‘PySwigObject’ has no member named ‘ptr’
exaple_wrap.c: At top level:
exaple_wrap.c:1404: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
exaple_wrap.c:1406: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
exaple_wrap.c:1413: error: expected ‘)’ before ‘*’ token
exaple_wrap.c:1418: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
exaple_wrap.c:1422: error: expected ‘)’ before ‘*’ token
exaple_wrap.c:1456: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
exaple_wrap.c:1473: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
exaple_wrap.c:1489: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
exaple_wrap.c:1501: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
exaple_wrap.c:1513: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
exaple_wrap.c:1561: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘swigobject_methods’
exaple_wrap.c:1573: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
exaple_wrap.c:1580: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
exaple_wrap.c:1688: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
exaple_wrap.c:1706: error: expected specifier-qualifier-list before ‘PyObject_HEAD’
exaple_wrap.c:1713: error: expected declaration specifiers or ‘...’ before ‘FILE’
exaple_wrap.c: In function ‘PySwigPacked_print’:
exaple_wrap.c:1716: error: ‘fp’ undeclared (first use in this function)
exaple_wrap.c:1717: error: ‘PySwigPacked’ has no member named ‘pack’
exaple_wrap.c:1717: error: ‘PySwigPacked’ has no member named ‘size’
exaple_wrap.c:1721: error: ‘PySwigPacked’ has no member named ‘ty’
exaple_wrap.c: At top level:
exaple_wrap.c:1726: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
exaple_wrap.c:1737: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
exaple_wrap.c: In function ‘PySwigPacked_compare’:
exaple_wrap.c:1751: error: ‘PySwigPacked’ has no member named ‘size’
exaple_wrap.c:1752: error: ‘PySwigPacked’ has no member named ‘size’
exaple_wrap.c:1754: error: ‘PySwigPacked’ has no member named ‘pack’
exaple_wrap.c:1754: error: ‘PySwigPacked’ has no member named ‘pack’
exaple_wrap.c:1754: error: ‘PySwigPacked’ has no member named ‘size’
exaple_wrap.c: At top level:
exaple_wrap.c:1757: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
exaple_wrap.c:1759: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
exaple_wrap.c:1766: error: expected ‘)’ before ‘*’ token
exaple_wrap.c:1772: error: expected ‘)’ before ‘*’ token
exaple_wrap.c:1781: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
exaple_wrap.c:1851: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
exaple_wrap.c:1871: error: expected ‘)’ before ‘*’ token
exaple_wrap.c:1887: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
exaple_wrap.c:1893: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
exaple_wrap.c:1903: error: expected ‘)’ before ‘*’ token
exaple_wrap.c:1954: error: expected ‘)’ before ‘*’ token
exaple_wrap.c:1969: error: expected ‘)’ before ‘*’ token
exaple_wrap.c:2060: error: expected ‘)’ before ‘*’ token
exaple_wrap.c:2092: error: expected ‘)’ before ‘*’ token
exaple_wrap.c:2114: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
exaple_wrap.c:2178: error: expected ‘)’ before ‘*’ token
exaple_wrap.c:2199: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
exaple_wrap.c:2217: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
exaple_wrap.c:2238: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
exaple_wrap.c: In function ‘SWIG_Python_GetModule’:
exaple_wrap.c:2260: warning: assignment makes pointer from integer without a cast
exaple_wrap.c: At top level:
exaple_wrap.c:2274: error: expected ‘)’ before ‘*’ token
exaple_wrap.c: In function ‘SWIG_Python_SetModule’:
exaple_wrap.c:2320: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘swig_empty_runtime_method_table’
exaple_wrap.c:2320: error: ‘swig_empty_runtime_method_table’ undeclared (first use in this function)
exaple_wrap.c:2320: error: expected expression before ‘]’ token
exaple_wrap.c:2322: error: ‘PyObject’ undeclared (first use in this function)
exaple_wrap.c:2322: error: ‘module’ undeclared (first use in this function)
exaple_wrap.c:2324: error: ‘pointer’ undeclared (first use in this function)
exaple_wrap.c: At top level:
exaple_wrap.c:2333: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
exaple_wrap.c: In function ‘SWIG_Python_TypeQuery’:
exaple_wrap.c:2342: error: ‘PyObject’ undeclared (first use in this function)
exaple_wrap.c:2342: error: ‘cache’ undeclared (first use in this function)
exaple_wrap.c:2343: error: ‘key’ undeclared (first use in this function)
exaple_wrap.c:2344: error: ‘obj’ undeclared (first use in this function)
exaple_wrap.c: In function ‘SWIG_Python_AddErrMesg’:
exaple_wrap.c:2372: error: ‘PyObject’ undeclared (first use in this function)
exaple_wrap.c:2372: error: ‘type’ undeclared (first use in this function)
exaple_wrap.c:2373: error: ‘value’ undeclared (first use in this function)
exaple_wrap.c:2374: error: ‘traceback’ undeclared (first use in this function)
exaple_wrap.c:2377: error: ‘old_str’ undeclared (first use in this function)
exaple_wrap.c: In function ‘SWIG_Python_ArgFail’:
exaple_wrap.c:2399: warning: incompatible implicit declaration of built-in function ‘snprintf’
exaple_wrap.c: At top level:
exaple_wrap.c:2407: error: expected ‘)’ before ‘*’ token
exaple_wrap.c:2415: error: expected declaration specifiers or ‘...’ before ‘PyObject’
exaple_wrap.c: In function ‘SWIG_Python_TypeError’:
exaple_wrap.c:2429: error: ‘obj’ undeclared (first use in this function)
exaple_wrap.c:2431: error: ‘PyObject’ undeclared (first use in this function)
exaple_wrap.c:2431: error: ‘str’ undeclared (first use in this function)
exaple_wrap.c:2434: error: ‘PyExc_TypeError’ undeclared (first use in this function)
exaple_wrap.c: At top level:
exaple_wrap.c:2453: error: expected ‘)’ before ‘*’ token
exaple_wrap.c:2493:4: error: #error "This python version requires swig to be run with the '-classic' option"
exaple_wrap.c:2520: error: expected ‘)’ before ‘*’ token
exaple_wrap.c: In function ‘SWIG_CanCastAsInteger’:
exaple_wrap.c:2589: error: ‘errno’ undeclared (first use in this function)
exaple_wrap.c:2589: error: ‘EDOM’ undeclared (first use in this function)
exaple_wrap.c:2589: error: ‘ERANGE’ undeclared (first use in this function)
exaple_wrap.c: At top level:
exaple_wrap.c:2613: error: expected ‘)’ before ‘*’ token
exaple_wrap.c:2652: error: expected ‘)’ before ‘*’ token
exaple_wrap.c:2670: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
exaple_wrap.c:2690: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
exaple_wrap.c:2707: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
exaple_wrap.c:2716: error: expected ‘)’ before ‘*’ token
exaple_wrap.c:2731: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
exaple_wrap.c:2739: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
exaple_wrap.c:2761: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
exaple_wrap.c:2792: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
exaple_wrap.c:2805: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘SwigMethods’
exaple_wrap.c:3090: error: expected specifier-qualifier-list before ‘PyObject’
exaple_wrap.c:3096: error: expected specifier-qualifier-list before ‘PyObject_HEAD’
exaple_wrap.c:3100: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
exaple_wrap.c:3105: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
exaple_wrap.c:3118: error: expected declaration specifiers or ‘...’ before ‘FILE’
exaple_wrap.c: In function ‘swig_varlink_print’:
exaple_wrap.c:3119: error: ‘PyObject’ undeclared (first use in this function)
exaple_wrap.c:3119: error: ‘str’ undeclared (first use in this function)
exaple_wrap.c:3120: warning: incompatible implicit declaration of built-in function ‘fprintf’
exaple_wrap.c:3120: error: ‘fp’ undeclared (first use in this function)
exaple_wrap.c:3121: warning: format ‘%s’ expects type ‘char *’, but argument 3 has type ‘int’
exaple_wrap.c: In function ‘swig_varlink_dealloc’:
exaple_wrap.c:3128: error: ‘swig_varlinkobject’ has no member named ‘vars’
exaple_wrap.c:3130: error: ‘swig_globalvar’ has no member named ‘next’
exaple_wrap.c:3131: warning: incompatible implicit declaration of built-in function ‘free’
exaple_wrap.c: At top level:
exaple_wrap.c:3137: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
exaple_wrap.c:3155: error: expected declaration specifiers or ‘...’ before ‘PyObject’
exaple_wrap.c: In function ‘swig_varlink_setattr’:
exaple_wrap.c:3157: error: ‘swig_varlinkobject’ has no member named ‘vars’
exaple_wrap.c:3160: error: ‘swig_globalvar’ has no member named ‘set_attr’
exaple_wrap.c:3160: error: ‘p’ undeclared (first use in this function)
exaple_wrap.c:3163: error: ‘swig_globalvar’ has no member named ‘next’
exaple_wrap.c:3166: error: ‘PyExc_NameError’ undeclared (first use in this function)
exaple_wrap.c: At top level:
exaple_wrap.c:3171: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
exaple_wrap.c:3223: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
exaple_wrap.c:3233: error: expected ‘)’ before ‘*’ token
exaple_wrap.c:3249: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
exaple_wrap.c:3262: error: expected ‘)’ before ‘*’ token
exaple_wrap.c:3289: error: expected ‘)’ before ‘*’ token
exaple_wrap.c: In function ‘init_example’:
exaple_wrap.c:3342: error: ‘PyObject’ undeclared (first use in this function)
exaple_wrap.c:3342: error: ‘m’ undeclared (first use in this function)
exaple_wrap.c:3342: error: ‘d’ undeclared (first use in this function)
exaple_wrap.c:3345: error: ‘SwigMethods’ undeclared (first use in this function)
exaple_wrap.c:3355: error: ‘Swig_var_My_variable_get’ undeclared (first use in this function)
exaple_wrap.c:3355: error: ‘Swig_var_My_variable_set’ undeclared (first use in this function)


--
**********************************
JAGANADH G
http://jaganadhg.freeflux.net/blog