-
Notifications
You must be signed in to change notification settings - Fork 214
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
Building example throws undefined references #156
Comments
This appears to be an issue with linking statically but the static flags from libcheck are not being included. I wonder if this is an issue with the pkg-config file installed by Ubuntu is being used and not the file which you installed along with Check when you compiled from source. The example builds and tests successfully on Linux and macOS for me, so my hunch is it is something about the old Check trying to be used instead of the Check you built. Here is another issue logged about Check and Ubuntu, in case it is helpful. |
Ubuntu 16.04, I resolved this by changing |
Unfortunately, changing from STATIC to SHARED breaks the Windows builds, and CMake is primarily used to support Windows. Is the same issue found when using the configure script? The configure script is the official support path for *nix. |
Using the configure script instead of cmake when building resolved this issue. |
If it's a consideration to push forward with only CMake, adding a platform check such as |
Had the same error. Fixed by installing "pkg-config":
|
The version 0.13.0 CMake build should fix this. |
I had the same error too, building in a Debian based docker container.
|
Tried to build the example on Ubuntu 14.04 in check-0.12.0 with check installed from source using cmake (because the ap-get sources aren't up to date and was missing some basic functions such as ck_assert_float_eq). It fails with following errors.
The text was updated successfully, but these errors were encountered: