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

  • SEARCH
  • Home
  • 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 8714611
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T05:38:23+00:00 2026-06-13T05:38:23+00:00

I got GSL to work using CygWin as described here , but I’d like

  • 0

I got GSL to work using CygWin as described here, but I’d like to produce an executable using MinGW. I downloaded GnuWin32, and I got rid of a few errors by putting the contents of GnuWin32\include into MinGW\include, and doing the same for the lib and bin directories, but I’m still getting the error,

undefined reference to 'gsl_sf_bessel_J0'

The code I’m trying to run is,

#include <gsl\gsl_sf_bessel.h>
#include <stdio.h>

int main(void)
{
  double x = 5.0 ;
  double y = gsl_sf_bessel_J0( x ) ;
  printf( "J0(%g) = %.18e\n", x, y ) ;
  return 0 ;
}

I learned from here that the linker produced this error message, but I’m not sure what do with this information. I imagine that I need to add some things to compilation command, but I’m not sure what to add. Right now I’m trying to compile using the command,

g++ gsltest.cpp -o gsltest.exe

Any help would be greatly appreciated, 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-06-13T05:38:24+00:00Added an answer on June 13, 2026 at 5:38 am

    Geez, Louise. I figured it out. Use,

    g++ gsltest.cpp -o gsltest.exe -lgsl -lm
    

    More information can be found using this powerpoint on scientific programming.

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

Sidebar

Related Questions

Got OpenSSL (Win32) here http://slproweb.com/products/Win32OpenSSL.html Downloaded and compiled libCURL wit following flags USE_SSLEAY; USE_OPENSSL;
Got a problem with selecting message from topic by message id. Here’s the boiled
Got a problem here. I'm creating a MAAttachedWindow , then hiding it when a
got code looking like this: // This is com.n.common.Networking.downloadBmp( ) function // ... byte[]
Got this errors keeps appeared repeatedly Here is my line 20 on functions.php $wp_query->max_num_pages
Got a real simple question but can't figure out the solution. Got following code.
Got this error while trying to get the variables out of a class. Using
Got a little problem. I'd like to create an android list view activity with
Got a page based on Google Wave (http://wave.google.com/maintenance/index.html) but instead of clouds going left
Got a problem here on exiting onclick. The program uses shared preferences to get

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.