Re: [MacPorts] #53719: highlight @3.35 does not build with libstdc++ because of missing 'to_string’ declaration "in this scope"

MacPorts noreply at macports.org
Tue Apr 18 19:52:18 UTC 2017


#53719: highlight @3.35 does not build with libstdc++ because of missing
'to_string’ declaration "in this scope"
-------------------------+-------------------------------------------------
  Reporter:  ballapete   |      Owner:
      Type:  defect      |     Status:  new
  Priority:  Normal      |  Milestone:
 Component:  ports       |    Version:  2.4.1
Resolution:              |   Keywords:  tiger leopard snowleopard lion
      Port:  highlight   |  mountainlion
-------------------------+-------------------------------------------------

Comment (by kencu):

 Glad it worked. Couple of things, tho.

 `clang++` does not specify a specific compiler, and will just pull in
 whatever clang++ happens to be first on your path, which may or may not
 work. In your case, it apparently did work, though. For reliability,
 configure.cxx should point towards a more completely specified compiler.

 Also, setting `configure.cxxflags="-stdlib=libc++"` will overwrite any
 other cxxflags there might be, which may or may not be important -- you
 probably would rather do a `configure.cxxflags-append` instead, if you're
 looking for a proper fix for the Portfile.

--
Ticket URL: <https://trac.macports.org/ticket/53719#comment:12>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list