Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6246867
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T12:46:06+00:00 2026-05-24T12:46:06+00:00

I got a problem while installing the GNU Scientific Library (gsl). I put the

  • 0

I got a problem while installing the GNU Scientific Library (gsl).
I put the package on my desktop, and did “./configure”, “make”, and “sudo make install”, according to the document included. I checked the /usr/local/include directory, there is a newly created “gsl” folder in there. But When I tried to use the functions provided by the library, the “undefined reference to ‘gsl_sf_beta_inc'” error occurred. Here is my code.

#include <stdio.h>
#include <gsl/gsl_sf_gamma.h>

int main (void)
{
    double a = 20;
    double b = 1000;
    double x = 0.5;
    double result = gsl_sf_beta_inc(a, b, x);
    printf("%f/d", result);
    return 0;
}

I sensed that the problem might be caused by the fact I put the package on the desktop, so the binary code generated by the “make” command goes there, which is wrong.
So, is my guess correct? If it is, where should I put them? If it is not, what should I do?
Thanks.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-24T12:46:06+00:00Added an answer on May 24, 2026 at 12:46 pm

    You need to link the library, assuming the make install was successful.

    The gsl’s documentation says this should work
    (note the two necessary linking options for gsl to work: “-lgsl -lgslcblas”):

    gcc -I/usr/local/include -L/usr/local/lib main.c -o main -lgsl -lgslcblas -lm
    

    Alternative “cblas” instead of gsl’s cblas is also possible as per: alternate cblas for gsl

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've got a problem converting an object property to string while using reflection... string
I'm learning queues from a book. I've got into a problem while learning circular
I've got a problem thats been perplexing me for a while. I have a
I've got a little problem while managing .txt files on Android. I've found this
While i'm installing an APK file from SD card, I got a Parse error
I've got a problem while parsing a OWLS Document (RDF) with Jena. The document
I've got problem while including header files, in every header file i use #pragma
I got another problem while assigning the foreign key constraint to a column across
I got this problem 'UINT64_C' was not declared in this scope while using the
I got some weired problem while converting data type in ruby. Here are some

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.