Hi Stephan,
if with "from ROOT" you mean from the interpreter: you build a dictionary for it, using rootcint. If it's in a library and you want to call it from your compiled code (.x MyCode.C+) then a declaration of the function in your code is sufficient:
extern "C" { int myfunc(); }
Of course then you will have to gSystem->Load() the library containing the function before you can use it.
Cheers, Axel.
On 2008-12-10 12:30, thiel_at_mikro.ee.tu-berlin.de wrote:
> Hello Rooters,
>
> what is the easiest way to get c-routines be callable/known from
> root ?
>
> Regards,
> Stephan
>
>
Received on Thu Dec 11 2008 - 10:14:52 CET
This archive was generated by hypermail 2.2.0 : Thu Dec 11 2008 - 11:50:01 CET