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.9 required=5.0 tests=AWL,HTML_MESSAGE,SPF_SOFTFAIL 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 490FBBC54 for ; Thu, 2 Jul 2009 16:04:50 +0200 (CEST) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AhcBAC9bTEpVnozDkWdsb2JhbACBUVUuljkBAQEBCQsKBxMFtkOEEQU X-IronPort-AV: E=Sophos;i="4.42,334,1243807200"; d="scan'208,217";a="32361463" Received: from mail193.messagelabs.com ([85.158.140.195]) by mail1-smtp-roc.national.inria.fr with SMTP; 02 Jul 2009 16:04:49 +0200 X-VirusChecked: Checked X-Env-Sender: christoph.bauer@lmsintl.com X-Msg-Ref: server-10.tower-193.messagelabs.com!1246543488!10191964!1 X-StarScan-Version: 6.0.0; banners=-,-,- X-Originating-IP: [213.68.136.230] Received: (qmail 2393 invoked from network); 2 Jul 2009 14:04:48 -0000 Received: from kaiserslautern1.lms-gmbh.de (HELO mail-in.lmsintl.com) (213.68.136.230) by server-10.tower-193.messagelabs.com with SMTP; 2 Jul 2009 14:04:48 -0000 Received: from KL-SRV57.lmsintl.com (unknown [10.2.100.57]) by mail-in.lmsintl.com (Postfix) with ESMTP id 6110643C005; Thu, 2 Jul 2009 18:22:39 +0200 (CEST) X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C9FB1E.0F2AD56B" Subject: RE: [Caml-list] How to use -cclib correctly? Date: Thu, 2 Jul 2009 16:08:09 +0200 Message-ID: In-Reply-To: <1c0c59270907020657ka767cdcy5f5db1a413838f96@mail.gmail.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: [Caml-list] How to use -cclib correctly? Thread-Index: Acn7HQjG3iy8onJaSrqmn/k/NeClmAAAUmDQ References: <1c0c59270907020657ka767cdcy5f5db1a413838f96@mail.gmail.com> From: "Christoph Bauer" To: "Andre Tampubolon" , X-Spam: no; 0.00; -cclib:01 ocamlopt:01 -cclib:01 ocaml:01 ocamlopt:01 ocaml:01 2009:98 2009:98 tahoma:98 msvc:01 msvc:01 caml-list:01 caml-list:01 caml:02 caml:02 This is a multi-part message in MIME format. ------_=_NextPart_001_01C9FB1E.0F2AD56B Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable I think the error message is from flexlink. So try=20 ocamlopt -cclib -link -cclib "/MT /link /SUBSYSTEM:WINDOWS" -o birthday.exe birthday.ml =20 Christoph Bauer ________________________________ From: caml-list-bounces@yquem.inria.fr [mailto:caml-list-bounces@yquem.inria.fr] On Behalf Of Andre Tampubolon Sent: Thursday, July 02, 2009 3:57 PM To: caml-list@yquem.inria.fr Subject: [Caml-list] How to use -cclib correctly? =09 =09 I'm compiling a simple program (Ocaml 3.11.0, MSVC version): ocamlopt -cclib "/MT /link /SUBSYSTEM:WINDOWS" -o birthday.exe birthday.ml =09 The output is: ** Fatal error: Cannot find file "/MT" File "caml_startup", line 1, characters 0-1: Error: Error during linking =09 How to use the -cclib option correctly? =09 ------_=_NextPart_001_01C9FB1E.0F2AD56B Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable
I think the error message is from flexlink. So try =
ocamlopt -cclib -link = -cclib=20 "/MT /link /SUBSYSTEM:WINDOWS" -o birthday.exe birthday.ml
Christoph=20 Bauer


From: = caml-list-bounces@yquem.inria.fr=20 [mailto:caml-list-bounces@yquem.inria.fr] On Behalf Of Andre=20 Tampubolon
Sent: Thursday, July 02, 2009 3:57 = PM
To:=20 caml-list@yquem.inria.fr
Subject: [Caml-list] How to use = -cclib=20 correctly?

I'm compiling a simple program (Ocaml 3.11.0, MSVC=20 version):
ocamlopt -cclib "/MT /link /SUBSYSTEM:WINDOWS" -o = birthday.exe birthday.ml

The output = is:
** Fatal=20 error: Cannot find file "/MT"
File "caml_startup", line 1, = characters=20 0-1:
Error: Error during linking

How to use the -cclib = option=20 correctly?
------_=_NextPart_001_01C9FB1E.0F2AD56B--