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,WEIRD_PORT autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,c1bdceb867926fdb X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news3.google.com!feeder.news-service.com!feeder.news-service.com!85.214.198.2.MISMATCH!eternal-september.org!.POSTED!not-for-mail From: Simon Wright Newsgroups: comp.lang.ada Subject: Re: Interfacing Ada with C Date: Sun, 25 Jul 2010 15:26:51 +0100 Organization: A noiseless patient Spider Message-ID: References: <0ee9eec7-6024-4fb8-8df0-f65c146e4b84@i28g2000yqa.googlegroups.com> <143ef70b-7e74-426b-a621-a5fd157849be@x21g2000yqa.googlegroups.com> <18zszx6sjlloa$.k5nohxp9k27i$.dlg@40tude.net> <91c174e6-c359-4bf5-b284-d93a725ad09d@c10g2000yqi.googlegroups.com> <0dadd6b6-452d-43e9-b0b9-374b5106b298@t2g2000yqe.googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Date: Sun, 25 Jul 2010 14:26:51 +0000 (UTC) Injection-Info: mx01.eternal-september.org; posting-host="KCXegvZb5vh43D+f3BR6Ew"; logging-data="6820"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX191LET1GBvuTCfAv9GzqKc4xzrcApAFe6I=" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (darwin) Cancel-Lock: sha1:ciC25mEv1As1CdXXgTgssJQSMdo= sha1:dCjNW4lH+ggXEAonTH5+N1ggMxY= Xref: g2news1.google.com comp.lang.ada:12545 Date: 2010-07-25T15:26:51+01:00 List-Id: Ada novice writes: > I tested under the command prompt: > > gcc -c imsl.adb > > imsl.adb:3:16: "System" is not visible > imsl.adb:3:16: non-visible declaration at system.ads:40 > imsl.adb:14:10: missing body for "Internal" > imsl.adb:16:29: "Address" is not visible (more references follow) > imsl.adb:16:29: non-visible declaration at system.ads:67 > imsl.adb:17:40: "Null_Address" is not visible > imsl.adb:17:40: non-visible declaration at system.ads:69 > gnatmake: "imsl.adb" compilation error Then you need to add with System; use System; to Dmitry's code. I think Internal will sort itself out when you've fixed the type-related withs as above. Personally I'd have called Internal imsl_f_eig_gen if only so I'd remember what was what! but YMMV.