-
Notifications
You must be signed in to change notification settings - Fork 89
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
make error #7
Comments
In the file hash.cc at the very top, could you try including
If so, I'll push that fix out. |
There are some other errors. I tried to solve them by updating my libboost to 1.53, and then make succeed, the src code of the test programme is as following: Actually, This is the example programme in the Synopsis. |
I'm missing a bit of context to assess the problem. Could you tell me what OS and compiler you are using? (The Boost dependency is only necessary for unit testing, 1.53 should suffice). What command line do you use for compiling your code? Based on the error message, it looks like you forgot to link libbf into your application. Make sure you have
To use libbf, you would typically include it the header file Also, could you confirm that the include fix I proposed solved your initial problem? |
It seems the compilation succeeded now. (Note: it's common to put no compiler flags after the linker flags, so I recommend to move the flag At this point you need to make sure that your library path is set up properly. Because you installed libbf in a non-standard system location, you need to either add
|
Great!,the test passed. Thanks a lot,Matthias. |
Good to hear it works now! Because libbf is not a header-only component but also ships with compiled code in the form of library, you need to do both: include the header and link the library to the object code from your own application. By separating the API from the implementation, I have more freedom in terms of the implementation. In the future, I do plan to make it again a header-only library. It has such a small footprint that this would indeed be a relief from the usability perspective. Since the library does not rely on any other external dependencies, I don't see the need to hide dependencies in the implementation. |
How can I sovle this problem?
CXX=g++ version 4.73
boost version 1.43
The text was updated successfully, but these errors were encountered: