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=-0.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: a07f3367d7,9192417d428824a0 X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news3.google.com!feeder.news-service.com!news.astraweb.com!border3.a.newsrouter.astraweb.com!news.netcologne.de!ramfeed1.netcologne.de!newsfeed.arcor.de!newsspool3.arcor-online.net!news.arcor.de.POSTED!not-for-mail From: "Dmitry A. Kazakov" Subject: Re: Problem with QTAda 3.0 and QTCore4.dll on Windows Newsgroups: comp.lang.ada User-Agent: 40tude_Dialog/2.0.15.1 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Reply-To: mailbox@dmitry-kazakov.de Organization: cbb software GmbH References: <1660bebd-45ca-4568-b92a-380614d94ecc@c34g2000yqn.googlegroups.com> <8ec14209-e505-4873-86b4-294149841777@v25g2000yqk.googlegroups.com> Date: Thu, 7 Jan 2010 11:59:05 +0100 Message-ID: <199i04cdgiqlc$.1tlj9wnffh6g9$.dlg@40tude.net> NNTP-Posting-Date: 07 Jan 2010 11:59:02 CET NNTP-Posting-Host: 67b8c2d9.newsspool3.arcor-online.net X-Trace: DXC=k>32Ml 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. > 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. -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de