Version française
Home     About     Download     Resources     Contact us    
Browse thread
Re:_[Caml-list]_DLL_(windows)_creation_problem
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Igor Pechtchanski <pechtcha@c...>
Subject: Re:_[Caml-list]_DLL_(windows)_creation_problem
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