ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | Q&A answers.ros.org
Ask Your Question
-1

Compile error: Multiple main functions in using service clients

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

bnew gravatar image

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

Hi,

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?

Thanks.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
3

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

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

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

Stats

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

Seen: 332 times

Last updated: Jul 29 '11