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 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,ae16e476a8e84b7b X-Google-Attributes: gid103376,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news2.google.com!news.glorb.com!feeder.erje.net!feed.xsnews.nl!border-1.ams.xsnews.nl!feeder.news-service.com!69.16.177.246.MISMATCH!cyclone03.ams2.highwinds-media.com!news.highwinds-media.com!npeersf01.ams.highwinds-media.com!newsfe24.ams2.POSTED!40385e62!not-for-mail From: Per Sandberg User-Agent: Thunderbird 2.0.0.18 (Windows/20081105) MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: GNAT 2008 GPL pragma import VC++ References: <7d667b48-d51c-41ef-9cb4-cb3b640f8824@d32g2000yqe.googlegroups.com> In-Reply-To: <7d667b48-d51c-41ef-9cb4-cb3b640f8824@d32g2000yqe.googlegroups.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Message-ID: X-Complaints-To: abuse@WWWSpace.NET NNTP-Posting-Date: Tue, 27 Jan 2009 21:11:59 UTC Date: Tue, 27 Jan 2009 22:12:51 +0100 Xref: g2news2.google.com comp.lang.ada:4480 Date: 2009-01-27T22:12:51+01:00 List-Id: I Have been working with VC and GNAT and are using the following setup. Rules for the C/C++ code (VC). * Always build DLL:s * use external C convention * use plain C in the interface. Then my experience is that it almost always works. /Per If you post a sniped with the C code and corresponding Ada code along with the error log, maybe i could pinpoint the problem. JJ wrote: > I have an Ada program that has a pragma import to a Visual C++ > procedure. I have tried several combination's of External_Name (all > uppercase, all lowercase, mixed...) to no avail. I continue to get an > "undefined reference" error during the link. > > Anyone have any experience with this?