Search code examples
c++restbed

RestBed - Not able to compile in Redhat 7


We are building our C++ application in RHEL7 and we need to use RestBed as a service and as a client.

However, when tried to compile the source code, we are getting error on GCC that the version is < 4.9.

RedHat dont support GCC version > 4.8.5.

So, what is the solution? Do we have a branch which works with GCC 4.8.5?

EDIT: The "configuration.cmake" has the below lines of code.

if ( ${CMAKE_CXX_COMPILER_ID} STREQUAL GNU )
    if ( ${CMAKE_CXX_COMPILER_VERSION} VERSION_LESS 4.9 )
        message( FATAL_ERROR "\nGCC version < 4.9\nYour systems default compiler is GCC. This project makes use of c++11 features present only in versions of gcc >= 4.9. You can use a different compiler by re-running cmake with the command switch \"-D CMAKE_CXX_COMPILER=<compiler>\" " )
    else ( )
        set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-non-virtual-dtor" )
    endif ( )

So, the code wont support the version by default I guess.


Solution

  • Restbed requires a compiler that supports C++11, with all the trimmings.