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 (06:54)
From: overbored <overbored@o...>
Subject: [Caml-list] Can't compile on Cygwin
I followed the instructions in the INSTALL* files (installed ocaml in 
Cygwin) but when I run 'make UISTYLE=text' I get:

ocamlopt -I lwt -I ubase -c /home/unison-2.9.1/
ocamlopt: ---> linktext.cmx
ocamlopt -I lwt -I ubase -c /home/unison-2.9.1/
Linking unison.exe
ocamlopt -verbose -I lwt -I ubase -o unison.exe   unix.cmxa str.cmxa 
-cclib win32rc/unison.res.lib ubase/safelist.cmx ubase/uprintf.cmx 
ubase/util.cmx ubase/rx.cmx ubase/uarg.cmx ubase/prefs.cmx 
ubase/trace.cmx lwt/pqueue.cmx lwt/lwt.cmx lwt/lwt_util.cmx 
lwt/lwt_unix.cmx case.cmx pred.cmx uutil.cmx fileutil.cmx name.cmx 
path.cmx fspath.cmx props.cmx fileinfo.cmx os.cmx lock.cmx uri.cmx 
common.cmx tree.cmx checksum.cmx transfer.cmx xferhint.cmx remote.cmx 
globals.cmx update.cmx files.cmx sortri.cmx recon.cmx transport.cmx 
strings.cmx uicommon.cmx uitext.cmx main.cmx linktext.cmx
+ as -o '/tmp/camlstartup2c9bb5.o' '/tmp/camlstartup814133.s'
+ gcc   -o 'unison.exe' -I'/home/yang/local/lib/ocaml' 
'/tmp/camlstartup2c9bb5.o' '/home/yang/local/lib/ocaml/std_exit.o' 
'linktext.o' 'main.o' 'uitext.o' 'uicommon.o' 'strings.o' 'transport.o' 
'recon.o' 'sortri.o' 'files.o' 'update.o' 'globals.o' 'remote.o' 
'xferhint.o' 'transfer.o' 'checksum.o' 'tree.o' 'common.o' 'uri.o' 
'lock.o' 'os.o' 'fileinfo.o' 'props.o' 'fspath.o' 'path.o' 'name.o' 
'fileutil.o' 'uutil.o' 'pred.o' 'case.o' 'lwt/lwt_unix.o' 
'lwt/lwt_util.o' 'lwt/lwt.o' 'lwt/pqueue.o' 'ubase/trace.o' 
'ubase/prefs.o' 'ubase/uarg.o' 'ubase/rx.o' 'ubase/util.o' 
'ubase/uprintf.o' 'ubase/safelist.o' '/home/yang/local/lib/ocaml/str.a' 
'/home/yang/local/lib/ocaml/stdlib.a'  '-Llwt' '-Lubase' 
'-L/home/yang/local/lib/ocaml' '-lstr' '-lunix' 'win32rc/unison.res.lib' 
'/home/yang/local/lib/ocaml/libasmrun.a' -lm
ubase/uprintf.o(.text+0x29a):fake: undefined reference to `_format_int'
ubase/uprintf.o(.text+0x2fa):fake: undefined reference to `_format_float'
collect2: ld returned 1 exit status
Error during linking
make: *** [unison.exe] Error 2

Google returned nothing when I looked for "undefined reference to 
_format_int". What's going on? Please help, thanks in advance.

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