qpid-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrew Stitcher (JIRA)" <j...@apache.org>
Subject [jira] [Closed] (QPID-5609) QPID fails to compile in C++11 with Boost 1.54
Date Wed, 02 Apr 2014 21:41:15 GMT

     [ https://issues.apache.org/jira/browse/QPID-5609?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Andrew Stitcher closed QPID-5609.
---------------------------------

       Resolution: Fixed
    Fix Version/s: 0.29

This issue is fixed by the later fix

> QPID fails to compile in C++11 with Boost 1.54 
> -----------------------------------------------
>
>                 Key: QPID-5609
>                 URL: https://issues.apache.org/jira/browse/QPID-5609
>             Project: Qpid
>          Issue Type: Bug
>          Components: C++ Broker, C++ Client
>    Affects Versions: 0.24
>         Environment: Boost 1.54, GCC 4.8.2, Centos 5.10
>            Reporter: Andrew Robertson
>            Priority: Minor
>              Labels: c++, c++11
>             Fix For: 0.29
>
>         Attachments: qpid.patch
>
>   Original Estimate: 1h
>  Remaining Estimate: 1h
>
> QPID fails to compile with GCC 4.8.2 and Boost 1.54 in C+\+11 using the compiler flag
"-std=c++11". 
> This problem is caused by a change to Boost's shared_ptr. When compiling in c+\+11 the
shared_pointer interface is changed to match c++11's std::shared_pointer. This causes the
boolean conversion operator to be made explicit, preventing the implicit conversion to a boolean
when returning a shared_ptr from a function. 
> To get QPID to compile with GCC 4.8.2 and C+\+11 extra compiler flags are needed. After
running CMake modify the CMakeCache.txt file and set the variable "CMAKE_CXX_FLAGS" to "-std=c+\+11
-Wno-unused-local-typedefs -Wno-ignored-qualifiers -Wno-deprecated-declarations". Passing
the variable to CMake on the command line can cause problems as CMake doesn't like the '='
in the flag "-std=c+\+11".



--
This message was sent by Atlassian JIRA
(v6.2#6252)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@qpid.apache.org
For additional commands, e-mail: dev-help@qpid.apache.org


Mime
View raw message