From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on yquem.inria.fr X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=AWL autolearn=disabled version=3.1.3 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 9AEBFBC37 for ; Thu, 2 Jul 2009 16:14:06 +0200 (CEST) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AkQKAIhdTErB/Bd4Wmdsb2JhbACZAwEWCgkIEgW2SIQRBQ X-IronPort-AV: E=Sophos;i="4.42,334,1243807200"; d="scan'208";a="32362196" Received: from smtp-msa-out01.orange.fr ([193.252.23.120]) by mail1-smtp-roc.national.inria.fr with ESMTP; 02 Jul 2009 16:14:06 +0200 Received: from me-wanadoo.net (localhost [127.0.0.1]) by mwinf2352.orange.fr (SMTP Server) with ESMTP id E7B9B700009E; Thu, 2 Jul 2009 16:14:05 +0200 (CEST) Received: from [192.168.1.50] (APuteaux-154-1-89-29.w83-204.abo.wanadoo.fr [83.204.164.29]) by mwinf2352.orange.fr (SMTP Server) with ESMTP id B58867000086; Thu, 2 Jul 2009 16:14:03 +0200 (CEST) X-ME-UUID: 20090702141405743.B58867000086@mwinf2352.orange.fr X-ME-User-Auth: lexifi Message-ID: <4A4CC0A9.6090303@frisch.fr> Date: Thu, 02 Jul 2009 16:14:01 +0200 From: Alain Frisch User-Agent: Thunderbird 2.0.0.22 (Windows/20090605) MIME-Version: 1.0 To: Andre Tampubolon Cc: caml-list@yquem.inria.fr Subject: Re: [Caml-list] How to use -cclib correctly? References: <1c0c59270907020657ka767cdcy5f5db1a413838f96@mail.gmail.com> In-Reply-To: <1c0c59270907020657ka767cdcy5f5db1a413838f96@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Spam: no; 0.00; frisch:01 frisch:01 -cclib:01 ocaml:01 ocamlopt:01 -cclib:01 runtime:01 ocaml:01 runtime:01 libcmt:01 lib:01 wrote:01 experimental:01 msvc:01 caml-list:01 Andre Tampubolon wrote: > I'm compiling a simple program (Ocaml 3.11.0, MSVC version): > ocamlopt -cclib "/MT /link /SUBSYSTEM:WINDOWS" -o birthday.exe > birthday.ml Linking against the static C runtime library under Windows is no longer supported in OCaml 3.11. You can try doing it but I cannot guarantee it will work. Basically, -cclib options are passed to flexlink. Instead of /MT, you can try passing the static C runtime library (libcmt.lib ?), and also maybe the -custom-crt option (experimental). Good luck! -- Alain