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
Strange compilation problem
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2009-02-11 (09:28)
From: Matthieu Dubuget <matthieu.dubuget@g...>
Subject: Strange compilation problem
This command line fails during the linking stage:

> ocamlfind opt -linkpkg -package miniscan -o test.exe
> ** Fatal error: Cannot find file "libmingw32"
> File "caml_startup", line 1, characters 0-1:
> Error: Error during linking

Since this seems to be a problem with my "miniscan" findlib package,
I gather some information and by-pass it

> $ ocamlfind query miniscan
> C:/cygwin/home/matt/ocamlmgw/lib/site-lib/miniscan
> $ cat C:/cygwin/home/matt/ocamlmgw/lib/site-lib/miniscan/META
> description = "Binding Miniscan"
> archive(byte) = "miniscan.cma"
> archive(native) = "miniscan.cmxa"
> requires = "mtsvrac,ojson,log,dsn153,okenveloppe,traite"

and this command line works, and produces a working test.exe file:

> ocamlfind opt -linkpkg -package
mtsvrac,ojson,log,dsn153,okenveloppe,traite -I
c:/cygwin/home/matt/ocamlmgw/lib/site-lib/miniscan miniscan.cmxa
-o test.exe

Any idea what the problem could be? Or what I should check next?