This is the mail archive of the gsl-discuss@sources.redhat.com mailing list for the GSL project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Simple stuff: return values


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Mon, 12 Mar 2001, Brian Gough wrote:
>
> Thanks for the report. The gsl_complex_xy function is defined in
> <gsl/gsl_complex_math.h>.  The header file gsl_complex.h only has the
> definitions the complex datatypes.  This arrangement was not
> documented in the manual and I will add an explanation of it.

Thanks, I appreciate the quick response.  I also got another reply
reminding me that the `-Wall' flag is pretty useful (and it might be good
to make mention of that in the `Compiling and Linking' section of the
manual, if it isn't already in the most recent documentation).

Of course, when I did add in the header, I came across these errors

$ gcc gsl_test.c `gsl-config --cflags --libs` -Wall
/usr/lib/libgsl.so: undefined reference to `gsl_blas_daxpy'
/usr/lib/libgsl.so: undefined reference to `gsl_blas_dnrm2'
/usr/lib/libgsl.so: undefined reference to `gsl_blas_dgemv'
/usr/lib/libgsl.so: undefined reference to `gsl_blas_dscal'
/usr/lib/libgsl.so: undefined reference to `gsl_blas_dtrsv'
/usr/lib/libgsl.so: undefined reference to `gsl_blas_idamax'
/usr/lib/libgsl.so: undefined reference to `gsl_blas_ddot'

Obviously, adding `-lgslblas' fixed it.

I am curious, though, should `-lgslblas' be in the output of `gsl-config
- --libs'?  I guess you guys have a good reason for doing it the way you do
- -- so that a different BLAS library can be used, so maybe a new parameter
to gsl-config should be added (like '--libs-all').  Just a random thought

(BTW - I'm using gsl-0.7)

Thanks again.

- -- 
         Mike Hicks   [mailto:mhicks@csom.umn.edu]
   Unix Support Assistant     |  Carlson School of Management
Office: 4-214  Phone: x67909  |     University of Minnesota
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.4 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE6rUxp05OjzVUnj0URAkOTAJ0Zfyl68NZLh5BcQz+hobnMxoH/mQCfXBR8
jvhLtTL6NLSFxC0qgdHi9MA=
=oh12
-----END PGP SIGNATURE-----


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]