From: Vadim Godunko <vgodunko@gmail.com>
Subject: Re: Problem with QTAda 3.0 and QTCore4.dll on Windows
Date: Thu, 7 Jan 2010 14:11:37 -0800 (PST)
Date: 2010-01-07T14:11:37-08:00 [thread overview]
Message-ID: <ec2d7604-ed68-441e-96f5-5fc946184ad5@j5g2000yqm.googlegroups.com> (raw)
In-Reply-To: 199i04cdgiqlc$.1tlj9wnffh6g9$.dlg@40tude.net
On Jan 7, 1:59 pm, "Dmitry A. Kazakov" <mail...@dmitry-kazakov.de>
wrote:
> On Thu, 07 Jan 2010 08:19:17 +0100, Per Sandberg wrote:
> > The core reason is that the Binary Interface specific the name-mangling
> > in C++ is different between gcc and MSVC, on top of that the
> > documentation in the MSVC case is "sparse".
>
> That should not be a problem in case of C. One should only make a choice
> between stdcall and cdecl convention when you make a call from Ada. I guess
> Qt has plain C interface? Then what happens inside of it is no matter.
>
Qt is pure C++ library, there is no C interface provided by it.
> > Then you will end up with two runtimes for C++, and to run MSVC and
> > GCC(g++) in parallel requires a very consistent way of doing things
> > since among all other things ther will be two different heaps...
>
> Actually I used such combinations in other cases (not Qt), e.g. GNAT Ada
> run-time + MSVC (sometimes with MFT!) + some bunch of third party libraries
> of unknown language and origin.
>
> The key issue is to set proper compiler/linker options for the MSVC
> project. Which is FAR from being trivial. Another huge issue is deployment,
> with MS manifests (due to broken implementations of) you simply cannot tell
> if linked code will or will not work on another computer.
>
QtAda's code includes both C/C++ and Ada code which refers to each
others in both directions, so it is unpractical to separate it into
two independent shared libraries to build C/C++ part using MSVC and
Ada part using GNAT; but mixing of MSVC and GNAT object files in the
same shared library is not supported now.
next prev parent reply other threads:[~2010-01-07 22:11 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-01-05 21:04 Problem with QTAda 3.0 and QTCore4.dll on Windows Alexis
2010-01-06 12:17 ` Vadim Godunko
2010-01-06 14:15 ` Hibou57 (Yannick Duchêne)
2010-01-06 14:46 ` Dmitry A. Kazakov
2010-01-06 22:23 ` Alexis
2010-01-07 7:19 ` Per Sandberg
2010-01-07 10:59 ` Dmitry A. Kazakov
2010-01-07 21:39 ` Alexis
2010-01-07 22:11 ` Vadim Godunko [this message]
2010-01-07 22:32 ` Hibou57 (Yannick Duchêne)
2010-01-08 7:10 ` Vadim Godunko
2010-01-08 9:41 ` Dmitry A. Kazakov
2010-01-07 23:02 ` Dmitry A. Kazakov
2010-01-08 7:28 ` Vadim Godunko
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox