clang: warning: libstdc++ is deprecated; move to libc++ with a minimum deployment target of OS X 10.9

Normal,You will encounter this error when installing a Python package,This package must be a package containing C ++ code。

This is due to incompatibility after macOS update,In General,The maintainer of this package should already be compatible with this particular situation:

So that it can be successfully compiled on macOS。

But if you are using PyPy,Maybe even if the maintainer includes this sentence,You cannot successfully install the corresponding package,At this time, you need to manually specify the compiler:

CFLAGS=-stdlib=libc++ Specify the compiler to use,Avoid PyPy ignore setup.py Some settings in。

Original article written by LogStudio:R0uter's Blog » clang: warning: libstdc++ is deprecated; move to libc++ with a minimum deployment target of OS X 10.9

Reproduced Please keep the source and description link:https://www.logcg.com/archives/3369.html

About the Author

R0uter

The non-declaration,I have written articles are original,Reproduced, please indicate the link on this page and my name。

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *