ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Compile error: Multiple main functions in using service clients

asked 2011-07-29 02:53:11 -0500

bnew gravatar image

updated 2011-07-29 05:55:53 -0500


I am implementing different services to get information hold by a database. I run a first simple service/client for the first query and it works. Now I am trying to do a second service/client. But that causes multiple 'main' definition. Isn't possible to hold different service/client with their own 'main' in the same package?


edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2011-07-29 03:07:15 -0500

dornhege gravatar image

You should only have one main and use both services from there.

If you want parallel execution you need to build two binaries or use threads.

edit flag offensive delete link more

Question Tools


Asked: 2011-07-29 02:53:11 -0500

Seen: 356 times

Last updated: Jul 29 '11