comp.lang.ada
 help / color / mirror / Atom feed
From: Aurele <aurele.vitali@gmail.com>
Subject: Re: Problems Linking With a C++ Lib
Date: Thu, 5 Nov 2015 20:28:57 -0800 (PST)
Date: 2015-11-05T20:28:57-08:00	[thread overview]
Message-ID: <d4bd4c9e-f87f-4f5d-a5dd-dd286c5b13aa@googlegroups.com> (raw)
In-Reply-To: <n1h6u1$evd$1@dont-email.me>

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:
> > 
> > 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

Good call Jeff, the I still got unresolved external symbol when calling from an other C++ main (instead of an Ada main I mean).  Need to find the problem in the Lib.   

THANKS !


  parent reply	other threads:[~2015-11-06  4:28 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-11-05 23:57 Problems Linking With a C++ Lib Aurele
2015-11-06  0:05 ` Jeffrey R. Carter
2015-11-06  0:11   ` Aurele
2015-11-06  0:56     ` Jeffrey R. Carter
2015-11-06  1:27       ` Aurele
2015-11-06  1:59         ` Jeffrey R. Carter
2015-11-06  3:07           ` Aurele
2015-11-06  3:33             ` Jeffrey R. Carter
2015-11-06  3:57               ` Aurele
2015-11-06  4:28               ` Aurele [this message]
2015-11-07  3:10                 ` Aurele
2015-11-09 18:35 ` jsquirek
2015-11-09 20:52 ` Aurele
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox