From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Delivered-To: caml-list@yquem.inria.fr Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by yquem.inria.fr (Postfix) with ESMTP id 61DB7BC75 for ; Mon, 21 Feb 2005 13:16:24 +0100 (CET) Received: from pauillac.inria.fr (pauillac.inria.fr [128.93.11.35]) by nez-perce.inria.fr (8.13.0/8.13.0) with ESMTP id j1LCGOni008823 for ; Mon, 21 Feb 2005 13:16:24 +0100 Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id NAA02929 for ; Mon, 21 Feb 2005 13:16:23 +0100 (MET) Received: from yquem.inria.fr (yquem.inria.fr [128.93.8.37]) by nez-perce.inria.fr (8.13.0/8.13.0) with ESMTP id j1LCGNFh008820; Mon, 21 Feb 2005 13:16:23 +0100 Received: by yquem.inria.fr (Postfix, from userid 18180) id 4057EBC75; Mon, 21 Feb 2005 13:16:23 +0100 (CET) Date: Mon, 21 Feb 2005 13:16:23 +0100 From: Xavier Leroy To: Julian Cc: caml-list@inria.fr Subject: Re: [Caml-list] Linking with ocamlopt fails. Message-ID: <20050221121623.GA27020@yquem.inria.fr> References: <4218E614.6010102@free.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4218E614.6010102@free.fr> User-Agent: Mutt/1.3.28i X-Miltered: at nez-perce with ID 4219D118.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Miltered: at nez-perce with ID 4219D117.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Spam: no; 0.00; caml-list:01 ocamlopt:01 binary:01 ocaml:01 mingw:01 ocamlopt:01 lablgl:01 lablgl:01 cmxa:01 cmxa:01 bigarray:01 cmx:01 cmx:01 gcc:01 mingw:01 X-Spam-Checker-Version: SpamAssassin 3.0.2 (2004-11-16) on yquem.inria.fr X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=disabled version=3.0.2 X-Spam-Level: > I'm using the binary distribution of OCaml based on MinGW. > I noticed that when I try to link more than 11 files together with > ocamlopt, it fails : > ocamlopt -o helloworld.exe -I +sdl -I +lablGL lablgl.cmxa sdl.cmxa > sdlttf.cmxa bigarray.cmxa sdlloader.cmxa sdlmixer.cmxa global.cmx > events.cmx scene.cmx camera.cmx tex.cmx interface.cmx > gcc: @C:/Temp\camlrespee624e: Invalid argument > Error during linking > Is there any reason ? Yes, you are probably using the standalone distribution of MinGW and/or the companion MSYS tools. These have no support for long command lines via @responsefiles. To avoid this problem, use the version of MinGW that is part of the Cygwin distribution. This is briefly mentioned in the README.win32 file in the OCaml distribution. - Xavier Leroy