From: Don Syme <dsyme@microsoft.com>
To: "'caml-list@inria.fr'" <caml-list@inria.fr>
Subject: -custom under NT
Date: Tue, 6 Oct 1998 09:27:05 -0700 [thread overview]
Message-ID: <39ADCF833E74D111A2D700805F1951EF0B2EF519@RED-MSG-06> (raw)
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
next reply other threads:[~1998-10-07 7:31 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
1998-10-06 16:27 Don Syme [this message]
1998-10-06 16:38 Don Syme
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=39ADCF833E74D111A2D700805F1951EF0B2EF519@RED-MSG-06 \
--to=dsyme@microsoft.com \
--cc=caml-list@inria.fr \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox