Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

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 Archives:
Bug reports: FAQ:
Beginner's list: