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-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news3.google.com!proxad.net!feeder1-2.proxad.net!weretis.net!feeder2.news.weretis.net!news.teledata-fn.de!newsfeed.arcor.de!newsspool3.arcor-online.net!news.arcor.de.POSTED!not-for-mail From: "Dmitry A. Kazakov" Subject: Re: Linking with GNAT 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: <0ac0e003-176f-48d1-b72f-56f81dae922e@1g2000vbm.googlegroups.com> <69epr50o3g3w$.108hd37jl3fjj$.dlg@40tude.net> <3ade5d53-eedd-4a0e-bf4f-bbf6a62cf997@c3g2000yqd.googlegroups.com> <1tz8hsohppx0j.1sqxhytef0t79.dlg@40tude.net> <8aed937b-b11f-422a-95d3-5fb5d7645e39@b15g2000yqd.googlegroups.com> Date: Wed, 25 Nov 2009 14:44:26 +0100 Message-ID: NNTP-Posting-Date: 25 Nov 2009 14:44:26 CET NNTP-Posting-Host: 93b5ad78.newsspool1.arcor-online.net X-Trace: DXC=_hFlBbKANWdX X-Complaints-To: usenet-abuse@arcor.de Xref: g2news1.google.com comp.lang.ada:8234 Date: 2009-11-25T14:44:26+01:00 List-Id: On Wed, 25 Nov 2009 04:47:24 -0800 (PST), Maciej Sobczak wrote: > The problem proved to be related to the Visual optimization option > that is used to enable so-called whole-program optimization (Enable > link-time code generation). On command-line this is /GL option. > > This option must be switched off. I hope this observation will help > other programmers. MSDN: ".obj files produced with /GL and precompiled header files should not be used to build a .lib file unless the .lib file will be linked on the same machine that produced the /GL .obj file. Information from the .obj file's precompiled header file will be needed at link time." That explains a lot. Noteworthy is mentioning precompiled headers. That stuff never ever worked in VC... Presumably /GL silently killed the entry point in the .lib file. -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de