[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Help-gsl] Problems with compiling Non Linear Fit Example
From: |
Dr. Jonny Birkhan |
Subject: |
[Help-gsl] Problems with compiling Non Linear Fit Example |
Date: |
Fri, 16 Feb 2018 09:45:52 +0100 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 |
Dear all,
I have installed gsl-2.4 on a
Linux 4.4.0-103-generic #126-Ubuntu SMP Mon Dec 4 16:23:28 UTC 2017 x86_64.
The libraries are installed in /usr/local/lib.
My gcc version is: gcc (Ubuntu 5.4.0-6ubuntu1~16.04.6) 5.4.0 20160609
When I try to compile the Exponential Fitting Example I get the
following messages:
gcc -LLIBDIR=/usr/local/lib -o test test.c -lm -lgsl -lgslcblas
/tmp/ccuzgEIN.o:: In function `callback':
test.c:(.text+0x2b1): undefined reference to `gsl_multifit_nlinear_residual'
test.c:(.text+0x2c1): undefined reference to `gsl_multifit_nlinear_position'
test.c:(.text+0x2d8): undefined reference to `gsl_multifit_nlinear_rcond'
/tmp/cclIWgcr.o: In function `main':
test.c:(.text+0x386): undefined reference to `gsl_multifit_nlinear_trust'
test.c:(.text+0x399): undefined reference to
`gsl_multifit_nlinear_default_parameters'
test.c:(.text+0x640): undefined reference to `gsl_multifit_nlinear_alloc'
test.c:(.text+0x665): undefined reference to `gsl_multifit_nlinear_winit'
test.c:(.text+0x671): undefined reference to `gsl_multifit_nlinear_residual'
test.c:(.text+0x6f6): undefined reference to `gsl_multifit_nlinear_driver'
test.c:(.text+0x708): undefined reference to `gsl_multifit_nlinear_jac'
test.c:(.text+0x729): undefined reference to `gsl_multifit_nlinear_covar'
test.c:(.text+0x755): undefined reference to `gsl_multifit_nlinear_trs_name'
test.c:(.text+0x764): undefined reference to `gsl_multifit_nlinear_name'
test.c:(.text+0x78f): undefined reference to `gsl_multifit_nlinear_niter'
test.c:(.text+0xa9e): undefined reference to `gsl_multifit_nlinear_free'
collect2: error: ld returned 1 exit status
I guess it's a problem with a missing library file. I couldn't find any
bug report on that problem.
The source code is appended.
Can you help me?
Thanks in advance and best regards,
Jonny Birkhan
--
#########################################
Dr. Jonny Birkhan
Ltg. Steuerung S-DALINAC/IT
Strahlenschutzbeauftragter
Technische Universität Darmstadt
Institut für Kernpyhsik / FB 5
AG Pietralla
Schlossgartenstraße 9
D-64289 Darmstadt
Tel.: +0496151-16 21740
Fax: +0496151-16 23305
#########################################
test.c
Description: Text Data
- [Help-gsl] Problems with compiling Non Linear Fit Example,
Dr. Jonny Birkhan <=