From: Sachin Shah <zakaluka@gmail.com>
To: caml-list@yquem.inria.fr
Subject: Compiling OCaml w/MS VC++ Toolkit 2003
Date: Fri, 26 Nov 2004 22:14:36 -0800 [thread overview]
Message-ID: <388f6fcd041126221466abac1d@mail.gmail.com> (raw)
Hello all,
Just joined this list, and it's looking pretty good! In order to use
the latest OCaml, I'm trying to compile it from source using:
(1) MS Visual C++ Toolkit 2003
(2) MS Visual Studio .NET SDK
(3) MS Platform SDK for Windows XP SP2
After a lot of work, I have all the files I need to do the install.
However, I am stuck on one part and don't know what to do. When
running the command 'make -f Makefile.nt opt', make descends into the
stdlib source directory. There, using ocamlopt, it constructs the file
'stdlib.cmxa'. Directly after that, I get an error message that
prevents the computer from creating the 'stdlib.lib' file. Here is
that message:
================================ (extra lines added for clarity)
../boot/ocamlrun ../ocamlopt -a -o stdlib.cmxa pervasives.cmx
array.cmx list.cmx char.cmx string.cmx sys.cmx hashtbl.cmx sort.cmx
marshal.cmx obj.cmx int32.cmxint64.cmx nativeint.cmx lexing.cmx
parsing.cmx set.cmx map.cmx stack.cmx queue.cmx stream.cmx buffer.cmx
printf.cmx format.cmx scanf.cmx arg.cmx printexc.cmx gc.cmx digest.cmx
random.cmx callback.cmx camlinternalOO.cmx oo.cmx genlex.cmx weak.cmx
lazy.cmx filename.cmx complex.cmx arrayLabels.cmx listLabels.cmx
stringLabels.cmx moreLabels.cmx stdLabels.cmx
LINK : fatal error LNK1104: cannot open file
'@c:\DOCUME~1\sachin\LOCALS~1\Temp\camlrespfba3be'
../boot/ocamlrun ../ocamlopt -warn-error A -nostdlib `./Compflags
std_exit.cmx` -c std_exit.ml
================================
As you can see, it ignores the error and continues with creating the
'std_exit.cmx' file. Searching through the archives here produced
nothing. Searching google came up with a similar error in a project
called MetaPRL. However, the folks there could present no solution.
Hopefully, someone here can :). From what they were saying, ocamlopt
supposedly calls the library creation program (which, in my case, is
actually the command 'link /lib'). However, it seems that either (1)
ocamlopt is never creating the file, causing the linker to fail, (2)
ocamlopt deletes the file before the linker can get to it (however, I
was monitoring the directory and did not see a file being created), or
(3) there is simply something wrong with ocamlopt and MS VC++ Toolkit
2003 interaction.
My background is mostly in Linux C/C++ development and Java
development. I am familiar with makefiles, but not with the MSVC++.
Thanks for your help,
Sachin.
next reply other threads:[~2004-11-27 6:14 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-11-27 6:14 Sachin Shah [this message]
2004-11-27 8:59 ` [Caml-list] " Nicolas Cannasse
[not found] ` <388f6fcd04112707287b784e21@mail.gmail.com>
2004-11-27 23:52 ` Sachin Shah
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=388f6fcd041126221466abac1d@mail.gmail.com \
--to=zakaluka@gmail.com \
--cc=caml-list@yquem.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