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,FREEMAIL_FROM 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!feeder.eternal-september.org!news.unit0.net!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: hreba Newsgroups: comp.lang.ada Subject: Re: Interfaces.C questions Date: Sat, 18 Mar 2017 16:46:43 +0100 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: individual.net SDn0XXiiVcZihz7VAcPPjgVt6GYXnHl2qiGIr2YA2OmqiLW4TL Cancel-Lock: sha1:kk6kOxRHvrhYJSnmdPTlhEDbLi0= User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.5.1 In-Reply-To: Xref: news.eternal-september.org comp.lang.ada:46417 Date: 2017-03-18T16:46:43+01:00 List-Id: Instead of answering individually to each of you, I respond to my own posting. Thanks to your help I was able to compile the corrected version of my program. Execution generated a stack overflow. Reason was my wild guess about the C type "gsl_function". In the GSL (GNU Scientific Library) reference manual it is explained only through examples. Finally I found its definition in the header file gsl_math.h: struct gsl_function_struct { double (* function) (double x, void * params); void * params; }; typedef struct gsl_function_struct gsl_function ; Can anybody please tell me how to translate this into Ada? I have no idea how to handle the void pointers. -- Frank Hrebabetzky +49 / 6355 / 989 5070