public inbox for gsl-discuss@sourceware.org
 help / color / mirror / Atom feed
* GNU Scientific Library
@ 2002-09-30 11:19 emombel
  2002-09-30 11:22 ` Steve ROBBINS
  2002-10-14  3:53 ` emombel
  0 siblings, 2 replies; 4+ messages in thread
From: emombel @ 2002-09-30 11:19 UTC (permalink / raw)
  To: gsl-discuss


Hi,

I am trying to install the  GNU Scientific Library but when I try to
compile an example program, I found in the reference manual, I encounter
the following error messages:

/tmp/ccOEfTKp.o: In function `main':
/tmp/ccOEfTKp.o(.text+0x15): undefined reference to `gsl_matrix_alloc'
/tmp/ccOEfTKp.o(.text+0x27): undefined reference to `gsl_matrix_alloc'
collect2: ld returned 1 exit status

It looks like there is something wrong with the libraries

When I typed 'make install' some errors were detected:

make[2]: *** [install-pkgincludeHEADERS] Error 1
make[2]: Leaving directory `/home/emombel/GSL/gsl-1.0/sys'
make[1]: *** [install-am] Error 2
make[1]: Leaving directory `/home/emombel/GSL/gsl-1.0/sys'
make: *** [install-recursive] Error 1

Turning on or off the Compilation of shared libraries does not help.

Does somebody have some clues?

Thanks,
Enrico Mombelli



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: GNU Scientific Library
  2002-09-30 11:19 GNU Scientific Library emombel
@ 2002-09-30 11:22 ` Steve ROBBINS
  2002-10-14  3:53 ` emombel
  1 sibling, 0 replies; 4+ messages in thread
From: Steve ROBBINS @ 2002-09-30 11:22 UTC (permalink / raw)
  To: emombel; +Cc: gsl-discuss

On Mon, Sep 30, 2002 at 06:23:31PM +0100, emombel@nimr.mrc.ac.uk wrote:
> 
> Hi,
> 
> I am trying to install the  GNU Scientific Library but when I try to
> compile an example program, I found in the reference manual, I encounter
> the following error messages:
> 
> /tmp/ccOEfTKp.o: In function `main':
> /tmp/ccOEfTKp.o(.text+0x15): undefined reference to `gsl_matrix_alloc'
> /tmp/ccOEfTKp.o(.text+0x27): undefined reference to `gsl_matrix_alloc'
> collect2: ld returned 1 exit status
> 
> It looks like there is something wrong with the libraries

Possibly, or maybe you forgot to link with one of them.  It is hard
to tell without knowing what command line you used.

The best thing to do is: immediately after building ("make") but
before "make install", do "make check".  That runs a regression test
and should tell you whether the libraries are correctly built.

> When I typed 'make install' some errors were detected:
> 
> make[2]: *** [install-pkgincludeHEADERS] Error 1
> make[2]: Leaving directory `/home/emombel/GSL/gsl-1.0/sys'
> make[1]: *** [install-am] Error 2
> make[1]: Leaving directory `/home/emombel/GSL/gsl-1.0/sys'
> make: *** [install-recursive] Error 1

The important information appears in the lines above the first "Error 1",
which you omitted.  Do you have write permission on the directories
to which you are installing gsl?

-S



^ permalink raw reply	[flat|nested] 4+ messages in thread

* GNU Scientific Library
  2002-09-30 11:19 GNU Scientific Library emombel
  2002-09-30 11:22 ` Steve ROBBINS
@ 2002-10-14  3:53 ` emombel
  2002-10-15 14:46   ` Brian Gough
  1 sibling, 1 reply; 4+ messages in thread
From: emombel @ 2002-10-14  3:53 UTC (permalink / raw)
  To: gsl-discuss


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
------------------------------------------



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: GNU Scientific Library
  2002-10-14  3:53 ` emombel
@ 2002-10-15 14:46   ` Brian Gough
  0 siblings, 0 replies; 4+ messages in thread
From: Brian Gough @ 2002-10-15 14:46 UTC (permalink / raw)
  To: emombel; +Cc: gsl-discuss

emombel@nimr.mrc.ac.uk writes:
 > g++ -I /mb/apps/gsl/gsl-1.2 -L /mb/apps/gsl/gsl-1.2/loclib -v eigen.cpp

 > /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'
 > Do you have any clue of what is going on?
 > 

You need to link with the library, see Chapter 2 'Using the library'
in the manual

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2002-10-15 21:46 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-09-30 11:19 GNU Scientific Library emombel
2002-09-30 11:22 ` Steve ROBBINS
2002-10-14  3:53 ` emombel
2002-10-15 14:46   ` Brian Gough

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).