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.9 required=5.0 tests=BAYES_00,FORGED_GMAIL_RCVD, FREEMAIL_FROM autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,87b8cfa03eafd839 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!postnews.google.com!g10g2000cwb.googlegroups.com!not-for-mail From: "cybersaga" Newsgroups: comp.lang.ada Subject: Re: DLL Troubles Date: 19 Mar 2006 17:10:12 -0800 Organization: http://groups.google.com Message-ID: <1142817012.303350.227220@g10g2000cwb.googlegroups.com> References: <1142793974.914652.154480@t31g2000cwb.googlegroups.com> <1142796431.668418.58250@g10g2000cwb.googlegroups.com> <1142796624.038913.199600@u72g2000cwu.googlegroups.com> <441DBB5D.7070401@obry.net> <1142799827.205623.17800@e56g2000cwe.googlegroups.com> <1142803154.781631.265030@e56g2000cwe.googlegroups.com> NNTP-Posting-Host: 69.49.45.202 Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-Trace: posting.google.com 1142817018 30352 127.0.0.1 (20 Mar 2006 01:10:18 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Mon, 20 Mar 2006 01:10:18 +0000 (UTC) In-Reply-To: <1142803154.781631.265030@e56g2000cwe.googlegroups.com> User-Agent: G2/0.2 X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.1) Gecko/20060111 Firefox/1.5.0.1,gzip(gfe),gzip(gfe) Complaints-To: groups-abuse@google.com Injection-Info: g10g2000cwb.googlegroups.com; posting-host=69.49.45.202; posting-account=2ELL3w0AAABA6Hu9BtxJuf-wgpQRCSl8 Xref: g2news1.google.com comp.lang.ada:3472 Date: 2006-03-19T17:10:12-08:00 List-Id: I finally got it working. Turns out I did have to compile it differently: gcc -c mydll.adb gnatbind -n mydll gcc -c b~mydll.adb gcc -shared -o .\dll\mydll.dll mydll.o b~mydll.o -LC:/GNAT/lib/gcc/pentium-mingw32msv/3.4.5/adalib/ -lgnat-GPL2005 If anyone can figure out how to do the same thing using the project file, let me know.