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,FREEMAIL_FROM autolearn=unavailable autolearn_force=no version=3.4.4 X-Received: by 10.50.43.226 with SMTP id z2mr5637782igl.4.1446784138051; Thu, 05 Nov 2015 20:28:58 -0800 (PST) X-Received: by 10.182.247.4 with SMTP id ya4mr166815obc.14.1446784138023; Thu, 05 Nov 2015 20:28:58 -0800 (PST) Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!mx02.eternal-september.org!feeder.eternal-september.org!news.glorb.com!i2no54136igv.0!news-out.google.com!fs1ni215igb.0!nntp.google.com!i2no54127igv.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Thu, 5 Nov 2015 20:28:57 -0800 (PST) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=70.26.108.144; posting-account=gOYTTAoAAADrNEg_oe5Etelo-0qd7UeW NNTP-Posting-Host: 70.26.108.144 References: <3ca7150b-f54f-4cd1-82d9-5744cea53aad@googlegroups.com> <721955c3-12fd-4e1d-9489-210816eee152@googlegroups.com> <3a315bb7-63af-43d3-9f37-26db02fa07fa@googlegroups.com> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: Subject: Re: Problems Linking With a C++ Lib From: Aurele Injection-Date: Fri, 06 Nov 2015 04:28:58 +0000 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Xref: news.eternal-september.org comp.lang.ada:28232 Date: 2015-11-05T20:28:57-08:00 List-Id: On Thursday, November 5, 2015 at 10:33:31 PM UTC-5, Jeffrey R. Carter wrote= : > On 11/05/2015 08:07 PM, Aurele wrote: > >=20 > > There is one (1) C++ file (the wrapper) from which I build a Lib (Direc= tInput.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).=20 > >=20 > > Do you use Adacore GPS? Is there a way I can post a demo project here ?= =20 >=20 > Can you directly link the object files for the extern-C wrapper and the C= ++ > library and get it to work that way? >=20 > --=20 > Jeff Carter > "Unix and C are the ultimate computer viruses." > Richard Gabriel > 99 Good call Jeff, the I still got unresolved external symbol when calling fro= m an other C++ main (instead of an Ada main I mean). Need to find the prob= lem in the Lib. =20 THANKS !