undefined reference to gsl_ode_iv2*

undefined reference to gsl_ode_iv2*

par Keegan Humphrey,
Nombre de réponses : 1
Hi Ramses,

I am working on assignment 5. I tried loading the module for gsl as we did for the rarray module by adding 

module load gcc/12 gsl/2.7 gdb

to the teachsetup file given to us in assignment 4 and calling

source teachsetup 

However on trying to run a my code based on the lecture note example with gsl I get a slew of errors along the lines of:

/usr/bin/ld: Dwarf Error: found dwarf version '1', this reader only handles version 2, 3 and 4 information.

evolve_ut.cpptriste.text.unlikely+0x83): undefined reference to `gsl_odeiv2_control_free'

Have I not properly set up the gsl libraries?

Please advise! 



En réponse à Keegan Humphrey

Re: undefined reference to gsl_ode_iv2*

par Ramses van Zon,
I am not sure about the Dwarf error (perhaps you copied over some .o files?), but the undefined reference would be because you are not linking with "-lgsl -lgslcblas"