From: AASS <ban...@ho...> - 2007-11-16 10:45:50
|
Hi I had a simulation program running well using the CVS version of player/stage. Then i installed the boost libraries, after which I get the following error during compilation: ************* Start of error message ******************** g++ -Wall -c robot.cc -o robot.o `pkg-config --cflags playerc++` /usr/include/boost/noncopyable.hpp: In copy constructor =E2=80=98boost::mutex::mutex(const boost::mutex&)=E2=80=99: /usr/include/boost/noncopyable.hpp:27: error: =E2=80=98boost::noncopyable_::noncopyable::noncopyable(const boost::noncopyable_::noncopyable&)=E2=80=99 is private /usr/include/boost/thread/mutex.hpp:35: error: within this context /usr/local/include/player-2.1/libplayerc++/playerclient.h: In copy constructor =E2=80=98PlayerCc::PlayerClient::PlayerClient(const PlayerCc::PlayerClient&)=E2=80=99: /usr/local/include/player-2.1/libplayerc++/playerclient.h:104: note: synthesized method =E2=80=98boost::mutex::mutex(const boost::mutex&)=E2=80= =99 first required here=20 robot.cc: In member function =E2=80=98PlayerCc::PlayerClient Robot::createPlayerClient(std::string, int)=E2=80=99: robot.cc:9: note: synthesized method =E2=80=98PlayerCc::PlayerClient::PlayerClient(const PlayerCc::PlayerClient&= )=E2=80=99 first required here=20 /usr/include/boost/noncopyable.hpp: In copy constructor =E2=80=98boost::signals::detail::signal_base::signal_base(const boost::signals::detail::signal_base&)=E2=80=99: /usr/include/boost/noncopyable.hpp:27: error: =E2=80=98boost::noncopyable_::noncopyable::noncopyable(const boost::noncopyable_::noncopyable&)=E2=80=99 is private /usr/include/boost/signals/detail/signal_base.hpp:119: error: within this context /usr/include/boost/signals/signal_template.hpp: In copy constructor =E2=80=98boost::signal0<void, boost::last_value<void>, int, std::less<int>, boost::function<void ()(), std::allocator<void> > >::signal0(const boost::signal0<void, boost::last_value<void>, int, std::less<int>, boost::function<void ()(), std::allocator<void> > >&)=E2=80=99: /usr/include/boost/signals/signal_template.hpp:142: note: synthesized metho= d =E2=80=98boost::signals::detail::signal_base::signal_base(const boost::signals::detail::signal_base&)=E2=80=99 first required here=20 /usr/include/boost/signal.hpp: In copy constructor =E2=80=98boost::signal<v= oid ()(), boost::last_value<void>, int, std::less<int>, boost::function<void ()(), std::allocator<void> > >::signal(const boost::signal<void ()(), boost::last_value<void>, int, std::less<int>, boost::function<void ()(), std::allocator<void> > >&)=E2=80=99: /usr/include/boost/signal.hpp:335: note: synthesized method =E2=80=98boost::signal0<void, boost::last_value<void>, int, std::less<int>, boost::function<void ()(), std::allocator<void> > >::signal0(const boost::signal0<void, boost::last_value<void>, int, std::less<int>, boost::function<void ()(), std::allocator<void> > >&)=E2=80=99 first requir= ed here=20 /usr/local/include/player-2.1/libplayerc++/clientproxy.h: In copy constructor =E2=80=98PlayerCc::ClientProxy::ClientProxy(const PlayerCc::ClientProxy&)=E2=80=99: /usr/local/include/player-2.1/libplayerc++/clientproxy.h:67: note: synthesized method =E2=80=98boost::signal<void ()(), boost::last_value<void= >, int, std::less<int>, boost::function<void ()(), std::allocator<void> > >::signal(const boost::signal<void ()(), boost::last_value<void>, int, std::less<int>, boost::function<void ()(), std::allocator<void> > >&)=E2=80= =99 first required here=20 /usr/local/include/player-2.1/libplayerc++/playerc++.h: In copy constructor =E2=80=98PlayerCc::MapProxy::MapProxy(const PlayerCc::MapProxy&)=E2=80=99: /usr/local/include/player-2.1/libplayerc++/playerc++.h:1300: note: synthesized method =E2=80=98PlayerCc::ClientProxy::ClientProxy(const PlayerCc::ClientProxy&)=E2=80=99 first required here=20 robot.cc: In member function =E2=80=98PlayerCc::MapProxy Robot::createMapProxy(PlayerCc::PlayerClient*, int)=E2=80=99: robot.cc:15: note: synthesized method =E2=80=98PlayerCc::MapProxy::MapProxy= (const PlayerCc::MapProxy&)=E2=80=99 first required here=20 make: *** [classes] Error 1 ************* End of error message ******************** This is the code I am attempting to compile: ************* Start of code ******************** #include "robot.h" Robot::Robot() {} Robot::~Robot() {} PlayerClient Robot::createPlayerClient(string hostname, int portNumber) { =09PlayerClient robot(hostname, portNumber); =09return robot; } MapProxy Robot::createMapProxy(PlayerClient* robot, int providesIndex) { =09MapProxy proxy(robot, providesIndex); =09return proxy; } OpaqueProxy Robot::createOpaqueProxy(PlayerClient* robot, int providesIndex= ) { =09OpaqueProxy proxy(robot, providesIndex); =09return proxy; } LaserProxy Robot::createLaserProxy(PlayerClient* robot, int providesIndex) { =09LaserProxy proxy(robot, providesIndex); =09return proxy; } Position2dProxy Robot::createPosition2DProxy(PlayerClient* robot, int providesIndex) { =09Position2dProxy proxy(robot, providesIndex); =09return proxy; } ************* End of code ******************** Any help would be greatly appreciated. --=20 View this message in context: http://www.nabble.com/Program-doesn%27t-compi= le-after-installing-boost-tf4820430.html#a13790918 Sent from the playerstage-users mailing list archive at Nabble.com. |