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 JAA12335 for caml-redistribution; Wed, 7 Oct 1998 09:32:43 +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 SAA10101 for ; Tue, 6 Oct 1998 18:38:12 +0200 (MET DST) Received: from mail2.microsoft.com (mail2.microsoft.com [131.107.3.124]) by nez-perce.inria.fr (8.8.7/8.8.7) with ESMTP id SAA17248 for ; Tue, 6 Oct 1998 18:38:11 +0200 (MET DST) Received: by mail2.microsoft.com with Internet Mail Service (5.5.2232.9) id <4JNQMRYF>; Tue, 6 Oct 1998 09:38:10 -0700 Message-ID: <39ADCF833E74D111A2D700805F1951EF0B2EF51A@RED-MSG-06> From: Don Syme To: "'caml-list@inria.fr'" Subject: RE: -custom under NT Date: Tue, 6 Oct 1998 09:38:03 -0700 X-Mailer: Internet Mail Service (5.5.2232.9) Sender: weis Actually, adding -ccopt WSOCK32.LIB to the second setup seems to have done the trick. Cheers, Don > -----Original Message----- > From: Don Syme > Sent: Tuesday, October 06, 1998 5:27 PM > To: 'caml-list@inria.fr' > Subject: -custom under NT > > > 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 > >