Hi, I can not reproduce this problem (even with 3.10/02). I recommend that you first try to compile you script (for example with ACLiC). If this does not point to the problem and/or solves it, try with the lastest version of ROOT> If the problem is still there, send enough information to reproduce the problem. Cheers, Philippe. -----Original Message----- From: owner-roottalk@pcroot.cern.ch [mailto:owner-roottalk@pcroot.cern.ch]On Behalf Of Vu Anh Tuan Sent: Thursday, November 11, 2004 11:11 AM To: roottalk@pcroot.cern.ch Subject: [ROOT] Errors when using CINT Hi, I'm using CINT version 5.15.115 with root v3.10/02. I wrote a small macro makePlots.cpp like this #include "testbeam.hpp" void makePlots(void) { // make some plots here } I need to include the header file testbeam.hpp since it contains some constants I'll be using to make plots. I have the following errors: root [0] Processing makePlots.cpp... Error: array initialization FILE:testbeam.hpp LINE:55 Error: assignment to 3 FILE:testbeam.hpp LINE:55 *** Interpreter error recovered *** In the lines 54 and 55 of testbeam.hpp there are: 54: const int MAX_TRT_CUTS = 6; 55: const int min_nTrtHLHits[MAX_TRT_CUTS] = {2, 3, 4, 5, 6, 7}; If I remove the line 55 or I put the two (54 and 55) in the makePlots.cpp macro there are no longer such error messages. Do you have any suggestion what might go wrong with it? Thanks a lot, Tuan
This archive was generated by hypermail 2b29 : Sun Jan 02 2005 - 05:50:10 MET