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 PAA11866; Mon, 15 Apr 2002 15:26:52 +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 PAA16361 for ; Mon, 15 Apr 2002 15:26:51 +0200 (MET DST) Received: from laurie.fmf.uni-lj.si (laurie.fmf.uni-lj.si [193.2.67.203]) by nez-perce.inria.fr (8.11.1/8.11.1) with ESMTP id g3FDQov20577 for ; Mon, 15 Apr 2002 15:26:50 +0200 (MET DST) Received: from andrej by laurie.fmf.uni-lj.si with local (Exim 3.35 #1 (Debian)) id 16x6VN-0002iz-00 for ; Mon, 15 Apr 2002 15:26:49 +0200 To: Subject: Re: [Caml-list] Re: Filename.quote - again References: Reply-To: Andrej Bauer From: Andrej Bauer Date: 15 Apr 2002 15:26:49 +0200 In-Reply-To: Vitaly Lugovsky's message of "Mon, 15 Apr 2002 16:49:13 +0400 (MSD)" Message-ID: User-Agent: Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.4 (Common Lisp) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk Vitaly Lugovsky writes: > $ocamlc -custom -linkall -o ocamltktop -I ../support \ > -ccopt -L../support -cclib -lcamltk -ccopt "" \ > -cclib "-ltk8.3 -ltcl8.3 -ldl " -ccopt " -L/usr/X11R6/lib" \ > -cclib " -lSM -lICE -lX11 -lm" \ > toplevellib.cma camltk.cma topmain.cmo > i586-alt-linux-gcc: -lSM -lICE -lX11 -lm: No such file or directory > i586-alt-linux-gcc: -lSM -lICE -lX11 -lm: No such file or directory > Error while building custom runtime system > > 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: camlc -custom -linkall -o ocamltktop -I ../support \ -ccopt -L../support -cclib -lcamltk -ccopt "" \ -cclib "-ltk8.3" -cclib "-ltcl8.3" -cclib "-ldl " -ccopt "-L/usr/X11R6/lib" \ -cclib "-lSM" -cclib "-lICE" -cclib "-lX11" -cclib "-lm" \ toplevellib.cma camltk.cma topmain.cmo Since there could be a library with a space or a single quote in its name, ocaml does the correct thing. 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. Andrej Bauer ------------------- 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