I’m facing following Errors while compilling my code, and finaly it stopes.
Could anyone suggest what may be the possible errors in my code ?
Error: Symbol #include is not defined in current scope hij_AuAu200.C:325:
Error: Symbol exception is not defined in current scope hij_AuAu200.C:325:
Syntax Error: #include hij_AuAu200.C:325:
Error: Symbol G__exception is not defined in current scope hij_AuAu200.C:325:
Error: type G__exception not defined FILE:/pool01/nihar/HIJING@/Auau200gev/MOMENTS/./hij_AuAu200.C LINE:325
*** Interpreter error recovered ***
This only indicates that you code has thrown an exception, we do not know which one nor from where.
You might be able to improve the output by issuing:
#include
on the command prompt before executing your code.
Alternative your can run ‘gdb root.exe’ and ask gdb to catch the throws (literaly by issuing at the gdb prompt: catch throw )
Program received signal SIGABRT, Aborted.
[Switching to Thread -1208248640 (LWP 29047)]
0x008787a2 in _dl_sysinfo_int80 () from /lib/ld-linux.so.2
(gdb)
I can’t Follow what is wrong.
Plz, suggest something…
To get a bit more information you can try:[code]root [0] .exception
G__catchexception=0
root [1] .L hij_AuAu200.C+
root [2] hij_AuAu200 t;
root [3] t.Loop();
…
Processing event: 3799
terminate called after throwing an instance of 'std::bad_alloc’
what(): St9bad_alloc
Program received signal SIGABRT, Aborted.
[Switching to Thread -1208248640 (LWP 29047)]
0x008787a2 in _dl_sysinfo_int80 () from /lib/ld-linux.so.2
(gdb) where
…[/code]
[quote]terminate called after throwing an instance of 'std::bad_alloc’
what(): St9bad_alloc [/quote]We now know it is a memory (allocation) problem. For this kind of problem a tool called valgrind usually get the best information (see valgrind.org) and use valgrind root.exe -b -l
root [0] .exception
root [1] .L hij_AuAu200.C+
root [2] hij_AuAu200 t;
root [3] t.Loop();
Cheers,Philippe
Yes, I think it could have been a problem with the memory and how you handled/managed it …
[quote]how could i get ride to it for 1million array size ?[/quote]It all depends on what you are trying to do with all those values, if you just want to histogram them, then you do not need to keep them all in memory, just accumulate directly into the histogram …