From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from majordomo@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id PAA11545; Mon, 15 Apr 2002 15:43:07 +0200 (MET DST) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f 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 PAA17495 for ; Mon, 15 Apr 2002 15:43:06 +0200 (MET DST) Received: from mg.ihep.su (mg.ihep.su [194.190.161.38]) by nez-perce.inria.fr (8.11.1/8.11.1) with ESMTP id g3FDh5v20957 for ; Mon, 15 Apr 2002 15:43:05 +0200 (MET DST) Received: by mg.ihep.su (Postfix, from userid 65436) id 244C0B5064; Mon, 15 Apr 2002 17:43:04 +0400 (MSD) Received: from ontil.ihep.su (ontil.ihep.su [194.190.161.63]) by mg.ihep.su (Postfix) with ESMTP id 40091B508E; Mon, 15 Apr 2002 17:43:03 +0400 (MSD) Received: from localhost (vsl@localhost) by ontil.ihep.su (8.11.6/8.11.6) with ESMTP id g3FDlli25971; Mon, 15 Apr 2002 17:47:47 +0400 Date: Mon, 15 Apr 2002 17:47:47 +0400 (MSD) From: Vitaly Lugovsky To: Andrej Bauer Cc: Subject: Re: [Caml-list] Re: Filename.quote - again In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk On 15 Apr 2002, Andrej Bauer wrote: > > With '-verbose' option I got something like > > gcc ... ' -L/usr/X11R6/lib ' ' -lSM -lICE -lX11 -lm' ... > > ^^^^^^^^^^^^^^^^^^^^^^^^ > > gcc treats this as a file name, not as an options, thanx > > to the single quotes. > > Instead of using a single -cclib to pass three C libraries at the same > time (which you noted doesn't work), you should use -cclib three > times, once for each library: No way. I have the same results with it... ocamlc tries to pass all libraries in the one QUOTED string. And, there is no need in that quotation - so, it'll be better to remove it. > Since there could be a library with a space or a single quote in its > name, ocaml does the correct thing. It'll be better to quote a space '\ ' just like \'... > How is it supposed to know that > your library is not called "SM -lICE -lX11 -lm"? I admit only a crazy > person would create such a library, but that is irrelevant. I think, it'll be better to forbid this. We don't know how external linkers will treat this options - as file name, as option, as a space separated options... ------------------- To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/ Beginner's list: http://groups.yahoo.com/group/ocaml_beginners