[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: can find gROOT



Dave provided the solution: add

#include <TROOT.h>

at the beginning of the file.

Mark M. Ito wrote:
> I've been having a problem for some time compiling 
> DTrackingResolutionGEANT.cc. I think Matt dealt with a similar problem 
> once upon a time, but I can't find a reference in the email archive. 
> Here is the error:
>
> roentgen:HDParSim:1018> make
> g++ -I. -I.. -I../include -I/usr/local/gluex/halld/include -D_ROOT_ 
> -pthread -m32 -I/usr/local/src/root/prod/include 
> -I/usr/local/src/root/prod/include -O2 -Wall -c -o 
> .obj/Linux-i686/DTrackingResolutionGEANT.o DTrackingResolutionGEANT.cc
> DTrackingResolutionGEANT.cc: In constructor 
> ‘DTrackingResolutionGEANT::DTrackingResolutionGEANT()’:
> DTrackingResolutionGEANT.cc:56: error: ‘gROOT’ was not declared in 
> this scope
> DTrackingResolutionGEANT.cc:22: warning: unused variable ‘app’
> make: *** [DTrackingResolutionGEANT.o] Error 1
>
> I know I mentioned this to Dave once, but we never got it resolved. 
> Any ideas out there?
>
>
begin:vcard
fn:Mark M. Ito
n:Ito;Mark
org:Jefferson Lab
adr:Suite 8;;12000 Jefferson Avenue;Newport News;VA;23601;USA
email;internet:marki@jlab.org
title:Staff Scientist
tel;work:757-269-5295
tel;fax:757-269-6331
tel;pager:757-584-5295
url:http://www.jlab.org/~marki
version:2.1
end:vcard