[MacPorts] #40900: pdf2htmlex on Mac OS X 10.6: Error: you compiler does not support C++0x, please update it.

MacPorts noreply at macports.org
Thu Oct 24 06:51:43 PDT 2013


#40900: pdf2htmlex on Mac OS X 10.6: Error: you compiler does not support C++0x,
please update it.
---------------------+--------------------------------
 Reporter:  mojca@…  |      Owner:  macports-tickets@…
     Type:  defect   |     Status:  new
 Priority:  Normal   |  Milestone:
Component:  ports    |    Version:
 Keywords:           |       Port:  pdf2htmlex
---------------------+--------------------------------
 Compiling pdf2htmlEX fails on 10.6 with:
 {{{
 -- Performing Test CXX0X_SUPPORT
 -- Performing Test CXX0X_SUPPORT - Failed
 CMake Error at CMakeLists.txt:162 (message):
   Error: you compiler does not support C++0x, please update it.
 }}}
 This is the corresponding source:
 {{{
 if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang")
   set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -stdlib=libc++")
 endif()

 # CYGWIN or GCC 4.5.x bug
 if(CYGWIN)
 set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=gnu++0x")
 else()
 set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++0x")
 endif()

 include(CheckCXXCompilerFlag)
 check_cxx_compiler_flag("${CMAKE_CXX_FLAGS}" CXX0X_SUPPORT)
 if(NOT CXX0X_SUPPORT)
     message(FATAL_ERROR "Error: you compiler does not support C++0x,
 please update it.")
 endif()
 }}}
 The port should use a different compiler by default.

-- 
Ticket URL: <https://trac.macports.org/ticket/40900>
MacPorts <http://www.macports.org/>
Ports system for OS X


More information about the macports-tickets mailing list