From: peter.ilberg@ni.com
To: caml-list@inria.fr
Subject: Re: [Caml-list] Linking native ocaml object files into C app on Windows
Date: Thu, 10 Jun 2004 11:07:11 -0500 [thread overview]
Message-ID: <OFA895EF84.A66D2173-ON86256EAF.0055C25B-86256EAF.00588C2C@natinst.com> (raw)
In-Reply-To: <40C87D7B.6010504@lexifi.com>
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
next parent reply other threads:[~2004-06-10 16:07 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <40C87D7B.6010504@lexifi.com>
2004-06-10 16:07 ` peter.ilberg [this message]
[not found] <20040610190443.A10900@pauillac.inria.fr>
2004-06-10 17:28 ` peter.ilberg
2004-06-10 14:07 peter.ilberg
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=OFA895EF84.A66D2173-ON86256EAF.0055C25B-86256EAF.00588C2C@natinst.com \
--to=peter.ilberg@ni.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