Re: [ROOT] error of make /test/MainEvent.cxx

From: Rene Brun (Rene.Brun@cern.ch)
Date: Sat Mar 29 2003 - 16:34:28 MET


Hi,

It looks like you are compiling with a version of gcc
incompatible with the version used to compile ROOT itself.
For example, if you use the old compiler egcs1.1, you cannot
use a ROOT library compiled with gcc2.95, etc

Rene Brun

On Sat, 29 Mar 
2003, 
liangxh wrote:

> 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