Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixing linking issue with service_client_imp.h #127

Open
wants to merge 1 commit into
base: indigo-devel
Choose a base branch
from

Conversation

yuriy228
Copy link

service_client_imp.h has definition (implementation) of two not-template, not-inline functions:
bool ServiceClient::waitForServer(const ros::Duration & timeout)
bool ServiceClient::isServerConnected()

This provides an issue when including action lib headers (that includes this header) in several .cpp's within one project (one executable/library). The linker then reports function implementation duplication error (which is not surprising).

The proposal is to define the functions as inline.

@YoshuaNava
Copy link

+1

@PrajishKumar
Copy link

Thanks @yuriy228! Given that the changes have been approved, could you please merge them in?

@yuriy228
Copy link
Author

@PrajishKumar, cannot do this due to not having writting rights to the repo.

@fevb
Copy link

fevb commented Sep 14, 2022

+1

@fevb
Copy link

fevb commented Sep 14, 2022

Any maintainers that can merge this? @mjcarroll / @jacobperron

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants