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=-0.3 required=5.0 tests=BAYES_00,FREEMAIL_FROM, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,39ade949adb6bf4 X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail From: Felix Krause Newsgroups: comp.lang.ada Subject: Re: StdCall and pragma Import_Function Date: Fri, 19 Aug 2011 11:37:55 -0700 (PDT) Organization: http://groups.google.com Message-ID: <589b1038-c1e0-4bd4-9428-65861acb58a2@glegroupsg2000goo.googlegroups.com> References: <332032a4-0acf-459d-a743-e90e823ca5af@glegroupsg2000goo.googlegroups.com> Reply-To: comp.lang.ada@googlegroups.com NNTP-Posting-Host: 92.203.29.36 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: posting.google.com 1313779075 13319 127.0.0.1 (19 Aug 2011 18:37:55 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Fri, 19 Aug 2011 18:37:55 +0000 (UTC) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=92.203.29.36; posting-account=sXebhAoAAACnuNgFPhYnsVyKMeBm3XmF User-Agent: G2/1.0 X-Google-Web-Client: true Xref: g2news1.google.com comp.lang.ada:20686 Date: 2011-08-19T11:37:55-07:00 List-Id: Thanks for pointing this out, I didn't know about C_Pass_By_Copy. I did rem= ove the Import_Function pragmas in my code and replaced them by adding the = C_Pass_By_Copy convention to the Bit_Vector type. However, GNAT still wants= to link against "cFunc@4", so while this is good advice, it doesn't solve = the problem.