clang++

OS X: ld: library not found for -lstdc++

余生长醉 提交于 2020-08-27 06:52:42
问题 I'm trying to wrap a Python lib around a C++ lib and distutils is failing for me on OS X. Here are the relevant lines from my setup.py: if sys.platform.startswith("darwin"): extra_compile_args_setting = ["-std=c++1z", "-stdlib=libc++", "-O3"] Here's the relevant output: clang -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/Users/x/anaconda/include -arch x86_64 -I/Users/x/anaconda/include -arch x86_64 -I../../cpp_client/libsrc -I../..