English version
Accueil     À propos     Téléchargement     Ressources     Contactez-nous    

Ce site est rarement mis à jour. Pour les informations les plus récentes, rendez-vous sur le nouveau site OCaml à l'adresse ocaml.org.

Browse thread
Native Module Linking
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2004-11-09 (18:35)
From: Nicolas Cannasse <warplayer@f...>
Subject: Native Module Linking
Hi,

I have a project that is structured like this :
- a library with one Entry module and several Plugins
- an application using the library.

In the application I'm doing the following :

open Entry;
open Plugin1;
open Plugin2;
....
(* use "Entry" *)

Plugins are using Entry, and application is only activating plugins with
"open" (in order to ensure they're linked).
On windows everything works well but looks like on Linux some configurations
are not linking the plugins (at least in opt mod : ocamlopt myLib.cmxa
myApp.ml ). And I can't use the -linkall because I'm using other libraries
that I want to partially link . Is this a bug, a feature, or a
misunderstanding ?

Regards,
Nicolas Cannasse