[MacPorts] #53625: qscintilla: requires C++11, not using the right compiler

MacPorts noreply at macports.org
Thu Feb 23 13:08:39 UTC 2017


#53625: qscintilla: requires C++11, not using the right compiler
-------------------------+-----------------------
  Reporter:  mojca       |      Owner:  michaelld
      Type:  defect      |     Status:  reopened
  Priority:  Normal      |  Milestone:
 Component:  ports       |    Version:
Resolution:              |   Keywords:
      Port:  qscintilla  |
-------------------------+-----------------------

Comment (by michaelld):

 Interesting. On what OS version are you compiling Qsci? I'm using latest
 stock Sierra & Xcode, and Qsci compiles fine with or without -std=c++11
 added. It is certainly true that <regex> is a C++11 file, so I'm guessing
 there's a warning in the log file somewhere about it.

 What would be ideal is if the default CXXFLAGS were "-std=c++98" or
 whatever. Then if C++11 is desired, we swap that to "-std=c++11
 -Wc++11-extension". Likewise for C++14 or C++17, assuming the updated -W
 is valid for those. Basically: Try to force the compiler to a certain
 standard & warn if not abiding by it.

 Sort of like checking for whether the port can "use the right compiler".

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


More information about the macports-tickets mailing list