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

What is libg2c.a? And why do I have to link to it?



Hi,

I have a autoconf test that fails if i don't give -lg2c as extra link
flags.  Without g2c there are undefined references to e_wsfe, z_abs,
c_sqrt, etc.  Is not g2c an internal gcc thing?

The autoconf lines in question is:

dnl this fails for lapack
AC_CHECK_LIB(m, pow)
AC_CHECK_LIB(blas,ddot_)
AC_CHECK_LIB(lapack,sspsv_)

dnl this succeeds for lapack
AC_CHECK_LIB(m, pow)
AC_CHECK_LIB(blas,ddot_)
AC_CHECK_LIB(lapack,sspsv_,,,-lg2c)

TIA,

Micce

-- 
Mikael Hedin, MSc +46 (0)8 344979 (home) +46 (0)70 5891533 (mobile)
[gpg key fingerprint = 387F A8DB DC2A 50E3 FE26  30C4 5793 29D3 C01B 2A22]



Reply to: