caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* Strange compilation problem
@ 2009-02-11  9:28 Matthieu Dubuget
  2009-02-11 12:05 ` Matthieu Dubuget
  2009-02-11 14:30 ` Matthieu Dubuget
  0 siblings, 2 replies; 7+ messages in thread
From: Matthieu Dubuget @ 2009-02-11  9:28 UTC (permalink / raw)
  To: caml-list

This command line fails during the linking stage:

> ocamlfind opt -linkpkg -package miniscan test.ml -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 test.ml
-o test.exe

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

Salutations

Matt


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2009-02-11 17:19 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-02-11  9:28 Strange compilation problem Matthieu Dubuget
2009-02-11 12:05 ` Matthieu Dubuget
2009-02-11 14:30 ` Matthieu Dubuget
     [not found]   ` <BB046CA812535C45BD0029AA9D04BA7905ECDCCB@KL-SRV57.lmsintl.com>
2009-02-11 14:51     ` [Caml-list] " Matthieu Dubuget
     [not found]       ` <BB046CA812535C45BD0029AA9D04BA7905ECDCD6@KL-SRV57.lmsintl.com>
2009-02-11 15:15         ` [Caml-list] Re: Strange compilation problem (flexlink trying to deal with windows and cygwin shell limitations) Matthieu Dubuget
2009-02-11 16:30     ` [Caml-list] Re: Strange compilation problem -> solved Matthieu Dubuget
2009-02-11 17:19       ` Alain Frisch

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).