help-gsl
[Top][All Lists]
Advanced

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

[Help-gsl] Linking error with GSL 1.15 and gsl_rng functions


From: Joseph Wakeling
Subject: [Help-gsl] Linking error with GSL 1.15 and gsl_rng functions
Date: Mon, 10 Oct 2011 20:21:18 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:7.0.1) Gecko/20110929 Thunderbird/7.0.1

I'm having an unexpected linking error with code that has previously
built without problem against earlier GSL versions.

I'm using Kubuntu 11.10 with GSL 1.15, newly installed.  The errors
during build are as follows:

************************************************************************
/bin/bash ../libtool --tag=CXX   --mode=link g++ -I.. -g -O2 -lgsl
-lgslcblas -lm    -o minga minga.o libminga.la
libtool: link: g++ -I.. -g -O2 -o .libs/minga minga.o  -lgsl -lgslcblas
-lm ./.libs/libminga.so
./.libs/libminga.so: undefined reference to `gsl_rng_uniform_int'
./.libs/libminga.so: undefined reference to `gsl_rng_uniform'
collect2: ld returned 1 exit status
************************************************************************

I don't see why I should be generating these errors given that the
various calls to gsl, gslcblas and the maths library are all present in
the g++ call.  This code has previously built without problem (i.e.
prior to the install of the latest Kubuntu).  libgsl0-dev is installed;
running ldconfig -p reveals,

$ ldconfig -p | grep gsl
        libgslcblas.so.0 (libc6,x86-64) => /usr/lib/libgslcblas.so.0
        libgslcblas.so (libc6,x86-64) => /usr/lib/libgslcblas.so
        libgsl.so.0 (libc6,x86-64) => /usr/lib/libgsl.so.0
        libgsl.so (libc6,x86-64) => /usr/lib/libgsl.so

... so it's not a case of the libraries not being installed.

I've attached a copy of my configure.ac file, in case this can shed any
light.  Perhaps the autotools placing the LDFLAGS in the wrong position
in the call to g++?

Thanks in advance for any advice,

    -- Joe

Attachment: configure.ac
Description: Text document


reply via email to

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