help-gsl
[Top][All Lists]
Advanced

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

[Help-gsl] unreferenced libraries


From: Paul Gomez
Subject: [Help-gsl] unreferenced libraries
Date: Fri, 2 Nov 2007 10:59:08 +0100

 Hi people!

I´m working in a code with a friend! Both employ
Linux<http://www.daniweb.com/forums/thread95089.html#>Platforms, but
he works in Suse, and I´m working in Kubuntu.

Both distributions suppose to work with the GNU/Linux libraries.

We work the code on his machine with
Suse<http://www.daniweb.com/forums/thread95089.html#>.
And runs perfectly well!

But in my Kubuntu´s machine doesn´t run well. At the beggining there was a
lot of missing files, but we copy all from the include, lib, sys of his
laptop <http://www.daniweb.com/forums/thread95089.html#>, and then the
compiler founds all the files. Create the executable both still couldn´t
work. This was the problem (I think this is fixed).

address@hidden:~/Paul$ gcc ssp-N.c -o ssp-N -lm -lgsl -lgslcblas
/usr/bin/ld: cannot find -lm
collect2: ld returned 1 exit status
address@hidden:~/Paul$ ls
gsl gsl-1.9 HHS_es2_Windows_y_Linux.pdf Linux.pdf ssp-N.c ssp-N.c~
address@hidden:~/Paul$ cd <http://www.daniweb.com/forums/thread95089.html#>
gsl-1.9/
address@hidden:~/Paul/gsl-1.9$ ls
acconfig.h cdf configure.ac fft gsl_nan.h histo
aclocal.m4 ChangeLog const fit gsl.pc.in ieee-
AUTHORS cheb COPYING gsl gsl_pow_int.h INSTA
autogen.sh combination deriv gsl-config.in gsl_precision.h insta
blas complex dht gsl-histogram.c gsl-randist.c integ
block config.guess diff gsl.m4 gsl.spec.in inter
bspline config.h.in doc gsl_machine.h gsl_types.h linal
BUGS config.sub eigen gsl_math.h gsl_version.h ltmai
cblas configure err gsl_mode.h gsl_version.h.in Makef
address@hidden:~/Paul/gsl-1.9$ ./configure
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking whether make sets $(MAKE)... (cached) yes
checking build system
<http://www.daniweb.com/forums/thread95089.html#>type...
i686-pc-linux-gnu
checking host <http://www.daniweb.com/forums/thread95089.html#> system
type... i686-pc-linux-gnu
checking for gcc... gcc
checking for C compiler default output file name... configure: error: C
compiler
See `config.log' for more details.

I made this installation of the needed libraries (is a new installation of
Linux in this pc)! Now it looks it can understand the gsl references.
Yesterday I already had this problem previous to the -lm problem! I copy the
gsl files on the folder include. And that problem dissapear. Now it´s back!
Could you explain a little in detail what the different lines in the quote
means, so, I can understand better!  And what I can do??

Thanx for your help

/tmp/cc6OypKB.o: In function `main':
ssp-N.c: (text+0x20): undefined reference to `gsl_rng_env_setup'
ssp-N.c: (.text+0x25): undefined reference to `gsl_rng_default'
ssp-N.c: (.text+0x2e): undefined reference to `gsl_rng_default_seed'
ssp-N.c: (.text+0x3d): undefined reference to `gsl_rng_alloc'
ssp-N.c: (.text+0xbd): undefined reference to `gsl_rng_free'
/tmp/cc6OypKB.o: In function `web_calc':
ssp-N.c: (text+0x131): undefined reference to `gsl_matrix_calloc'
ssp-N.c: (text+0x1d9): undefined reference to `gsl_matrix_set'
./tmp/cc6OypKB.o:  ssp-N.c: (text+0x1022): more undefined references to
`gsl_vector_get' follow
/tmp/cc6OypKB.o: In function `dynamics':
ssp-N.c: (text+0x1079): undefined reference to `gsl_vector_set'
ssp-N.c: (text+0x109a): undefined reference to `gsl_vector_get'
ssp-N.c: (text+0x1119): undefined reference to `gsl_matrix_get'
ssp-N.c: (text+0x11d1): undefined reference to `gsl_matrix_free'
ssp-N.c: (.text+0x11fd): undefined reference to `gsl_vector_free'
collect2: ld returned 1 exit status

.
.
/tmp/cc6OypKB.o: ssp-N.c: (text+0x1022): more undefined references to
`gsl_vector_get' follow
/tmp/cc6OypKB.o: In function `dynamics':
ssp-N.c: (text+0x1079): undefined reference to `gsl_vector_set'
ssp-N.c: (text+0x1194): undefined reference to `gsl_vector_get' '
ssp-N.c: (text+0x11dc): undefined reference to `gsl_matrix_free
ssp-N.c: (text+0x11fd): undefined reference to `gsl_vector_free'
collect2: ld returned 1 exit status

-- 
Paul


reply via email to

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