Re: bug?

Christian (nally@physics.ubc.ca)
Wed, 29 Oct 1997 09:51:27 -0800 (PST)


Hi All,

One thing that is "wrong" that I spent a lot of time on once, is that it's
missing the enclosing { }.

Wouldn't it be better if CINT just assumed such braces around all imported
or executed files? I think that might save a lot of newbie-frustration
hours.

When I enclose the file in {}, I get a much more helpful error message,
but can't help from there.

Alexander wrote:

> What is wrong in the next file?
>
> file test.c
> --------------------------------------------------------------------------
> void test(void)
> {
> TFile file1("file.root","RECREATE","This is title!",9);
>
> class GENERATOR : public TObject
> {
> } g;
> }
> --------------------------------------------------------------------------
>
> root [0] .x test.c
>
> *** Break *** segmentation violation
>
>
> Thanks,
> Alexander Zvyagin.
>