gSystem or what?

Hi,

there is a way to make a kind of

gSystem->Load(“xxxLibrary.so”)

into a c++ program, that DONT have any main()? (it should a just function called by a FORTRAN program to read a TTree throught it…)

thanks
Maurizio

Hi Maurizio,

just give all the libraries to the dynamic linker (in your Makefile). Root has some nice feature to do this, like here:

CCPP_FLAGS += -I$(ROOTSYS)/include
LDFLAGS += $(shell root-config --new --libs)
LDFLAGS += $(shell root-config --new --glibs)

Hope this helps,
Oliver