Frama-C-discuss mailing list archives

This page gathers the archives of the old Frama-C-discuss archives, that was hosted by Inria's gforge before its demise at the end of 2020. To search for mails newer than September 2020, please visit the page of the new mailing list on Renater.


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Frama-c-discuss] How to use external libraries in Dynamic Plugin


  • Subject: [Frama-c-discuss] How to use external libraries in Dynamic Plugin
  • From: stephane.duprat at atos.net (DUPRAT Stephane)
  • Date: Wed, 5 Oct 2011 09:56:20 +0000
  • In-reply-to: <4E89D218.4030900@cea.fr>
  • References: <569C6D7D26484241A530B87F45ADE1F87DCF03@AOFRWMBXRSC004.resources.atosorigin.local> <4E89D218.4030900@cea.fr>

Thank you all for your help

I succeed by using PLUGIN_EXTRA_OPT and ocamlfind.

Stephane

> -----Message d'origine-----
> De : frama-c-discuss-bounces at lists.gforge.inria.fr [mailto:frama-c-
> discuss-bounces at lists.gforge.inria.fr] De la part de Virgile
> Envoy? : lundi 3 octobre 2011 17:18
> ? : Frama-C public discussion
> Objet : Re: [Frama-c-discuss] How to use external libraries in Dynamic
> Plugin
>
> Hello St?phane,
>
> On 03/10/2011 16:43, DUPRAT Stephane wrote:
> > Hello,
> >
> > Is it possible to use an external library in dynamic plugin ? For
> > example, if I want to use sqlite3 OCaml library. I need to know the
> > path<GODI_install>/install/lib/ocaml/pkg-lib/sqlite3/ and archive
> > names sqlite3.cma and sqlite3.cmxa.
> >
> > I have seen interesting informations in the devel manual with the use
> > of plugin_require_external macro, but it is for static plugin and I'm
> > wondering if it is really possible to have the same thing with
> > dynamic plugins and how to do that ?
> >
>
> If you include  ${FRAMAC_SHARE}/configure.ac in your plugin's
> configure.ac file, as explained in section 4.2.6 of the developer's
> manual, you have access to all Frama-C's macros, regardless of the
> dynamic or static nature of the plugin.
>
> Note that plugin_require_external merely states that your plugin cannot
> be compiled without the given library. You should also have a
> corresponding configure_library call to detect if it is present, as
> explained in section 4.2.3.
>
> Best regards,
> --
> E tutto per oggi, a la prossima volta
> Virgile
>
> _______________________________________________
> Frama-c-discuss mailing list
> Frama-c-discuss at lists.gforge.inria.fr
> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/frama-c-discuss
________________________________


Ce message et les pi?ces jointes sont confidentiels et r?serv?s ? l'usage exclusif de ses destinataires. Il peut ?galement ?tre prot?g? par le secret professionnel. Si vous recevez ce message par erreur, merci d'en avertir imm?diatement l'exp?diteur et de le d?truire. L'int?grit? du message ne pouvant ?tre assur?e sur Internet, la responsabilit? du groupe Atos ne pourra ?tre engag?e quant au contenu de ce message. Bien que les meilleurs efforts soient faits pour maintenir cette transmission exempte de tout virus, l'exp?diteur ne donne aucune garantie ? cet ?gard et sa responsabilit? ne saurait ?tre engag?e pour tout dommage r?sultant d'un virus transmis.

This e-mail and the documents attached are confidential and intended solely for the addressee; it may also be privileged. If you receive this e-mail in error, please notify the sender immediately and destroy it. As its integrity cannot be secured on the Internet, the Atos group liability cannot be triggered for the message content. Although the sender endeavors to maintain a computer virus-free network, the sender does not warrant that this transmission is virus-free and will not be liable for any damages resulting from any virus transmitted.