This is the mail archive of the gsl-discuss@sources.redhat.com mailing list for the GSL project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

GNU Scientific Library


Hi,

I am trying to compile the example program eigen.cpp that I copied from
the tutorial. The GNU Scientific Library was OK but the g++ compiler
complains as follows:

g++ -I /mb/apps/gsl/gsl-1.2 -L /mb/apps/gsl/gsl-1.2/loclib -v eigen.cpp

Reading specs from
/usr/local/bin/../lib/gcc-lib/i686-pc-linux-gnu/3.0/specs
Configured with: ../configure --prefix=/usr/local/apps/gcc/gcc-3.0
Thread model: single
gcc version 3.0
 /usr/local/bin/../lib/gcc-lib/i686-pc-linux-gnu/3.0/cc1plus -v -I
/mb/apps/gsl/gsl-1.2 -iprefix
/usr/local/bin/../lib/gcc-lib/i686-pc-linux-gnu/3.0/ -D__GNUC__=3
-D__GNUC_MINOR__=0 -D__GNUC_PATCHLEVEL__=0 -D__ELF__ -Dunix -Dlinux
-D__ELF__ -D__unix__ -D__linux__ -D__unix -D__linux -Asystem=posix
-D__NO_INLINE__ -D__STDC_HOSTED__=1 -D_GNU_SOURCE -Acpu=i386
-Amachine=i386 -Di386 -D__i386 -D__i386__ -D__tune_i686__
-D__tune_pentiumpro__ eigen.cpp -D__GNUG__=3 -D__GXX_DEPRECATED
-D__EXCEPTIONS -D__GXX_ABI_VERSION=100 -quiet -dumpbase eigen.cpp -version
-o /tmp/ccTDN90A.s
GNU CPP version 3.0 (cpplib) (i386 Linux/ELF)
GNU C++ version 3.0 (i686-pc-linux-gnu)
        compiled by GNU C version 3.0.
ignoring nonexistent directory
"/usr/local/lib/gcc-lib/../../i686-pc-linux-gnu/include"
ignoring nonexistent directory
"/usr/local/apps/gcc/gcc-3.0/i686-pc-linux-gnu/include"
ignoring duplicate directory "/usr/local/apps/gcc/gcc-3.0/include/g++-v3"
ignoring duplicate directory
"/usr/local/apps/gcc/gcc-3.0/include/g++-v3/i686-pc-linux-gnu"
ignoring duplicate directory
"/usr/local/apps/gcc/gcc-3.0/include/g++-v3/backward"
ignoring duplicate directory
"/usr/local/apps/gcc/gcc-3.0/lib/gcc-lib/i686-pc-linux-gnu/3.0/include"
#include "..." search starts here:
#include <...> search starts here:
 /mb/apps/gsl/gsl-1.2
 /usr/local/lib/gcc-lib/../../include/g++-v3
 /usr/local/lib/gcc-lib/../../include/g++-v3/i686-pc-linux-gnu
 /usr/local/lib/gcc-lib/../../include/g++-v3/backward
 /usr/local/lib/gcc-lib/i686-pc-linux-gnu/3.0/include
 /usr/local/include
 /usr/include
End of search list.
 as --traditional-format -V -Qy -o /tmp/ccUqsTSz.o /tmp/ccTDN90A.s
GNU assembler version 2.10.91 (i486-suse-linux) using BFD version
2.10.0.33
 /usr/local/bin/../lib/gcc-lib/i686-pc-linux-gnu/3.0/collect2 -m elf_i386
-dynamic-linker /lib/ld-linux.so.2 /usr/lib/crt1.o /usr/lib/crti.o
/usr/local/bin/../lib/gcc-lib/i686-pc-linux-gnu/3.0/crtbegin.o -L
/mb/apps/gsl/gsl-1.2/loclib
-L/usr/local/bin/../lib/gcc-lib/i686-pc-linux-gnu/3.0
-L/usr/local/bin/../lib/gcc-lib
-L/usr/local/apps/gcc/gcc-3.0/lib/gcc-lib/i686-pc-linux-gnu/3.0
-L/usr/local/bin/../lib/gcc-lib/i686-pc-linux-gnu/3.0/../../..
-L/usr/local/apps/gcc/gcc-3.0/lib/gcc-lib/i686-pc-linux-gnu/3.0/../../..
/tmp/ccUqsTSz.o -lstdc++ -lm -lgcc_s -lgcc -lc
-lgcc_s -lgcc /usr/local/bin/../lib/gcc-lib/i686-pc-linux-gnu/3.0/crtend.o
/usr/lib/crtn.o
/tmp/ccUqsTSz.o: In function `main':
/tmp/ccUqsTSz.o(.text+0x31): undefined reference to
`gsl_matrix_view_array'
/tmp/ccUqsTSz.o(.text+0x3e): undefined reference to `gsl_vector_alloc'
/tmp/ccUqsTSz.o(.text+0x53): undefined reference to `gsl_matrix_alloc'
/tmp/ccUqsTSz.o(.text+0x66): undefined reference to
`gsl_eigen_symmv_alloc'
/tmp/ccUqsTSz.o(.text+0x8d): undefined reference to `gsl_eigen_symmv'
/tmp/ccUqsTSz.o(.text+0x9e): undefined reference to `gsl_eigen_symmv_free'
/tmp/ccUqsTSz.o(.text+0xb7): undefined reference to `gsl_eigen_symmv_sort'
/tmp/ccUqsTSz.o(.text+0xf0): undefined reference to `gsl_vector_get'
/tmp/ccUqsTSz.o(.text+0x114): undefined reference to `gsl_matrix_column'
/tmp/ccUqsTSz.o(.text+0x15d): undefined reference to `gsl_vector_fprintf'
collect2: ld returned 1 exit status


/tmp/ccYQiZDw.o: In function `main':
/tmp/ccYQiZDw.o(.text+0x31): undefined reference to
`gsl_matrix_view_array'
/tmp/ccYQiZDw.o(.text+0x3e): undefined reference to `gsl_vector_alloc'
/tmp/ccYQiZDw.o(.text+0x53): undefined reference to `gsl_matrix_alloc'
/tmp/ccYQiZDw.o(.text+0x66): undefined reference to
`gsl_eigen_symmv_alloc'
/tmp/ccYQiZDw.o(.text+0x8d): undefined reference to `gsl_eigen_symmv'
/tmp/ccYQiZDw.o(.text+0x9e): undefined reference to `gsl_eigen_symmv_free'
/tmp/ccYQiZDw.o(.text+0xb7): undefined reference to `gsl_eigen_symmv_sort'
/tmp/ccYQiZDw.o(.text+0xf0): undefined reference to `gsl_vector_get'
/tmp/ccYQiZDw.o(.text+0x114): undefined reference to `gsl_matrix_column'
/tmp/ccYQiZDw.o(.text+0x15d): undefined reference to `gsl_vector_fprintf'
collect2: ld returned 1 exit status




Do you have any clue of what is going on?

Best wishes,
Enrico Mombelli


-----------------------------------------

Dr. Enrico Mombelli

Mathematical Biology Division
National Institute for Medical Research
The Ridgeway, Mill Hill NW7 1AA London
tel 0208 816 2385
fax 0208 8906 4477 / 9138545
http://mathbio.nimr.mrc.ac.uk
------------------------------------------




Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]