[MacPorts] #54599: g++ rejects flag "-stdlib"

MacPorts noreply at macports.org
Sun Aug 13 04:28:25 UTC 2017


#54599: g++ rejects flag "-stdlib"
-------------------------+-----------------
  Reporter:  mouse07410  |      Owner:
      Type:  defect      |     Status:  new
  Priority:  Normal      |  Milestone:
 Component:  ports       |    Version:
Resolution:              |   Keywords:
      Port:              |
-------------------------+-----------------

Comment (by kencu):

 Thanks. If you're on 10.6 or later, you should use clang++ instead of g++.
 So your build line would be something like this:

 {{{
 /opt/local/bin/clang++-mp-4.0 -stdlib=libc++ -std=c++11 -o tfd
 -I/opt/local/include -L/opt/local/lib  tf.cpp
 }}}

 libgmp doesn't swim well with clang, and you don't need -lc++. Sorry I
 don't know what -lecm is all about.

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


More information about the macports-tickets mailing list