Version française
Home     About     Download     Resources     Contact us    
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: -- (:)
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 birthday.ml <http://birthday.ml/> 

Christoph Bauer



________________________________

	From: caml-list-bounces@yquem.inria.fr
[mailto:caml-list-bounces@yquem.inria.fr] On Behalf Of Andre Tampubolon
	Sent: Thursday, July 02, 2009 3:57 PM
	To: caml-list@yquem.inria.fr
	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
birthday.ml
	
	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?