From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from majordomo@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id SAA06725; Thu, 10 Jun 2004 18:07:15 +0200 (MET DST) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id SAA06964 for ; Thu, 10 Jun 2004 18:07:14 +0200 (MET DST) From: peter.ilberg@ni.com Received: from mailserver01-us.natinst.com (mailserver01-us.natinst.com [130.164.14.247]) by concorde.inria.fr (8.12.10/8.12.10) with ESMTP id i5AG7CSH022192 for ; Thu, 10 Jun 2004 18:07:13 +0200 Received: from postoffice2.natinst.com ([130.164.46.199]) by mailserver01-us.natinst.com (Lotus Domino Release 6.5.1) with ESMTP id 2004061011071224-24453 ; Thu, 10 Jun 2004 11:07:12 -0500 In-Reply-To: <40C87D7B.6010504@lexifi.com> To: caml-list@inria.fr Subject: Re: [Caml-list] Linking native ocaml object files into C app on Windows MIME-Version: 1.0 X-Mailer: Lotus Notes Release 6.0.2CF2 July 23, 2003 Message-ID: Date: Thu, 10 Jun 2004 11:07:11 -0500 X-MIMETrack: Serialize by Router on PostOffice2/AUS/M/NIC(Release 6.5.1|January 21, 2004) at 06/10/2004 11:07:11 AM, Serialize complete at 06/10/2004 11:07:11 AM, Itemize by SMTP Server on MailServer01-US/AUS/H/NIC(Release 6.5.1|January 21, 2004) at 06/10/2004 11:07:12 AM, Serialize by Router on MailServer01-US/AUS/H/NIC(Release 6.5.1|January 21, 2004) at 06/10/2004 11:07:13 AM, Serialize complete at 06/10/2004 11:07:13 AM Content-Type: text/plain; charset="US-ASCII" X-Miltered: at concorde with ID 40C88730.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Loop: caml-list@inria.fr X-Spam: no; 0.00; caml-list:01 stdlib:01 ocamlopt:01 stdlib:01 libasmrun:01 3.06.:01 ocamlopt:01 nologo:01 nologo:01 -output-obj:01 libpath:01 progra:01 libasmrun:01 char:01 pervasives:01 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk I've added stdlib.lib and I'm compiling the C file with ocamlopt now, but things still aren't working. The link errors for the Lexing module are gone, but they were replaced by many more from stdlib.lib. Where are the functions _caml_curry2/3 or _caml_apply2/3/4 defined? They aren't in libasmrun.lib, I verified that with dumpbin. I'm using Ocaml 3.06. Peter ocamlopt -cc cl -ccopt /nologo -ccopt /MT main.c ocamllex lexer.mll ocamlopt -cc cl -ccopt /nologo -ccopt /MT -c -output-obj lexer.ml -o lexer.obj link /nologo /out:test /libpath:"c:\progra~1\object~1\lib" main.obj lexer.obj stdlib.lib libasmrun.lib stdlib.lib(sys.obj) : error LNK2001: unresolved external symbol _caml_curry2 stdlib.lib(char.obj) : error LNK2001: unresolved external symbol _caml_curry2 stdlib.lib(list.obj) : error LNK2001: unresolved external symbol _caml_curry2 lexer.obj : error LNK2001: unresolved external symbol _caml_curry2 stdlib.lib(lexing.obj) : error LNK2001: unresolved external symbol _caml_curry2 stdlib.lib(pervasives.obj) : error LNK2001: unresolved external symbol _caml_curry2 stdlib.lib(string.obj) : error LNK2001: unresolved external symbol _caml_curry2 stdlib.lib(lexing.obj) : error LNK2001: unresolved external symbol _caml_apply2 stdlib.lib(list.obj) : error LNK2001: unresolved external symbol _caml_apply2 libasmrun.lib(i386nt.obj) : error LNK2001: unresolved external symbol _caml_apply2 stdlib.lib(lexing.obj) : error LNK2001: unresolved external symbol _caml_curry3 stdlib.lib(pervasives.obj) : error LNK2001: unresolved external symbol _caml_curry3 stdlib.lib(string.obj) : error LNK2001: unresolved external symbol _caml_curry3 stdlib.lib(list.obj) : error LNK2001: unresolved external symbol _caml_curry3 stdlib.lib(pervasives.obj) : error LNK2001: unresolved external symbol _End_of_file libasmrun.lib(fail.obj) : error LNK2001: unresolved external symbol _End_of_file stdlib.lib(pervasives.obj) : error LNK2001: unresolved external symbol _Failure libasmrun.lib(fail.obj) : error LNK2001: unresolved external symbol _Failure stdlib.lib(pervasives.obj) : error LNK2001: unresolved external symbol _Invalid_argument libasmrun.lib(fail.obj) : error LNK2001: unresolved external symbol _Invalid_argument stdlib.lib(pervasives.obj) : error LNK2001: unresolved external symbol _caml_curry4 stdlib.lib(string.obj) : error LNK2001: unresolved external symbol _caml_curry4 stdlib.lib(list.obj) : error LNK2001: unresolved external symbol _caml_curry4 stdlib.lib(string.obj) : error LNK2001: unresolved external symbol _Not_found stdlib.lib(list.obj) : error LNK2001: unresolved external symbol _Not_found libasmrun.lib(fail.obj) : error LNK2001: unresolved external symbol _Not_found stdlib.lib(string.obj) : error LNK2001: unresolved external symbol _caml_curry5 stdlib.lib(list.obj) : error LNK2001: unresolved external symbol _Assert_failure stdlib.lib(list.obj) : error LNK2001: unresolved external symbol _caml_apply3 libasmrun.lib(i386nt.obj) : error LNK2001: unresolved external symbol _caml_apply3 libasmrun.lib(startup.obj) : error LNK2001: unresolved external symbol _caml_code_segments libasmrun.lib(startup.obj) : error LNK2001: unresolved external symbol _caml_data_segments libasmrun.lib(fail.obj) : error LNK2001: unresolved external symbol _Out_of_memory libasmrun.lib(fail.obj) : error LNK2001: unresolved external symbol _Stack_overflow libasmrun.lib(fail.obj) : error LNK2001: unresolved external symbol _Sys_error libasmrun.lib(fail.obj) : error LNK2001: unresolved external symbol _Division_by_zero libasmrun.lib(fail.obj) : error LNK2001: unresolved external symbol _Sys_blocked_io libasmrun.lib(i386nt.obj) : error LNK2001: unresolved external symbol _caml_program libasmrun.lib(roots.obj) : error LNK2001: unresolved external symbol _caml_globals libasmrun.lib(roots.obj) : error LNK2001: unresolved external symbol _caml_frametable ------------------- To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/ Beginner's list: http://groups.yahoo.com/group/ocaml_beginners