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=unavailable autolearn_force=no version=3.4.4 Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!mx02.eternal-september.org!.POSTED!not-for-mail From: "Jeffrey R. Carter" Newsgroups: comp.lang.ada Subject: Re: Problems Linking With a C++ Lib Date: Thu, 5 Nov 2015 20:33:27 -0700 Organization: Also freenews.netfront.net; news.tornevall.net; news.eternal-september.org Message-ID: References: <3ca7150b-f54f-4cd1-82d9-5744cea53aad@googlegroups.com> <721955c3-12fd-4e1d-9489-210816eee152@googlegroups.com> <3a315bb7-63af-43d3-9f37-26db02fa07fa@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Injection-Date: Fri, 6 Nov 2015 03:31:15 -0000 (UTC) Injection-Info: mx02.eternal-september.org; posting-host="caa759af2a9c666aec02942f6fe5abd6"; logging-data="15341"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/bBXkDlLsGDRC4N5R3rOgIOhi95qMk1k8=" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 In-Reply-To: <3a315bb7-63af-43d3-9f37-26db02fa07fa@googlegroups.com> Cancel-Lock: sha1:Id1eBCaUgslkcz4sDOGSzetsyUw= Xref: news.eternal-september.org comp.lang.ada:28230 Date: 2015-11-05T20:33:27-07:00 List-Id: On 11/05/2015 08:07 PM, Aurele wrote: > > There is one (1) C++ file (the wrapper) from which I build a Lib (DirectInput.Lib). The Lib contains external references for C++ procedure. From Ada, I then try to "import" (and use) the said C++ Library procedures. But when building the Ada executable. I get unresolved Lib procedure (Adacore GPS cannot find my C++ procedure in the C++ Library). > > Do you use Adacore GPS? Is there a way I can post a demo project here ? Can you directly link the object files for the extern-C wrapper and the C++ library and get it to work that way? -- Jeff Carter "Unix and C are the ultimate computer viruses." Richard Gabriel 99