Hi, I am struggling with something and I can’t seem to find the answer. I tried searching the forums and google and going through other documentation, and I think maybe I am missing something that would lead me to understand the documentation in the way other people do.
I am trying to learn and understand RooStats, specifically by running some of the tutorials (like StandardHypoTestInvDemo.C).
I copied the code into a C++ file and tried compiling it. Here is the makefile I use:
[code]NAME = testroostats.exe
OBJECTS = $(NAME:.exe=.o)
CPPFLAGS = -I/usr/local/include -I$(shell root-config --incdir)
ROOTLIBS = $(shell root-config --libs)
HEADERS =
all: $(NAME)
$(OBJECTS): $(HEADERS)
$(NAME): $(OBJECTS)
g++ -o $(NAME) -O $(OBJECTS) $(ROOTLIBS) -L/usr/local/lib
.cpp.o:
g++ -c -O $(CPPFLAGS) -I$(ROOTSYS)/include $*.cpp[/code]
A similar makefile works for all of my other ROOT code that I use (using ROOT libraries in my C++ code). So I am not sure why it doesn’t work for this case.
I get the following compile error:
Any idea as to what might be going on?
Thanks for the help, I appreciate it.