caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* [Caml-list] bin_prot
@ 2011-01-11  9:59 Rémi Dewitte
  0 siblings, 0 replies; only message in thread
From: Rémi Dewitte @ 2011-01-11  9:59 UTC (permalink / raw)
  To: caml-list

Hello,

I am struggling to native compile with bin_prot 1.3.0 because it fails
at link stage :

gcc: lib/libbin_prot.a: No such file or directory
File "caml_startup", line 1, characters 0-1:

Byte compilation works fine.

I have investigated a bit :
- At the end of my /usr/local/lib/ocaml/3.11.2/bin_prot/bin_prot.cmxa,
I can see MG@ 1lib/libbin_prot.a *-lbin_prot@@
- bin-prot source files are in a lib/ directory when building bin-prot

I use the :
- ocaml and ocamlbuild 3.11.2
- gcc 4.4.3
- ocamfind 1.2.5

Do you have any idea ?

To test, create a simple ml :
  type a = A | B of int
  with bin_io
My _tags contains :
  <*> : syntax_camlp4o,pkg_bin_prot.syntax
Use a generic myocamlbuild.ml from
http://brion.inria.fr/gallium/index.php/Using_ocamlfind_with_ocamlbuild#Generic_plugin
Then:
  ocamlbuild truc.native

Many thanks,
Rémi


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2011-01-11 10:00 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-01-11  9:59 [Caml-list] bin_prot Rémi Dewitte

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).