help-gsl
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Help-gsl] Need help getting started!


From: David Schaich
Subject: Re: [Help-gsl] Need help getting started!
Date: Fri, 12 Oct 2007 16:23:42 -0400
User-agent: Thunderbird 2.0.0.6 (X11/20070728)

What command(s) are you using to compile and link? Be sure to include "-lgsl -lgslcblas -lm" as described in the manual,
www.gnu.org/software/gsl/manual/html_node/Linking-programs-with-the-library.html

-David Schaich


jgvicke wrote:
Hey everyone,

It has been a while since I have needed to program in C, so I am a little rusty. I tried getting the basic test program working, but am recieving errors. This is the program I am trying to compile:

    #include <stdio.h>
    #include <gsl/gsl_sf_bessel.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 am getting errors that say:

Error 1 error LNK2019: unresolved external symbol _gsl_sf_bessel_J0 referenced in function _main

I think this is from the library not refrencing itself correctly. I have downloaded the entire library, then put everything in a folder called "gsl" in my compilers include directory. I even tried moving all the .h files into the main folder instead of leaving them in the many subdirectories, still with no luck. I am really stuck on how to move forward, and any help would be appreciated.

Thanks

John Vickers




reply via email to

[Prev in Thread] Current Thread [Next in Thread]