From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=unavailable autolearn_force=no version=3.4.4 Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Simon Wright Newsgroups: comp.lang.ada Subject: Re: Example Ada calling Gnu Scientific Library (GSL) Date: Thu, 06 Apr 2017 08:30:02 +0100 Organization: A noiseless patient Spider Message-ID: References: <2b035819-e55e-4805-9ff1-a2cec09f13e0@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: mx02.eternal-september.org; posting-host="d694821b7a8329b0d42639825abfe682"; logging-data="6121"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19tQW0WIht6e63BT1IpgZ8VPn/TaZKgMUE=" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1 (darwin) Cancel-Lock: sha1:G1f1LgxgTyOG2LcHMbc+2fkECqM= sha1:akY74r+y0DnkFcwAWyuBrdw97WY= Xref: news.eternal-september.org comp.lang.ada:46538 Date: 2017-04-06T08:30:02+01:00 List-Id: hreba 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