Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
This repository was archived by the owner on Jun 27, 2025. It is now read-only.

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

#56
Open
zzzhc wants to merge 1 commit into
twmht:mastertwmht/python-rocksdb:masterfrom
zzzhc:fix-macos-linker-errorzzzhc/python-rocksdb:fix-macos-linker-errorCopy head branch name to clipboard
Open

fix library not found for -lstdc++ on macos#56
zzzhc wants to merge 1 commit into
twmht:mastertwmht/python-rocksdb:masterfrom
zzzhc:fix-macos-linker-errorzzzhc/python-rocksdb:fix-macos-linker-errorCopy head branch name to clipboard

Conversation

@zzzhc

@zzzhc zzzhc commented Jun 22, 2019

Copy link
Copy Markdown

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 subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

Morty Proxy This is a proxified and sanitized view of the page, visit original site.