Hi, I have another stupid problem : the time_t type doesn't seem to be included root [2] time_t tt Error: No symbol time_ttt in current scope FILE:/tmp/baaaariya LINE:1 *** Interpreter error recovered *** but gmtime (for example) is a recognized function root [0] gmtime (void*)0x3ff800f2010 if I do a #include <time.h> then everything seems to work. On the other hand, if I compile and include some private code which uses time.h, I get : root [0] time_t tt root [1] tt = time(NULL) (long)897398755 root [2] gmtime(&tt) Error: class,struct,union or type tm not defined FILE:/tmp/caaaariea LINE:1 *** Break *** segmentation violation My code seems to interfere with time.h since the behaviour is the same if I include it or not. What rootcint does for C functions is not quite clear to me, as what headers it uses. I know, I know, I should use the TTime class. I checked this for compatibility with our existing software, to let users switch as smoothly as possible from C to C++/ROOT framework. So, the question is : is time.h included in root from the beginning, as are, for example stdio.h ? Thanks for your help 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:33 MET