Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#70 Error when compiling python lib with swig

open
nobody
None
5
2010-05-16
2010-05-16
Anonymous
No

Hi,

I get this error when I try to compile python libs with swig since 2.2.7 :
/home/victor/code/pkgbuild/yarp/src/yarp-2.2.7/src/libYARP_OS/include/yarp/os/Property.h:178: Warning(509): Overloaded method yarp::os::Property::fromCommand(int,char const *[]) is shadowed by yarp::os::Property::fromCommand(int,char *[]) at /home/victor/code/pkgbuild/yarp/src/yarp-2.2.7/src/libYARP_OS/include/yarp/os/Property.h:173.
/home/victor/code/pkgbuild/yarp/src/yarp-2.2.7/src/libYARP_OS/include/yarp/os/Property.h:173: Warning(509): Overloaded method yarp::os::Property::fromCommand(int,char *[],bool) is shadowed by yarp::os::Property::fromCommand(int,char const *[],bool) at /home/victor/code/pkgbuild/yarp/src/yarp-2.2.7/src/libYARP_OS/include/yarp/os/Property.h:178.
/home/victor/code/pkgbuild/yarp/src/yarp-2.2.7/src/libYARP_OS/include/yarp/os/Property.h:178: Warning(509): Overloaded method yarp::os::Property::fromCommand(int,char const *[],bool,bool) is shadowed by yarp::os::Property::fromCommand(int,char *[],bool,bool) at /home/victor/code/pkgbuild/yarp/src/yarp-2.2.7/src/libYARP_OS/include/yarp/os/Property.h:173.
/home/victor/code/pkgbuild/yarp/src/yarp-2.2.7/src/libYARP_dev/include/yarp/dev/PolyDriver.h:78: Error: 'PolyDriver_open' is multiply defined in the generated module.
/home/victor/code/pkgbuild/yarp/src/yarp-2.2.7/src/libYARP_dev/include/yarp/dev/PolyDriver.h:67: Error: Previous declaration of 'PolyDriver_open'
make[2]: *** [yarpPYTHON_wrap.cxx] Erreur 2
make[1]: *** [CMakeFiles/_yarp.dir/all] Erreur 2

I don't get this error with 2.2.6 !

I am using swig 1.3.40.

Discussion

  • Work-around committed (add somepthing like "%rename(open_str) yarp::dev::PolyDriver::open(const char *txt);" in example/swig/yarp.i). Thanks for the report!
    -Paul