From: <oli...@rz...> - 2005-12-07 22:33:51
|
Hello everybody, I have successfully compiled and installed swig 1.1-883. I cd'd into the directory Examples/perl5/simple and typed "make" and got the following response: perl5/simple> make make -f ../../../Makefile.template SRCS='example.c' SWIG='../../../swig' \ SWIGOPT='' TARGET='example' INTERFACE='example.i' perl5 make[1]: Entering directory `/usr/src/SWIG1.1-883/Examples/perl5/simple' ../../../swig -perl5 example.i Generating wrappers for Perl 5 gcc -c -Dbool=char -fpic example.c example_wrap.c -I/usr/local/lib/perl5/5.8.1/i586-linux-thread-multi/CORE example_wrap.c: In function `_swig_create_magic': example_wrap.c:416: warning: assignment from incompatible pointer type example_wrap.c:417: warning: assignment from incompatible pointer type example_wrap.c: At top level: example_wrap.c:559: error: conflicting types for 'boot_example' example_wrap.c:431: error: previous declaration of 'boot_example' was here example_wrap.c:559: error: conflicting types for 'boot_example' example_wrap.c:431: error: previous declaration of 'boot_example' was here make[1]: *** [perl5] Error 1 make[1]: Leaving directory `/usr/src/SWIG1.1-883/Examples/perl5/simple' make: *** [all] Error 2 So swig writes the wrapper code but it does not get compiled. Does anyone know what the problem is? Please help! Thanks a lot, Oliver |