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
ocamlopt under win32
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Xavier Leroy <Xavier.Leroy@i...>
Subject: Re: [Caml-list] ocamlopt under win32
> Can anyone tell me what's going wrong here?
> Computer: running win xp/sp2 on amd 64
> ocamlopt: 3.09.0
> ms files: from visual studio 6
> [...]
> libasmrun.lib(compact.obj) : error LNK2001: unresolved external symbol
> __ftol2

The MSVC binary distribution for OCaml 3.09 was built with Visual C++ 2003,
which is binary-incompatible with Visual Studio 6.  There is also
Visual C++ 2005 and the Platform SDK compilers, all from Microsoft,
all subtly incompatible with each other.  Complain with Microsoft if
you feel like it.

If you just want to generate .exe files for Windows, may I suggest you
use the MinGW version of OCaml and avoid the MSVC one?  MinGW, besides
being free, is also more stable than Microsoft's dev. tools.

- Xavier Leroy