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: a07f3367d7,90504b78c9e015b1 X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!postnews.google.com!g26g2000yqe.googlegroups.com!not-for-mail From: Kevin K Newsgroups: comp.lang.ada Subject: Re: Linking with GNAT on Windows Date: Tue, 24 Nov 2009 17:36:06 -0800 (PST) Organization: http://groups.google.com Message-ID: <49ebd7e7-6f21-4446-84bd-2c68580162de@g26g2000yqe.googlegroups.com> References: <0ac0e003-176f-48d1-b72f-56f81dae922e@1g2000vbm.googlegroups.com> <69epr50o3g3w$.108hd37jl3fjj$.dlg@40tude.net> <4b0c1fd9$0$911$ba4acef3@news.orange.fr> NNTP-Posting-Host: 64.217.18.99 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: posting.google.com 1259112966 18409 127.0.0.1 (25 Nov 2009 01:36:06 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Wed, 25 Nov 2009 01:36:06 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: g26g2000yqe.googlegroups.com; posting-host=64.217.18.99; posting-account=MIlOpQoAAAA_yqYBfgVMozuUm9-qt1C5 User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.1.5) Gecko/20091102 Firefox/3.5.5 (.NET CLR 3.5.30729),gzip(gfe),gzip(gfe) Xref: g2news1.google.com comp.lang.ada:8229 Date: 2009-11-24T17:36:06-08:00 List-Id: What I ended up doing when I needed to link some C code compiled under Visual C++ into an Ada main (due to the code using APIs that weren't supported under the SDK in GNAT environment) was to build a DLL with the appropriate declaration. The downside is that you can't debug it that way. When debugging is necessary, I need to create a driver in C within Visual C++ and debug it there.