Problems including TLorentzVector

Hello,

I have problems including TLorentzVector.h. My header starts like

#ifndef __CINT__
#include <Riostream.h>
#include <iostream>
#include <fstream>
#include <string>
#include "TROOT.h"
#include "TString.h"
#include "TTimeStamp.h"
#include "TChain.h"
#include "TEntryList.h"
#include "TObject.h"
#include "TFile.h"
#include "TSystem.h"
#include "TH2.h"
//#include "TLorentzVector.h"
#endif

and works fine, both when I load the macro into ROOT or compiles with gcc. If I uncomment TLorentzVector I get 9000 lines of errors, the first few lines of the log file are:

Can anyone help me on the right track? I think I am including the right libraries, but I may be wrong of course (the same happens when I try to load-and-compile into ROOT using .L main.cxx+

Best regards,
Mikkel

Ah, my setup was using another version of g++ than ROOT was compiled with, causing the error. I did not know that could be an issue, but have become better educated now.