Makefile libraries issue

Hello,

I’m modifying an analysis package that uses compiled c++ code, but I cannot get it to compile on the system I’m working on.

My makefile reads (the beginning, the rest is just the list of objects and compile commands):

CXX             = g++  
CXXFLAGS        = -O -Wall -fPIC -ggdb -m32  
LD              = g++  
ROOTCFLAGS      = -I$(ROOTSYS)/include  
ROOTLIBS        = -L$(ROOTSYS)/lib  $(shell $(ROOTSYS)/bin/root-config --libs) 
CXXFLAGS        += $(ROOTCFLAGS)   
LIBS            = $(ROOTLIBS) 

Is there a problem with the Makefile or with the root setup?

Thanks for any help.

Hi,

You might need also pass -m32 to the linker (add it to ROOTLIBS)
(or you ROOT library is compiled with -m64, in which case you need to
put -m64 in CXXFLAGS)

Cheers,
Philippe.