Hi, well, I changed macro, so to be sure I use the same classes (Lastra and Track, together with TTree, TFile, TEllipse) but in a different (perhaps less complex) contest. My new macro is called: faitree_obj_dev.C this is the commands I gave: root [0] .L mylib/libLastra.so root [1] .L mylib/libTrack.so root [2] .L faitree_obj_dev.C++ this has been issued: Creating shared library /disk2/chiarusi/zonalavoro_root/./faitree_obj_dev_C.so /disk2/chiarusi/zonalavoro_root/faitree_obj_dev.C: In function `void azione(class ifstream *, class Lastra *, double, double, const char *)': In file included from /disk2/chiarusi/zonalavoro_root/fileWsQETs.h:28, from /disk2/chiarusi/zonalavoro_root/./fileWsQETs.C:5: /disk2/chiarusi/zonalavoro_root/faitree_obj_dev.C:58: `Track' undeclared (first use this function) ^^^^^^^^^^^^^^^^^^^^ /disk2/chiarusi/zonalavoro_root/faitree_obj_dev.C:58: (Each undeclared identifier is reported only once /disk2/chiarusi/zonalavoro_root/faitree_obj_dev.C:58: for each function it appears in.) /disk2/chiarusi/zonalavoro_root/faitree_obj_dev.C:58: `trr' undeclared (first use this function) /disk2/chiarusi/zonalavoro_root/faitree_obj_dev.C:58: parse error before `(' /disk2/chiarusi/zonalavoro_root/faitree_obj_dev.C:59: confused by earlier errors, bailing out cpp: output pipe has been closed g++: /disk2/chiarusi/zonalavoro_root/./fileWsQETs.o: No such file or directory Note that the TTree, TFile and TEllipse classes have been include in the code via the following: #if !defined(__CINT__) || defined (__MAKECINT__) #include "TTree.h" #include "TFile.h" #include "TEllipse.h" #include "TLine.h" #endif I thank you all Regards, Tommaso
This archive was generated by hypermail 2b29 : Tue Jan 01 2002 - 17:51:02 MET