Version française
Home     About     Download     Resources     Contact us    
Browse thread
[Caml-list] ocamlmklib on Windows
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Xavier Leroy <xavier.leroy@i...>
Subject: Re: [Caml-list] ocamlmklib on Windows
> This is surely similar to the need for compiling C object files with
> -fPIC/-fpic under Linux if they are to become DLLs. 

The Windows issue is much worse than this.  An object file compiled
with -fpic can be linked statically just fine.  The code generated
with -fpic might be slightly less efficient, but behaves the same.
So, the same object files can be shared between a static lib and a
DLL.  Not so under Windows.

- Xavier Leroy

-------------------
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