Beginning Writing in ROOT Error help

ROOT Version 5.34/30
Platform, compiler CINT/ROOT C/C++

HI have a little problem with my program , it was supposed to be an easy program only 1 function I’m sitting on it for 3 days now . Anyone can help and show me where the mistakes are .


	//#include "ROOT.h"
#include "/home/tomek/Desktop/ROOT.h" 
#include "TMath.h"
#include <float.h>
#include <stdio.h>
#include <Rtypes.h>
//#include <iostream>
#define me (*this)
using namespace std;
 int main()
mu=0, sigma=1
Double_t Gaus(Double_t x, Double_t mean = 0, Double_t sigma = 1, Bool_t norm = kFALSE)

**include file **

I don’t know why must include these i define all in main file anyone can explain ??

 //in myclass.cpp

class MyClass
#define namespace 
#define Double_t

void MyClass::foo()
  //do stuff

in C++ im beginner so please don’t shout for trivial mistakes

error  Illegal pointer operation (tovalue) /****/root:10:
*** Interpreter error recovered ***


I think this post is not really about ROOT, but rather about C++. My advice would be to pick one of the many C++ tutorials which could be found online to get more familiar with the language.


This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.