GithubHelp home page GithubHelp logo

Comments (5)

mavam avatar mavam commented on August 25, 2024

Try including bf/bf.h. The installation creates an extra directory.

from libbf.

shuyaoyimei avatar shuyaoyimei commented on August 25, 2024

thanks,mavam
i have try it, but it do not work. i also try command "find / -name bf.h" and get nothing.
could you share more detail in the install progress?

from libbf.

mavam avatar mavam commented on August 25, 2024

My bad, try including bf/all.hpp, that's the default include for the entire library.

from libbf.

shuyaoyimei avatar shuyaoyimei commented on August 25, 2024

hello,amvam
i get the error when i execute clang++ -std=c++11 -o out/TestBf testbf.cpp -v

Apple LLVM version 9.1.0 (clang-902.0.39.1)
Target: x86_64-apple-darwin17.5.0
Thread model: posix
InstalledDir: /Library/Developer/CommandLineTools/usr/bin
"/Library/Developer/CommandLineTools/usr/bin/clang" -cc1 -triple x86_64-apple-macosx10.13.0 -Wdeprecated-objc-isa-usage -Werror=deprecated-objc-isa-usage -emit-obj -mrelax-all -disable-free -disable-llvm-verifier -discard-value-names -main-file-name testbf.cpp -mrelocation-model pic -pic-level 2 -mthread-model posix -mdisable-fp-elim -fno-strict-return -masm-verbose -munwind-tables -target-cpu penryn -target-linker-version 351.8 -v -dwarf-column-info -debugger-tuning=lldb -resource-dir /Library/Developer/CommandLineTools/usr/lib/clang/9.1.0 -stdlib=libc++ -std=c++11 -fdeprecated-macro -fdebug-compilation-dir /Users/nino/Downloads/RTree-master -ferror-limit 19 -fmessage-length 204 -stack-protector 1 -fblocks -fobjc-runtime=macosx-10.13.0 -fencode-extended-block-signature -fcxx-exceptions -fexceptions -fmax-type-align=16 -fdiagnostics-show-option -fcolor-diagnostics -o /var/folders/51/gf7zs5q55kx8015hspd22hc40000gn/T/testbf-98f318.o -x c++ testbf.cpp
clang -cc1 version 9.1.0 (clang-902.0.39.1) default target x86_64-apple-darwin17.5.0
ignoring nonexistent directory "/usr/include/c++/v1"
#include "..." search starts here:
#include <...> search starts here:
/Library/Developer/CommandLineTools/usr/include/c++/v1
/usr/local/include
/Library/Developer/CommandLineTools/usr/lib/clang/9.1.0/include
/Library/Developer/CommandLineTools/usr/include
/usr/include
/System/Library/Frameworks (framework directory)
/Library/Frameworks (framework directory)
End of search list.
"/Library/Developer/CommandLineTools/usr/bin/ld" -demangle -lto_library /Library/Developer/CommandLineTools/usr/lib/libLTO.dylib -no_deduplicate -dynamic -arch x86_64 -macosx_version_min 10.13.0 -o out/TestBf /var/folders/51/gf7zs5q55kx8015hspd22hc40000gn/T/testbf-98f318.o -lc++ -lSystem /Library/Developer/CommandLineTools/usr/lib/clang/9.1.0/lib/darwin/libclang_rt.osx.a
Undefined symbols for architecture x86_64:
"bf::basic_bloom_filter::clear()", referenced from:
_main in testbf-98f318.o
"bf::basic_bloom_filter::basic_bloom_filter(double, unsigned long, unsigned long, bool, bool)", referenced from:
_main in testbf-98f318.o
"vtable for bf::basic_bloom_filter", referenced from:
bf::basic_bloom_filter::~basic_bloom_filter() in testbf-98f318.o
NOTE: a missing vtable usually means the first non-inline virtual member function has no definition.
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

my os is os x 10.13.4, i have google the error and i try the all possible methods but not work.

i am so sorry to bother you, thanks.

from libbf.

mavam avatar mavam commented on August 25, 2024

Looks like linking fails because -lbf is missing on the command line. If adding -lbf doesn't do the trick, try adding -L/path/to/libbf-shared-lib.

from libbf.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.