Skip to content
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

Fix: error caused by including the gsl header files. #130

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

tcxxxx
Copy link

@tcxxxx tcxxxx commented Jun 11, 2022

This pull request fixes a build error: "fatal error: gsl/gsl_randist.h: No such file or directory" (#110).
The error occurs when the libgsl library is not installed on the system.

A check is added to solve this problem. The check ensures that the gsl header files are included only when the libgsl library is installed and detected on the system. The detection is done by the AC_CHECK_LIB in configure.ac.

The patched version has been tested to build and run successfully: regardless of whether the library is missing and whether the --approx-threshold option is used, the program builds and runs successfully.

…header files are only included when libgsl is detected on the system.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant