From: Igor Pechtchanski <pechtcha@cs.nyu.edu>
To: Matthieu Dubuget <matthieu.dubuget@libertysurf.fr>
Cc: caml-list@inria.fr
Subject: Re: [Caml-list] DLL (windows) creation problem
Date: Fri, 24 Sep 2004 11:21:19 -0400 (EDT) [thread overview]
Message-ID: <Pine.GSO.4.61.0409241116080.880@slinky.cs.nyu.edu> (raw)
In-Reply-To: <I4JBD3$91634BAB031FBAD7870C97A9397A5262@tiscali.fr>
On Fri, 24 Sep 2004, matthieu.dubuget wrote:
> The same thing with bytecode (replaced ocamlopt by ocamlc,
> and libasmrun.lib by libcamlrun.lib) works. Why?
>
> C:\test>ocamlc -output-obj -o dac1.obj dac.ml
> C:\test>ocamlc -c ms_dac.c
> C:\test>link -nologo -dll -out:ms_dac.dll -def:ms_dac.def
> dac1.obj ms_dac.obj -libpath:c:\ocaml\lib libcamlrun.lib
> C:\test>cl -o t.exe -nologo -Ox -MT ms_dac.lib t.c
> C:\test>t.exe
> t.exe
> 0
> 1
>
> Salutations
> Matthieu Dubuget
I suspect it's because the bytecode linking mechanism does different
things for dependencies (e.g., they aren't represented as unresolved
symbols). Hopefully, someone will correct me if I'm wrong.
Igor Pechtchanski, volunteer O'Caml maintainer for Cygwin
--
http://cs.nyu.edu/~pechtcha/
|\ _,,,---,,_ pechtcha@cs.nyu.edu
ZZZzz /,`.-'`' -. ;-;;,_ igor@watson.ibm.com
|,4- ) )-,_. ,\ ( `'-' Igor Pechtchanski, Ph.D.
'---''(_/--' `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-. Meow!
"Happiness lies in being privileged to work hard for long hours in doing
whatever you think is worth doing." -- Dr. Jubal Harshaw
-------------------
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 prev parent reply other threads:[~2004-09-24 15:21 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-09-24 7:27 matthieu.dubuget
2004-09-24 15:21 ` Igor Pechtchanski [this message]
-- strict thread matches above, loose matches on Subject: below --
2004-09-23 16:44 matthieu.dubuget
2004-09-23 16:57 ` Igor Pechtchanski
2004-09-23 19:08 ` Matthieu Dubuget
2004-09-23 20:25 ` Igor Pechtchanski
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=Pine.GSO.4.61.0409241116080.880@slinky.cs.nyu.edu \
--to=pechtcha@cs.nyu.edu \
--cc=caml-list@inria.fr \
--cc=matthieu.dubuget@libertysurf.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