In $ROOTSYS/test directory, you can find a makefile to build all the test programs. You cannot specify *.so in your link process if you do not have all the libraries. As already reported, the test "Hello" does not require the EG, EGPythia libraries. Rene Brun Plamen S Boutachkov wrote: > > Hi Rooters, > I have tried to compile the hello.C example from the tutorial using the > CC compiler from sun4x_55. But it seems that I am not linking all > necessary libraries. Here is my make file: > > ______________________________________________________________ > CC = CC > RM = rm > LDOPTIONS = -w -O > LDLIBS = -L/usr/openwin/lib -lX11 -lm > LDRLIBS = $(ROOTSYS)/lib/*.so > GLLIBS = -L/lib -lGL -lGLU > CCS = -L/usr/ccs/lib -lgen > > STD_INCLUDES = -I$(ROOTSYS)/include > > OBJF = main.o > all:: run > > run : $(OBJF) > $(CC) -o run $(OBJF) $(LDOPTIONS) $(LDLIBS) $(LDRLIBS) $(CCS) > $(GLLIBS) > > main.o : main.c > $(CC) -c main.c $(LDOPTIONS) $(STD_INCLUDES) > > clean:: > $(RM) $(OBJF) > ________________________________________________________________ > And here is part of the ld output: > > Undefined first referenced > symbol in file > lulist_ > /afs/nd.edu/user6/nsl/users2/pboutach/root/lib/libEGPythia.so > pyevnt_ > /afs/nd.edu/user6/nsl/users2/pboutach/root/lib/libEGPythia.so > pyinit_ > /afs/nd.edu/user6/nsl/users2/pboutach/root/lib/libEGPythia.so > paro1_ > /afs/nd.edu/user6/nsl/users2/pboutach/root/lib/libEGVenus.so > lucomp_ > /afs/nd.edu/user6/nsl/users2/pboutach/root/lib/libEGPythia.so > cptl_ > /afs/nd.edu/user6/nsl/users2/pboutach/root/lib/libEGVenus.so > paro2_ > /afs/nd.edu/user6/nsl/users2/pboutach/root/lib/libEGVenus.so > paro3_ > /afs/nd.edu/user6/nsl/users2/pboutach/root/lib/libEGVenus.so > paro4_ > /afs/nd.edu/user6/nsl/users2/pboutach/root/lib/libEGVenus.so > lujets_ > /afs/nd.edu/user6/nsl/users2/pboutach/root/lib/libEGPythia.so > paro5_ > /afs/nd.edu/user6/nsl/users2/pboutach/root/lib/libEGVenus.so > > Do you know which lib should I add .... > > Greetings, > Plamen.
This archive was generated by hypermail 2b29 : Tue Jan 04 2000 - 00:43:36 MET