Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

Browse thread
[Caml-list] Can't compile on Cygwin
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2004-09-27 (08:10)
From: overbored <overbored@o...>
Subject: Re: [Caml-list] Can't compile on Cygwin
What, 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.


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/ format_int: string -> int -> string =
> "caml_format_int"

To unsubscribe, mail Archives:
Bug reports: FAQ:
Beginner's list: