Project

General

Profile

Bug #35833

error: 'unique_ptr' in namespace 'std' does not name a type when compiling librados client program on Centos 7

Added by Brad Hubbard 12 months ago. Updated 11 months ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
-
Target version:
-
Start date:
09/07/2018
Due date:
% Done:

0%

Source:
Development
Tags:
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Component(RADOS):
Pull request ID:

Description

We should be able to compile a librados client program, such as examples/librados/hello_world.cc, on a system with librados-devel (or librados-dev) installed but currently it fails.

# g++ -g -std=c++11 -o hello_world hello_world.cc -lrados
In file included from hello_world.cc:14:0:
/usr/include/rados/librados.hpp:1298:5: error: 'unique_ptr' in namespace 'std' does not name a type
     std::unique_ptr<PlacementGroupImpl> impl;
     ^

Seems there may have been a subtle change in header includes.

History

#1 Updated by Brad Hubbard 12 months ago

  • Project changed from Ceph to RADOS
  • Category deleted (librados)

#2 Updated by Brad Hubbard 12 months ago

  • Status changed from New to In Progress

#3 Updated by Kefu Chai 11 months ago

  • Status changed from In Progress to Resolved

Also available in: Atom PDF