[Top][All Lists]

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

Re: [Help-gsl] Problems linking - Undefined symbol

From: Brian Gough
Subject: Re: [Help-gsl] Problems linking - Undefined symbol
Date: Tue, 20 Jul 2004 10:14:18 +0100

Stephan Klatt writes:
 > I want to use gsl_matrix. So I included <gsl/gsl_matrix.h> in my
 > program code and wrote
 > gsl_matrix *m = gsl_matrix_alloc(3,3);
 > just like in the example program of the manual. Compiling is no problem,
 > but when I try to link, I get the error message
 > "Undefined Symbol gsl_matrix_alloc; first referenced in file testing.o"
 > How can that be? Thanks for any help!


You need to link against the GSL libraries using -l flags. See the GSL
Reference Manual chapter on "Using the Library", or my tutorial book on
GCC ("An Introduction to GCC") for full details:


Brian Gough
(GSL Maintainer)

Network Theory Ltd,
Commercial support for GSL ---

reply via email to

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