From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from mail1-relais-roc.national.inria.fr (mail1-relais-roc.national.inria.fr [192.134.164.82]) by yquem.inria.fr (Postfix) with ESMTP id 80D93BBAF for ; Tue, 20 Apr 2010 18:31:49 +0200 (CEST) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AiIBACB0zUtKfVK0mGdsb2JhbACQBYFVih4IFQEBAQEBCAkMBxEirCSBdIYwLohNAQEDBYUKBIMv X-IronPort-AV: E=Sophos;i="4.52,243,1270418400"; d="scan'208";a="57366798" Received: from mail-wy0-f180.google.com ([74.125.82.180]) by mail1-smtp-roc.national.inria.fr with ESMTP; 20 Apr 2010 18:31:49 +0200 Received: by wyf22 with SMTP id 22so3332353wyf.39 for ; Tue, 20 Apr 2010 09:31:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:received:message-id:subject:from:to:content-type; bh=TvMKkGDcW9nIM/H6nxLv/mBjw4UalKLIah70Gfen44s=; b=Bc72derRNL3Sv9i7GGk3L79XrTLT/E8fGa4JX2Oq9lmZsRYDO4S+lCQ4ynJ21rbl2K 1t+sJLd6LnP04Ub/CB17l253yCOpUDyutgFy4p6O2j+CsjrGmpbYpF+g1uOk913eRSP3 B5mYeZIXBDoHpjq1+nKxhWvHz0R822/pWeTCQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=xXtwgQsDI7eEMGyieFJiOXW8oGvkiFRKKXG0zFnyBdzdP6syxz/TQzLfD7CcFTx1Ro 8HD99UeWl+bHDEhi+YhCZN+QC0AZ1O5yIioe3UfJp7QtOEQFmzeu6ODsFATDV7PI4ht9 tNQgo6ISsdPl2wGe6IS3RgOGSh1SBSjPOylvU= MIME-Version: 1.0 Received: by 10.216.89.143 with HTTP; Tue, 20 Apr 2010 09:31:48 -0700 (PDT) In-Reply-To: References: Date: Tue, 20 Apr 2010 20:31:48 +0400 Received: by 10.216.178.148 with SMTP id f20mr1804692wem.43.1271781108803; Tue, 20 Apr 2010 09:31:48 -0700 (PDT) Message-ID: Subject: Re: [Caml-list] Statically linked win32 libcamlrun.lib? From: Dmitry Bely To: caml-list@yquem.inria.fr Content-Type: text/plain; charset=ISO-8859-1 X-Spam: no; 0.00; statically:01 libcamlrun:01 lib:01 libs:01 nodefaultlib:01 lib:01 dllunix:01 makefile:01 ocamlmklib:01 verbose:01 verbose:01 recompiled:01 20,:98 2019:98 wrote:01 On Tue, Apr 20, 2010 at 7:48 PM, Lally Singh wrote: > On Thu, Apr 15, 2010 at 4:16 PM, Dmitry Bely wrote: >> On Thu, Apr 15, 2010 at 11:16 PM, Lally Singh wrote: >>> On Thu, Apr 15, 2010 at 2:59 AM, Dmitry Bely wrote: >>>> On Thu, Apr 15, 2010 at 3:39 AM, Lally Singh wrote: (...) /DEFAULTLIB:"MSVCRT"> LINK : warning LNK4098: defaultlib 'LIBCMTD' conflicts with use of > other libs; use /NODEFAULTLIB:library > LIBCMTD.lib(crt0.obj) : error LNK2019: unresolved external symbol > _main referenced in function ___tmainCRTStartup > .\dllunix.dll : fatal error LNK1120: 1 unresolved externals > > I verified that every object file in that directory was compiled with > /MTd. Is there something else I need to feed into the Makefile to > make ocamlmklib do the right thing? Nevertheless some of your files are compiled with /MD. Use /VERBOSE linker option to find which one. I believe FLEXLINK=flexlink -merge-manifest -link /VERBOSE will do the job. BTW, have you recompiled flexdll.c/flexdll_initer.c files in FlexDLL directory with /MTd? - Dmitry Bely