For a school project, I need to use the GNU GSL library to do some calculations. I installed fink and downloaded the gsl library and installed it.
In Xcode, I went to get info on the project and under the "Header Search Paths" I typed in "/sw/include/" so Xcode would see the gsl header files.
The project compiles just fine, but when I try to run it, I get "ZeroLink: unknown symbol '_gsl_rng_default'"
What else to I have to setup in XCode to get it to use this library?
Thanks.
w0ngbr4d
EDIT: Here's the code
In Xcode, I went to get info on the project and under the "Header Search Paths" I typed in "/sw/include/" so Xcode would see the gsl header files.
The project compiles just fine, but when I try to run it, I get "ZeroLink: unknown symbol '_gsl_rng_default'"
What else to I have to setup in XCode to get it to use this library?
Thanks.
w0ngbr4d
EDIT: Here's the code
Code:
#include <stdio.h>
#include <gsl/gsl_rng.h>
#include <gsl/gsl_randist.h>
int main (int argc, const char * argv[]) {
// insert code here...
const gsl_rng_type *T;
gsl_rng *r;
gsl_rng_env_setup();
T = gsl_rng_default;
r = gsl_rng_alloc(T);
printf("Hello, World!\n");
return 0;
}