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

Fix error due to multiple declarations of template member function specializations in Poisson4 #3972

Merged
merged 3 commits into from
Apr 30, 2020

Conversation

kunaltyagi
Copy link
Member

@kunaltyagi kunaltyagi commented Apr 24, 2020

2nd split from #3841.

Partial fix for #3839

@kunaltyagi kunaltyagi added module: surface changelog: fix Meta-information for changelog generation needs: feedback Specify why not closed/merged yet labels Apr 24, 2020
@kunaltyagi kunaltyagi changed the title Making template specializations of member functions inline in hpp (2/N) Fix error due to multiple declarations of template member function specializations in Poisson4 Apr 25, 2020
@kunaltyagi kunaltyagi removed the needs: feedback Specify why not closed/merged yet label Apr 28, 2020
@kunaltyagi
Copy link
Member Author

Error:

[ 49%] Linking CXX executable ../../bin/pcl_example_nurbs_viewer_surface
../../lib/libpcl_surface.so.1.10.1.99: undefined reference to `pcl::poisson::BSplineElements<1>::upSample(pcl::poisson::BSplineElements<1>&) const'
../../lib/libpcl_surface.so.1.10.1.99: undefined reference to `pcl::poisson::BSplineElements<2>::upSample(pcl::poisson::BSplineElements<2>&) const'

CMakeLists.txt

  • examples/surface links with pcl_surface
  • surface adds baspline_data.cpp to POISSON_SOUCES and used indirectly in PCL_ADD_LIBRARY via srcs

@kunaltyagi kunaltyagi added the needs: feedback Specify why not closed/merged yet label Apr 28, 2020
@kunaltyagi kunaltyagi added needs: testing Specify why not closed/merged yet needs: code review Specify why not closed/merged yet and removed needs: feedback Specify why not closed/merged yet needs: testing Specify why not closed/merged yet labels Apr 29, 2020
@kunaltyagi
Copy link
Member Author

Note: squash and merge

Polynomial< 0 > Polynomial< 0 >::BSplineComponent( int i )
{
Polynomial p;
p.coefficients[0] = 1.;
return p;
}
template< int Degree >
template< int Degree > inline
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Marking this inline is debatable for me. But since it's just gut feeling, I will accept the change.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
changelog: fix Meta-information for changelog generation module: surface
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants