help-gsl
[Top][All Lists]
Advanced

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

Re: [Help-gsl] Linker error - how to resolve?


From: Tommy Nordgren
Subject: Re: [Help-gsl] Linker error - how to resolve?
Date: Sun, 21 Oct 2007 13:09:31 +0200


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"
address@hidden






reply via email to

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