Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix library not found for -lstdc++ on macos #56

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

zzzhc
Copy link

@zzzhc zzzhc commented Jun 22, 2019

it failed when installing with pip on macos(10.14.3):

    25 warnings generated.
    g++ -bundle -undefined dynamic_lookup -L/Users/zzzhc/anaconda3/lib -arch x86_64 -L/Users/zzzhc/anaconda3/lib -arch x86_64 -L/usr/local/opt/icu4c/lib -I/usr/local/opt/icu4c/include -arch x86_64 build/temp.macosx-10.7-x86_64-3.7/rocksdb/_rocksdb.o -lrocksdb -lsnappy -lbz2 -lz -llz4 -o build/lib.macosx-10.7-x86_64-3.7/rocksdb/_rocksdb.cpython-37m-darwin.so
    clang: warning: libstdc++ is deprecated; move to libc++ with a minimum deployment target of OS X 10.9 [-Wdeprecated]
    ld: library not found for -lstdc++
    clang: error: linker command failed with exit code 1 (use -v to see invocation)
    error: command 'g++' failed with exit status 1

fix it by add extra link args(-stdlib=libc++).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant