[MacPorts] #43757: cppcheck @1.65: error: unrecognized command line option "-std=c++0x"

MacPorts noreply at macports.org
Tue May 20 01:11:49 PDT 2014


#43757: cppcheck @1.65: error: unrecognized command line option "-std=c++0x"
---------------------------+------------------------
  Reporter:  ryandesign@…  |      Owner:  xythobuz@…
      Type:  defect        |     Status:  new
  Priority:  Normal        |  Milestone:
 Component:  ports         |    Version:  2.2.1
Resolution:                |   Keywords:
      Port:  cppcheck      |
---------------------------+------------------------

Comment (by xythobuz@…):

 It seems as if cppcheck requires a C++11 compiler since version 1.65
 (http://sourceforge.net/p/cppcheck/news/2014/05/cppcheck-165/)

 These features are used throughout the code. I was able to compile it
 without the "-std=c++0x" option using Clang, but a lot of warnings were
 produced.

 To be honest, I'm not sure if there is a way around this problem, except
 upgrading the GCC used by the build bot from 4.2 to 4.4 (the minimum
 version mentioned by cppcheck), which is probably easier said then done.

 Should I somehow tell the buildbot not to build cppcheck for Snow Leopard?

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


More information about the macports-tickets mailing list