Salut,
Je n'arrive pas à compiler un programme utilisant le module Unix... ce qui est assez génant :cry:
Code:Error while linking server.cmo: Reference to undefined global `Unix'
si quelqu'un sait comment s'y prendre ;)
Version imprimable
Salut,
Je n'arrive pas à compiler un programme utilisant le module Unix... ce qui est assez génant :cry:
Code:Error while linking server.cmo: Reference to undefined global `Unix'
si quelqu'un sait comment s'y prendre ;)
j'ai trouvé la ligne pour ocamlc :D
Code:ocamlc -custom unix.cma server.ml -cclib -lunix
Pourquoi -cclib -lunix ? et pourquoi -custom ?
Si c'est ça ce que tu cherches...
http://caml.inria.fr/pub/docs/manual...manual035.html
Ici (MingGW + Windows 98se) ça compile avec:
Code:ocamlopt -o server.exe unix.cmxa server.ml