Re: Running C scripts within ROOT

From: Rene Brun <Rene.Brun_at_cern.ch>
Date: Thu, 04 Oct 2007 17:37:51 +0200


Could you send your input data set "nmssm.pggss" ? Could you rename your main function to "nmssm" and try  root > .L nmssm.C+
 root > nmssm()

Rene brun

Anil Singh wrote:
> Hi
> I am trying to run a C file with in the ROOT framework. The program simply aims to read the data from an ascii file and reproduce it on the screen. It does very well with the other compilers (g++ ). When I try to run it with in the framework:
> ===========================================
> root [0] .L nmssm.C
> root [1] main()
>
> *** Break *** segmentation violation
>
> *** Break *** keyboard interrupt nmssm.C:82:
>
> * ** Break *** keyboard interrupt
> Root > ==========================/Terminal Hangs up
> ====================================
>
> My C script has following items :
>
> 1) Preprocessor directives and include statements.
>
> 2) Two Struct definitions
>
> 3) Two function declarations
>
> 4) main()
> ............................The C script has been attatched herewith.
>
>
>
>
Received on Thu Oct 04 2007 - 17:37:46 CEST

This archive was generated by hypermail 2.2.0 : Thu Oct 04 2007 - 23:50:02 CEST