c++ - python setup build extension in osx -
i use python setup.py build
build extension.unfortunately, when try add external c++ library, build failed. here invocation:
"/applications/xcode.app/contents/developer/toolchains/xcodedefault.xctoolchain/usr/bin/lipo" -create -output build/temp.macosx-10.11-intel-2.7/main.o /var/folders/45/gz7ljrz94mdct3nvm9l5ftnr0000gp/t/main-294517.o /var/folders/45/gz7ljrz94mdct3nvm9l5ftnr0000gp/t/main-77a5db.o c++ -bundle -undefined dynamic_lookup -arch i386 -arch x86_64 -wl,-f. build/temp.macosx-10.11-intel-2.7/main.o -l/users/xiazhibin/clionprojects/study/lib/ -llibfoo.a -o build/lib.macosx-10.11-intel-2.7/bar.so ld: library not found -llibfoo.a clang: error: linker command failed exit code 1 (use -v see invocation) error: command 'c++' failed exit status 1
my libfoo.a
under /users/xiazhibin/clionprojects/study/lib
in complie list. -l/users/xiazhibin/clionprojects/study/lib/ -llibfoo.a
but, libfoo.a
not found!how wat that?
Comments
Post a Comment