From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from weis@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id JAA30496 for caml-redistribution; Wed, 7 Oct 1998 09:31:29 +0200 (MET DST) Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id SAA19891 for ; Tue, 6 Oct 1998 18:27:11 +0200 (MET DST) Received: from mail3.microsoft.com (mail3.microsoft.com [131.107.3.123]) by nez-perce.inria.fr (8.8.7/8.8.7) with ESMTP id SAA17024 for ; Tue, 6 Oct 1998 18:27:09 +0200 (MET DST) Received: by mail3.microsoft.com with Internet Mail Service (5.5.2232.9) id <41DAHGKY>; Tue, 6 Oct 1998 09:27:08 -0700 Message-ID: <39ADCF833E74D111A2D700805F1951EF0B2EF519@RED-MSG-06> From: Don Syme To: "'caml-list@inria.fr'" Subject: -custom under NT Date: Tue, 6 Oct 1998 09:27:05 -0700 X-Mailer: Internet Mail Service (5.5.2232.9) Sender: weis I'm having problems using -custom under Windows NT. With test.ml containing just let x = 1;; ocamlc -c test.ml ocamlc -verbose -o test -custom unix.cma -cclib -lunix test.cmo gives + cl /nologo /MT /Fetest.exe -Ic:/ocaml/lib C:\TEMP\camlprim0.c -lunix c:/ocaml/lib\libcamlrun.lib Command line warning D4002 : ignoring unknown option '-lunix' camlprim0.c camlprim0.obj : error LNK2001: unresolved external symbol _win_stdhandle camlprim0.obj : error LNK2001: unresolved external symbol _win_startup camlprim0.obj : error LNK2001: unresolved external symbol _win_cleanup etc. Changing -cclib -lunix to -ccopt gives a different set of errors: ocamlc -verbose -g -o test -custom unix.cma -ccopt c:/ocaml/lib/libunix.lib test.cmo + cl /nologo /MT /Fetest.exe -Ic:/ocaml/lib c:/ocaml/lib/libunix.lib C:\TEMP\camlprim0.c c:/ocaml/lib\libcamlrun.lib camlprim0.c libunix.lib(startup.obj) : error LNK2001: unresolved external symbol _WSAStartup@8 libunix.lib(startup.obj) : error LNK2001: unresolved external symbol _WSACleanup@0 libunix.lib(socket.obj) : error LNK2001: unresolved external symbol _WSAGetLastError@0 etc. What am I doing wrong, or what should I try next? (P.S. The notes for -custom under Windows could mention how to set up the paths for VC++ so ocaml can find the command line VC++ compiler. ) Thanks! Don Syme