Re: macro to c++

Valery Fine (fine@bnl.gov)
Wed, 13 May 1998 10:31:56 -0500


On 12 May 98 at 12:14, HANS WENZEL, FNAL: 630 840 82 wrote:

> I am just a beginner concerning root. My question is the following
> is there an automatic procedure which i can use to transform working
> cint macros into standalone c++ programs that i can then link with
> the root libraries. e.g i would like to transform hserv.C and
> hclient.C from the tutorials directory and and then run them
> without having to go through the root command lines.

The good way would be to create a share library with only your code
and load it into the root batch session.
You can pay more but why ?
This way one need very small transformation of his macro if
any. Anyway it can be done with cpp command like
#ifdef __CINT__ #endif

root -b -q <name_of_share_lib>

works well.
Valery
=================================================================
Dr. Valeri Faine (Fine)
------------------- Phone: +1 516 344 7806
Brookhaven National Laboratory FAX : +1 516 344 4206
Bldg. 510A /STAR mailto:fine@bnl.gov
Upton, New York, 11973-5000 http://nicewww.cern.ch/~fine
USA

Dr. Valery Fine Telex : 911621 dubna su
-----------
LCTA/Joint Inst.for Nuclear Res. Phone : +7 09621 6 40 80
141980 Dubna, Moscow region Fax : +7 09621 6 51 45
Russia mailto:fine@main1.jinr.dubna.su