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: David Schaich
Subject: Re: [Help-gsl] Linker error - how to resolve?
Date: Sat, 20 Oct 2007 17:02:41 -0400
User-agent: Thunderbird 2.0.0.6 (X11/20070728)

What command(s) are you (or your IDE) using to compile and link? Be sure to include "-lgsl -lgslcblas -lm" as described in the manual, www.gnu.org/software/gsl/manual/html_node/Linking-programs-with-the-library.html

-David Schaich


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




reply via email to

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