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 KAA19659; Mon, 27 Sep 2004 10:10:38 +0200 (MET DST) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id KAA20792 for ; Mon, 27 Sep 2004 10:10:37 +0200 (MET DST) Received: from server883.dnslive.net (server883.dnslive.net [66.78.27.6]) by concorde.inria.fr (8.13.0/8.13.0) with ESMTP id i8R8Aa13027812 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=NO) for ; Mon, 27 Sep 2004 10:10:37 +0200 Received: from c-24-7-106-19.client.comcast.net ([24.7.106.19] helo=[127.0.0.1]) by server883.dnslive.net with esmtpa (Exim 4.42) id 1CBqah-0008Ev-QM; Mon, 27 Sep 2004 04:10:36 -0400 Message-ID: <4157CAFC.8010707@overbored.net> Date: Mon, 27 Sep 2004 01:10:36 -0700 From: overbored User-Agent: Mozilla Thunderbird 0.8 (Windows/20040913) X-Accept-Language: en-us, en MIME-Version: 1.0 To: skaller@users.sourceforge.net CC: caml-list Subject: Re: [Caml-list] Can't compile on Cygwin References: <4157B909.3080705@overbored.net> <1096271713.28613.454.camel@pelican.wigram> In-Reply-To: <1096271713.28613.454.camel@pelican.wigram> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - server883.dnslive.net X-AntiAbuse: Original Domain - inria.fr X-AntiAbuse: Originator/Caller UID/GID - [0 0] / [47 12] X-AntiAbuse: Sender Address Domain - overbored.net X-Miltered: at concorde with ID 4157CAFC.001 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Loop: caml-list@inria.fr X-Spam: no; 0.00; caml-list:01 cygwin:01 pertained:01 unison:01 newbie:01 unison:01 prepend:01 2004:99 int':01 float':01 int':01 float':01 clashes:01 stdlib:01 pervasives:01 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk What the...wow, sorry about that! That question actually pertained to unison, not Ocaml. But since this is getting somewhere... :) I'm a newbie to Ocaml so I wasn't entirely sure what to do but the only file in unison that used format_int had the lines: external format_int: string -> int -> string = "format_int" external format_float: string -> float -> string = "format_float" [format_int and format_float are used further down in the file] So should I prepend "caml_" to both the stuff in quotes and the stuff on the left? I did that and it compiled fine but I'm wondering if modifying the stuff in quotes might cause problems later on. Thanks! skaller wrote: > On Mon, 2004-09-27 at 16:54, overbored wrote: > > >>ubase/uprintf.o(.text+0x29a):fake: undefined reference to `_format_int' >>ubase/uprintf.o(.text+0x2fa):fake: undefined reference to `_format_float' > > > Old version. I've had this problem on a Linux box too. > Used to be 'format_int' and 'format_float' were builtin primitives, > that is, C functions. > > All C primitives in Ocaml 3.08 now have a prefix 'caml_' > to avoid namespace clashes: > > stdlib/pervasives.ml:external format_int: string -> int -> string = > "caml_format_int" > ------------------- 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