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
How to use -cclib correctly?
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2009-07-02 (14:14)
From: Alain Frisch <alain@f...>
Subject: Re: [Caml-list] How to use -cclib correctly?
Andre Tampubolon wrote:
> I'm compiling a simple program (Ocaml 3.11.0, MSVC version):
> ocamlopt -cclib "/MT /link /SUBSYSTEM:WINDOWS" -o birthday.exe 
> <>

Linking against the static C runtime library under Windows is no longer 
supported in OCaml 3.11. You can try doing it but I cannot guarantee it 
will work.

Basically, -cclib options are passed to flexlink. Instead of /MT, you 
can try passing the static C runtime library (libcmt.lib ?), and also 
maybe the -custom-crt option (experimental).

Good luck!

-- Alain