help-gsl
[Top][All Lists]
Advanced

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

[Help-gsl] Linear Algebra Documentation Examples help


From: address@hidden
Subject: [Help-gsl] Linear Algebra Documentation Examples help
Date: Thu, 29 Mar 2007 02:09:57 -0400
User-agent: Thunderbird 1.5.0.10 (X11/20070308)

I'm trying to compile the program listing in the documentation for the linear algebra section found here http://www.gnu.org/software/gsl/manual/html_node/Linear-Algebra-Examples.html. I am getting the following result:

gcc matrix_test.cpp
/tmp/ccaENm9Y.o: In function `main':
matrix_test.c:(.text+0x8f): undefined reference to `gsl_matrix_view_array'
matrix_test.c:(.text+0xb2): undefined reference to `gsl_vector_view_array'
matrix_test.c:(.text+0xc1): undefined reference to `gsl_vector_alloc'
matrix_test.c:(.text+0xd3): undefined reference to `gsl_permutation_alloc'
matrix_test.c:(.text+0xfb): undefined reference to `gsl_linalg_LU_decomp'
matrix_test.c:(.text+0x127): undefined reference to `gsl_linalg_LU_solve'
matrix_test.c:(.text+0x152): undefined reference to `gsl_vector_fprintf'
matrix_test.c:(.text+0x160): undefined reference to `gsl_permutation_free'
matrix_test.c:(.text+0x16e): undefined reference to `gsl_vector_free'
collect2: ld returned 1 exit status

I just cut and pasted the code into a file and ran g++ on it, followed by gcc (I renamed the file .c). Both gave the same result. The library is installed properly as far as I can tell since it doesn't complain about being unable to find the header files.

Can somebody either verify this, or help me out?

Thanks :)
Neil




reply via email to

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