help-gsl
[Top][All Lists]
Advanced

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

[Help-gsl] Need help getting started!


From: jgvicke
Subject: [Help-gsl] Need help getting started!
Date: Fri, 12 Oct 2007 15:03:43 -0500
User-agent: Internet Messaging Program (IMP) H3 (4.1.3-cvs)

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]