8000 Duration constructor from Rate · Issue #30 · ros/roscpp_core · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
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

Duration constructor from Rate #30

Closed
skasperski opened this issue Sep 29, 2014 · 2 comments
Closed

Duration constructor from Rate #30

skasperski opened this issue Sep 29, 2014 · 2 comments
Labels

Comments

@skasperski
Copy link

There is supposed to be constructor for ros::Duration taking a ros::Rate as param:

explicit Duration(const Rate&);

I can't see any implementation though and using it gives a linker error.

undefined reference to `ros::Duration::Duration(ros::Rate const&)
@dirk-thomas
Copy link
Member

I don't see how this was intended by the original author but the definition of the function is in ros/impl/duration.h. If you include that instead / beside ros/duration.h your undefined reference at link time should be solved.

@dirk-thomas
Copy link
Member

Addressed with #32.

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

No branches or pull requests

2 participants
0