On 18 okt 2007, at 17.32, genette go wrote:
hello help-gsl,
im using Dev C++ Bloodshed Software, and installed
GSL-1.6-gcc3.3.1-1cml(2525kb).
in my program im calling the following:
#include <gsl/gsl_rng.h>
#include <gsl/gsl_randist.h>
upon compilation, i encountered the ff error:
[Linker error] undefined reference to `gsl_rng_uniform'
[Linker error] undefined reference to `gsl_rng_uniform'
[Linker error] undefined reference to `gsl_rng_mt19937'
[Linker error] undefined reference to `gsl_rng_alloc'
[Linker error] undefined reference to `gsl_rng_set'
[Linker error] undefined reference to `gsl_rng_uniform_int'
ld returned 1 exit status
how do i resolve this error?? is it the GSL1.6 version that i have
downloaded? do i need to install other program (say, a patch)??
hope you can help me diagnose the problem.
thank yo very much.
regards,
G
You need to put the options -lgsl -lgslcblas after your object file
names in the link command line.
Additionally, you might need to set up some environment variables, if
you have installed the gsl libraries
in another directory than the default.
------------------------------------------------------
"Home is not where you are born, but where your heart finds peace" -
Tommy Nordgren, "The dying old crone"
[EMAIL PROTECTED]
_______________________________________________
Help-gsl mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-gsl