Damir, You can link define macro as numeric constant in cint. In LinkDef.h , add '#pragma link C++ global M_PI;'. // in your header file #define M_PI 3.14159265 // in LinkDef.h #ifdef __MAKECINT__ #pragma link off all globals; #pragma link off all classes; #pragma link off all functions; #pragma link C++ global M_PI; #endif Masaharu Goto ---------------------------------------------------------- Hi, I have a C package that I would like to include in ROOT. In the header file, there are a few defines of some constants that I would like to keep in order to use them in an interactive session. I wouldn't like to change their names by doing something like : # define M_PI 3.14159265358979323846 double const PI = M_PI; since they are used in a bunch of programs that I would like to test interactively So is there a possibility to tell rootcint to treat those defines as globals and link them to cint ? I didn't succeed for the moment. Damir -- ===================================================================== | Damir Buskulic | Universite de Savoie/LAPP | | | Chemin de Bellevue, B.P. 110 | | Tel : +33 (0)450091600 | F-74941 Annecy-le-Vieux Cedex | | e-mail: buskulic@lapp.in2p3.fr | FRANCE | ===================================================================== mailto:buskulic@lapp.in2p3.fr
This archive was generated by hypermail 2b29 : Tue Jan 04 2000 - 00:34:41 MET