From: hreba <f_hreba@yahoo.com.br>
Subject: Re: Example Ada calling Gnu Scientific Library (GSL)
Date: Fri, 7 Apr 2017 20:45:22 +0200
Date: 2017-04-07T20:45:22+02:00 [thread overview]
Message-ID: <ekq521F4gc3U1@mid.individual.net> (raw)
In-Reply-To: <lya87u803p.fsf@pushface.org>
On 04/06/2017 09:30 AM, Simon Wright wrote:
> hreba <f_hreba@yahoo.com.br> writes:
>
>> gcc test_integration.o -o test_integration
>> /home/frank/Lib/Ada/Num/Tests/obj/integ_aux.o: In function
>> `integ_aux__gsl_test__integration_qng':
>> /home/frank/Lib/Ada/Num/src/gsl.adb:54: undefined reference to
>> `gsl_integration_qng'
>> collect2: error: ld returned 1 exit status
>> gprbuild: link of test_integration.adb failed
>>
>> But in GSL_Raw/src/gsl_gsl_integration_h.ads the procedure
>> gsl_integration_qng _is_ declared.
>>
>> Where might it have gone lost?
>
> Hard to say, but running nm on gsl_gsl_integration_h.o might give a
> clue. Most likely, I guess, is that that file contains the corresponding
> symbol but decorated with a prefix derived from the package name? e.g.
> gsl_gsl_integration_h__gsl_integration_qng
>
Nothing similar:
frank@pc-frank ~/Lib/Ada/Num/GSL_Raw/obj $ nm gsl_gsl_integration_h.o
0000000000000000 D gsl_gsl_integration_h_E
0000000000000124 T gsl_gsl_integration_h__gsl_integration_cquad_ivalIP
000000000000012e T gsl_gsl_integration_h__gsl_integration_cquad_workspaceIP
00000000000000d2 T gsl_gsl_integration_h__gsl_integration_glfixed_tableIP
0000000000000020 R gsl_gsl_integration_h__gsl_integration_qawo_enumN
0000000000000000 R gsl_gsl_integration_h__gsl_integration_qawo_enumS
00000000000000bc T gsl_gsl_integration_h__gsl_integration_qawo_tableIP
00000000000000b2 T gsl_gsl_integration_h__gsl_integration_qaws_tableIP
0000000000000000 T gsl_gsl_integration_h__gsl_integration_workspaceIP
00000000000000f4 T
gsl_gsl_integration_h__Tgsl_integration_cquad_ival_c_arrayBIP
000000000000010c T
gsl_gsl_integration_h__Tgsl_integration_cquad_ival_fx_arrayBIP
0000000000000082 T
gsl_gsl_integration_h__Tgsl_integration_qaws_table_rg_arrayBIP
000000000000009a T
gsl_gsl_integration_h__Tgsl_integration_qaws_table_rh_arrayBIP
0000000000000052 T
gsl_gsl_integration_h__Tgsl_integration_qaws_table_ri_arrayBIP
000000000000006a T
gsl_gsl_integration_h__Tgsl_integration_qaws_table_rj_arrayBIP
The missing function is declared in src/gsl_gsl_integration_h.ads as
function gsl_integration_qng
(f : access constant gsl_gsl_math_h.gsl_function;
a : double;
b : double;
epsabs : double;
epsrel : double;
result : access double;
abserr : access double;
neval : access stddef_h.size_t) return int;
pragma Import (C, gsl_integration_qng, "gsl_integration_qng");
So what would be the next search step?
--
Frank Hrebabetzky +49 / 6355 / 989 5070
next prev parent reply other threads:[~2017-04-07 18:45 UTC|newest]
Thread overview: 27+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-03-29 1:29 Example Ada calling Gnu Scientific Library (GSL) Leo Brewin
2017-03-29 7:01 ` gautier_niouzes
2017-03-29 7:23 ` Dmitry A. Kazakov
2017-03-30 12:39 ` gautier_niouzes
2017-03-30 14:22 ` Dmitry A. Kazakov
2017-03-30 20:44 ` Randy Brukardt
2017-03-31 18:31 ` G.B.
2017-03-31 18:50 ` Dmitry A. Kazakov
2017-03-29 7:19 ` hreba
2017-03-29 20:07 ` Randy Brukardt
2017-04-04 21:25 ` hreba
2017-04-05 16:29 ` Simon Wright
2017-04-05 20:21 ` hreba
2017-04-06 7:30 ` Simon Wright
2017-04-07 18:45 ` hreba [this message]
2017-04-08 8:28 ` Simon Wright
2017-04-09 10:57 ` hreba
2017-04-09 15:17 ` Simon Wright
2017-04-10 8:53 ` hreba
2017-04-10 9:47 ` Dmitry A. Kazakov
2017-04-10 15:39 ` hreba
2017-04-10 17:16 ` Dmitry A. Kazakov
2017-04-10 17:43 ` Simon Wright
2017-04-10 15:44 ` Simon Wright
2017-04-11 17:31 ` hreba
2017-04-11 18:45 ` Simon Wright
2017-04-11 19:46 ` Dmitry A. Kazakov
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox