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

error: ‘shared_ptr’ in namespace ‘pcl’ does not name a template type #28

Open
jdgalviss opened this issue Apr 20, 2021 · 5 comments

Comments

@jdgalviss
Copy link

When trying to build, the following error is occurring:

error: ‘shared_ptr’ in namespace ‘pcl’ does not name a template type
typedef pcl::shared_ptr< pcl::VoxelGrid > Ptr;

error: ‘shared_ptr’ in namespace ‘pcl’ does not name a template type
typedef pcl::shared_ptr< const pcl::VoxelGrid > ConstPtr;

My pcl version is the 1.8.1. I temporarily fixed it by replacing pcl::shared_ptr to boost::shared_ptr. I saw there was a recent pull request on this regard.

@kinggreat24
Copy link

When trying to build, the following error is occurring:

error: ‘shared_ptr’ in namespace ‘pcl’ does not name a template type
typedef pcl::shared_ptr< pcl::VoxelGrid > Ptr;

error: ‘shared_ptr’ in namespace ‘pcl’ does not name a template type
typedef pcl::shared_ptr< const pcl::VoxelGrid > ConstPtr;

My pcl version is the 1.8.1. I temporarily fixed it by replacing pcl::shared_ptr to boost::shared_ptr. I saw there was a recent pull request on this regard.

I also met the same question and solved it by checkout to old version.

@Avinashbhat96
Copy link

could you please tell me, which old version you are talking about?

When trying to build, the following error is occurring:
error: ‘shared_ptr’ in namespace ‘pcl’ does not name a template type
typedef pcl::shared_ptr< pcl::VoxelGrid > Ptr;
error: ‘shared_ptr’ in namespace ‘pcl’ does not name a template type
typedef pcl::shared_ptr< const pcl::VoxelGrid > ConstPtr;
My pcl version is the 1.8.1. I temporarily fixed it by replacing pcl::shared_ptr to boost::shared_ptr. I saw there was a recent pull request on this regard.

I also met the same question and solved it by checkout to old version.

@koide3
Copy link
Owner

koide3 commented Jun 26, 2021

I created melodic branch for backwards compatibility. Try to checkout it.

@Avinashbhat96
Copy link

I created melodic branch for backwards compatibility. Try to checkout it.

Thank you, it was helpful :-)

@koide3
Copy link
Owner

koide3 commented Jul 6, 2021

I updated the code, and now master branch can be built on older environments as well

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

No branches or pull requests

4 participants