Project

General

Profile

Actions

Bug #35833

closed

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

Added by Brad Hubbard over 5 years ago. Updated over 5 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
-
Target version:
-
% Done:

0%

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

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.

Actions #1

Updated by Brad Hubbard over 5 years ago

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

Updated by Brad Hubbard over 5 years ago

  • Status changed from New to In Progress
Actions #3

Updated by Kefu Chai over 5 years ago

  • Status changed from In Progress to Resolved
Actions

Also available in: Atom PDF