dear roottalk:
Because I cant write the $ROOTSYS directory,I copy all the files in $ROOTSYS/test/ to my own directory ~/root/test. I want make the examples on myself.It doesnt run. The output is
as following:
$ gmake
g++ -O -Wall -fPIC -D_REENTRANT -I/cern/root/include -c Event.cxx
g++ -O -Wall -fPIC -D_REENTRANT -I/cern/root/include -c EventDict.cxx
g++ -shared -O Event.o EventDict.o -o libEvent.so
libEvent.so done
g++ -O -Wall -fPIC -D_REENTRANT -I/cern/root/include -c MainEvent.cxx
g++ -O MainEvent.o libEvent.so -L/cern/root/lib -lCore -lCint -lHist \
-lGraf -lGraf3d -lGpad -lTree -lRint -lPostscript -lMatrix -lPhysics -lm \
-ldl -lpthread -rdynamic -o Event
MainEvent.o: In function `main':
MainEvent.o(.text+0x326): undefined reference to \
`TNetFile::TNetFile(char const *, char const *, char const *, int, int)'
MainEvent.o(.text+0x373): undefined reference to \
`TFile::TFile(char const *, char const *, char const *, int)'
MainEvent.o(.text+0x5c2): undefined reference to \
`TNetFile::TNetFile(char const *, char const *, char const *, int, int)'
MainEvent.o(.text+0x615): undefined reference to \
`TFile::TFile(char const *, char const *, char const *, int)'
MainEvent.o(.text+0x6ce): undefined reference to \
`TDirectory::TDirectory(char const *, char const *, char const *)'
collect2: ld returned 1 exit status
gmake: *** [Event] Error 1
what is wrong with this?
thank you very much!
liangxh
liangxh@mail.ihep.ac.cn
2003-03-29
This archive was generated by hypermail 2b29 : Thu Jan 01 2004 - 17:50:10 MET