Message: ROOT and Geant4 Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Question ROOT and Geant4 

Keywords: ROOT Geant4
Forum: Analysis
Date: 07 Sep, 2007
From: Lucas Snyder <Lucas Snyder>

Hello,

I have Geant4 and ROOT working on my windows machine but I cannot
seem to get them to work together. I get the following error when I try
to make a simple histogram.

......
fatal error C1083: Cannot open include file: 'TH1.h': No such file or 
directory
......

I assume it is a problem with my makefile and I have tried several of
the variations I have seen on this forum and others but nothing seems
to work. Can anyone help?

My current makefile looks like this
......
ifdef ROOTSYS
ifdef G4UI_USE_ROOT

CPPFLAGS += $(shell $(ROOTSYS)/bin/root-config --cflags)

ROOTLIBS = $(shell $(ROOTSYS)/bin/root-config --glibs) -lMinuit -lHtml
ROOTLIBS := $(filter-out -lNew,$(ROOTLIBS))
ROOTLIBS := $(filter-out -lThread,$(ROOTLIBS))
ROOTLIBS := $(filter-out -lpthread,$(ROOTLIBS))
LDFLAGS += $(shell root-config --libs)
LDLIBS += $(ROOTLIBS)
endif
endif
......

Thanks
Luke

Inline Depth:
 1 1
 All All
Outline Depth:
 1 1
 2 2
 All All
Add message: (add)

 Add Message Add Message
to: "ROOT and Geant4"

 Subscribe Subscribe

This site runs SLAC HyperNews version 1.11-slac-98, derived from the original HyperNews


[ Geant 4 Home | Geant 4 HyperNews | Search | Request New Forum | Feedback ]