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 mail2-relais-roc.national.inria.fr (mail2-relais-roc.national.inria.fr [192.134.164.83]) by yquem.inria.fr (Postfix) with ESMTP id CB5DBBC57 for ; Thu, 15 Apr 2010 22:16:56 +0200 (CEST) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Av8BAJIRx0tKfVI0kmdsb2JhbACPdYFWihoIFQEBAQEJCwoHDySuOYFxhiAuiE0BAQMFhQkEgyQ X-IronPort-AV: E=Sophos;i="4.52,214,1270418400"; d="scan'208";a="48975260" Received: from mail-ww0-f52.google.com ([74.125.82.52]) by mail2-smtp-roc.national.inria.fr with ESMTP; 15 Apr 2010 22:16:50 +0200 Received: by wwb39 with SMTP id 39so1091947wwb.39 for ; Thu, 15 Apr 2010 13:16:50 -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 :content-transfer-encoding; bh=UufmCdDZvE+A0/3OyjDekG344zxOfgJw0s6tyv2/NDU=; b=UwIn7z7VV161ILIaBZuUcN4cAK2z/DQoiX0Qru+sXNLEuK4SC3zfloASKadFZFUQx0 iPOboU9Ld7rwJwG7pzCWIHZEBPy4lL+2wpPfwW3KV2UnHkcp4LCKUoezq6KUnYOEtjM1 TQHQbF6bFzh/GkKCa/qXUq9qVeR9izHYdjYXw= 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:content-transfer-encoding; b=hbWHfpzhj1aE0CqvNP4UiumS7DmwGLI1GpwaBKrk2zGa/yxmP3c6aFt9H3pPC7BULw f1+xfnhNelCMOje4GUuRK5zdxG8srZgg6hIu+v5w9QhmrF0IQGmH6KcBFjVKOklcm0FD nZoLISqFU3VyRo62EwoVEPRAYDEckxm/VTlxk= MIME-Version: 1.0 Received: by 10.216.89.143 with HTTP; Thu, 15 Apr 2010 13:16:49 -0700 (PDT) In-Reply-To: References: Date: Fri, 16 Apr 2010 00:16:49 +0400 Received: by 10.216.176.143 with SMTP id b15mr529262wem.155.1271362610042; Thu, 15 Apr 2010 13:16:50 -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 Content-Transfer-Encoding: quoted-printable X-Spam: no; 0.00; statically:01 libcamlrun:01 lib:01 statically:01 libcamlrun:01 lib:01 nodefaultlib:01 runtime:01 makefile:01 makefile:01 ocamlrun:01 ocamlc:01 -nostdlib:01 stdlib:01 -warn-error:01 On Thu, Apr 15, 2010 at 11:16 PM, Lally Singh wrote= : > On Thu, Apr 15, 2010 at 2:59 AM, Dmitry Bely wrot= e: >> On Thu, Apr 15, 2010 at 3:39 AM, Lally Singh wro= te: >> >>> =A0Is it possible to statically link libcamlrun.lib, so it'll work with >>> libcmtd.lib instead of msvcrt.dll? =A0I've tried: >>> >>> FLEXLINK=3Dflexlink -merge-manifest -link /nodefaultlib:msvcrt.lib -lin= k >>> libcmtd.lib >> >> Please don't use "brute force" methods. If you need statically linked >> MSVC runtime, just replace /MD with /MT (or /MTd) in config/Makefile. > > Thanks, I've tried this instead, and I can't get through make -f > Makefile.nt bootstrap without: > ../../boot/ocamlrun ../../ocamlc -nostdlib -I ../../stdlib -w s -c > -warn-error A -g -I ../win32unix bigarray.mli > File "bigarray.mli", line 384, characters 4-19: > Error: Unbound type constructor Unix.file_descr > make[2]: *** [bigarray.cmi] Error 2 > > I guess using the flexlink hack just moved whatever underlying problem > I'm having to a later stage. And you have to recompile flexdll_msvc.obj/flexdll_initer_msvc.obj with /MT option. - Dmitry Bely