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:04)
From: Christoph Bauer <christoph.bauer@l...>
Subject: RE: [Caml-list] How to use -cclib correctly?
I think the error message is from flexlink. So try 
ocamlopt -cclib -link -cclib "/MT /link /SUBSYSTEM:WINDOWS" -o
birthday.exe <> 

Christoph Bauer


[] On Behalf Of Andre Tampubolon
	Sent: Thursday, July 02, 2009 3:57 PM
	Subject: [Caml-list] How to use -cclib correctly?
	I'm compiling a simple program (Ocaml 3.11.0, MSVC version):
	ocamlopt -cclib "/MT /link /SUBSYSTEM:WINDOWS" -o birthday.exe
	The output is:
	** Fatal error: Cannot find file "/MT"
	File "caml_startup", line 1, characters 0-1:
	Error: Error during linking
	How to use the -cclib option correctly?