Am Donnerstag, den 10.09.2015, 14:08 +0200 schrieb Sébastien Hinderer: > Hi Gerd, > > Gerd Stolpmann (2015/09/09 18:03 +0200): > > Am Mittwoch, den 09.09.2015, 15:44 +0200 schrieb Sébastien Hinderer: > > > Dear Xavier, > > > > > > Many thanks for your response. > > > > > > > You can't get more precise than the configure script of OCaml :-) > > > > > > Sure! > > > > > > > > Is there a way for a configure script to programmatically determine the > > > > > availability of the feature on one given platform? > > > > > > > > Just check for the presence of dynlink.cmxa in OCaml's standard > > > > library directory. > > > > > > OK! Quitesimple,thanks. > > > > > > So am I correct that the question ``is Dynlink supported'' only makes > > > sense when one compiles a native-code program, because this always works > > > for byte-code? > > > > The question makes also a lot of sense for bytecode, because not all > > platforms can load dll's. Bytecode that does not need additional dll's > > can always be loaded. > > Okay, that's indeed a very important clarification. Thanks. > Bytecode that does not need addiional dlls means bytecode that does not > require any Clibrary, right? ...not any _additional_ C library. If the C library is already (statically) linked into the main executable, the loaded bytecode can use it. > Does somebody know what are the platforms that can not load dlls? From "configure" I guess that the following platforms can load, and any other cannot: all Win32 (incl Cygwin and MinGW), Linux, FreeBSD, OpenBSD, NetBSD, DEC alpha, Solaris, IRIX, Mac OS X. The others are nowadays very exotic (e.g. HP-UX), or special (e.g. the iOS support I'm preparing in a separate patch won't include dll support - Apple does not permit apps to use shared libraries). Gerd -- ------------------------------------------------------------ Gerd Stolpmann, Darmstadt, Germany gerd@gerd-stolpmann.de My OCaml site: http://www.camlcity.org Contact details: http://www.camlcity.org/contact.html Company homepage: http://www.gerd-stolpmann.de ------------------------------------------------------------