From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Delivered-To: caml-list@yquem.inria.fr Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by yquem.inria.fr (Postfix) with ESMTP id 2BB46BCAB for ; Thu, 12 May 2005 02:00:42 +0200 (CEST) Received: from pauillac.inria.fr (pauillac.inria.fr [128.93.11.35]) by nez-perce.inria.fr (8.13.0/8.13.0) with ESMTP id j4C00fsl015041 for ; Thu, 12 May 2005 02:00:41 +0200 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 CAA19772 for ; Thu, 12 May 2005 02:00:41 +0200 (MET DST) Received: from socrates.rocketdogcreative.com ([72.9.234.250]) by nez-perce.inria.fr (8.13.0/8.13.0) with ESMTP id j4C00doN015038 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL) for ; Thu, 12 May 2005 02:00:41 +0200 Received: from [192.168.1.101] (wsip-68-107-209-135.tu.ph.cox.net [68.107.209.135]) by socrates.rocketdogcreative.com (8.13.4/8.13.4/Debian-2) with ESMTP id j4C00bPx030490 for ; Thu, 12 May 2005 01:00:39 +0100 Mime-Version: 1.0 (Apple Message framework v622) Content-Transfer-Encoding: 7bit Message-Id: <548e3674cd7699a5dbd5d9ea01758a49@avisere.com> Content-Type: text/plain; charset=US-ASCII; format=flowed To: caml-list@inria.fr From: Andrew Griffis Subject: error using MSVC7.x and OCaml3.07: entry point must be defined Date: Wed, 11 May 2005 17:02:57 -0700 X-Mailer: Apple Mail (2.622) X-Miltered: at nez-perce with ID 42829CA9.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Miltered: at nez-perce with ID 42829CA7.001 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Spam: no; 0.00; ocaml:01 ocaml:01 ocamlopt:01 nmake:01 masm:01 ocamlopt:01 extern:01 executes:01 msvc:01 msvc:01 defined:02 defined:02 compiling:02 asm:02 linking:03 X-Spam-Checker-Version: SpamAssassin 3.0.2 (2004-11-16) on yquem.inria.fr X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=disabled version=3.0.2 X-Spam-Level: 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)