help-gsl
[Top][All Lists]
Advanced

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

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


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

Hello all,

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

This turns out to be a g++/autotools issue rather than GSL -- sorry for
the noise.

FWIW, the workaround I have found is to add

  CXXFLAGS="$CXXFLAGS -Wl,--no-as-needed"

to configure.ac (apparently since gcc 4.5 the --as-needed option has
been assumed by default and this is what's causing the linking issues).

I'm following up elsewhere, but if I discover a more elegant solution
than the above I'll post it here.

Thanks & best wishes,

    -- Joe




reply via email to

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