From: Andrew Griffis <andrew.griffis@avisere.com>
To: caml-list@inria.fr
Subject: error using MSVC7.x and OCaml3.07: entry point must be defined
Date: Wed, 11 May 2005 17:02:57 -0700 [thread overview]
Message-ID: <548e3674cd7699a5dbd5d9ea01758a49@avisere.com> (raw)
I am compiling a group of C/C++ libraries and compiled Ocaml libraries
using ocamlopt and the MSVC7.x tools, including Nmake (Version
7.00.9466, same as the associated MASM) and CL (version 13.00.9466).
The Ocamlopt version is 3.07. I am running under WinXP on an AMD Athlon
processor.
I consistently get the following error message when the final link step
executes:
"LINK : fatal error LNK1561: entry point must be defined"
I can write a simple .c program and a companion simple .ml program,
link them together and have the resultant ml-main routine call and
execute the c program correctly. So the toolpath appears to work ok
for simple cases.
I have checked one of the intermediate ASM file results, and I do
indeed see an "EXTERN _Main__entry: PROC" statement which I would
assume would be carried through to the final stage of linking.
I would be grateful for any tips or suggestions, particularly if this
has been seen before, or if some obvious error in approach has been
taken.
Thanks,
Andy
-------------
Andrew Griffis, Ph.D.
Avisere, Inc.
+1 520 272 8199
+1 520 207 4560 (fax)
reply other threads:[~2005-05-12 0:00 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=548e3674cd7699a5dbd5d9ea01758a49@avisere.com \
--to=andrew.griffis@avisere.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