<?xml version="1.0" encoding="ISO-8859-1"?>

<!DOCTYPE message PUBLIC
  "-//MLarc//DTD MLarc output files//EN"
  "../../mlarc.dtd"[
  <!ATTLIST message
    listname CDATA #REQUIRED
    title CDATA #REQUIRED
  >
]>

  <?xml-stylesheet href="../../mlarc.xsl" type="text/xsl"?>


<message 
  url="2005/05/e68ec0c98dbf257ffbf68ff6c7c6acb9"
  from="Andrew Griffis &lt;andrew.griffis@a...&gt;"
  author="Andrew Griffis"
  date="2005-05-12T00:00:42"
  subject="error using MSVC7.x and OCaml3.07:  entry point must be defined"
  prev="2005/05/428d4fa76763d222dd5a06d729908ab9"
  next="2005/05/13030773278c40d6367360759638756e"
  prev-thread="2005/05/428d4fa76763d222dd5a06d729908ab9"
  next-thread="2005/05/5ec037d0731d72daab5cb2759565293d"
  root="../../"
  period="month"
  listname="caml-list"
  title="Archives of the Caml mailing list">

<thread subject="error using MSVC7.x and OCaml3.07:  entry point must be defined">
<msg 
  url="2005/05/e68ec0c98dbf257ffbf68ff6c7c6acb9"
  from="Andrew Griffis &lt;andrew.griffis@a...&gt;"
  author="Andrew Griffis"
  date="2005-05-12T00:00:42"
  subject="error using MSVC7.x and OCaml3.07:  entry point must be defined">
</msg>
</thread>

<contents>
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)

</contents>

</message>

