Hi there, I installed GLS library (v1.2-1) from Fink (OS X 10.1) and I wrote the following code:
> #include <math.h> > #include <gsl/gsl_math.h> > #include <stdio.h> > #include <time.h> > > main() > { > int i; > > double res_gsl[100]; > > clock_t start_time, stop_time; > > start_time = clock(); > > for (i = 0; i < 100; i++) { > res_gsl[i] = gsl_pow_int(2, i); > } > > stop_time = clock(); > > printf("GSL power: %g\n", (double) (stop_time - start_time)); > > return 0; > } When I compile it I get the following result: > [localhost:my_dir]me% cc -o my_trial -I /sw/include my_trial.c -lm > /usr/bin/ld: Undefined symbols: > _gsl_pow_int If I write: > [localhost:my_dir]me% cc -o prova -I /sw/include prova.c -lgsl -lm as suggested by GSL manual I get: > /usr/bin/ld: can't locate file for: -lgsl Finally, if I search gsl*.lib I can't find it anywhere under /sw. Where I get wrong? Please help me, Andrea. --- Andrea Riciputi <mailto:[EMAIL PROTECTED]> "Science is like sex: sometimes something useful comes out, but that is not the reason we are doing it" -- (Richard Feynman) ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Fink-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/fink-users