Hi Elisa,
You forget to add the list of Root libs in your link sequence. It should be:
g++ -O MainEvent.o libEvent.so -L/user/brun/root/lib -lNew -lCore -lCint -lHist
-lGraf -lGraf3d -lGpad -lTree -lRint -lPostscript -lMatrix -lPhysics -lm -ldl
-lpthread -rdynamic \
-o Event
When you are in $ROOTSYS/test directory, you can use the makefile
and do:
make Event
Rene Brun
Elisa Falchini wrote:
>
> to whom I concern,
> I've already downloaded the version of root root_v2.25.02.OSF1.V4.0 and
> tried to install it on an Alpha/OSF1 with the gcc compiler's version
> egcs-2.91.66 19990314 (egcs-1.1.2 release).
> The interactive version works fine as well as the examples in the
> directory called tutorials, while I don't manage to run the makefile in
> the test directory.
> The output is as follows:
>
> g++ -O -Wall -fPIC -I/cern/pro/bin/root/include -c Event.cxx
> g++ -O -Wall -fPIC -I/cern/pro/bin/root/include -c EventDict.cxx
> g++ -Wl,-expect_unresolved,* -shared -O Event.o EventDict.o -o
> libEvent.so
> libEvent.so done
> g++ -O -Wall -fPIC -I/cern/pro/bin/root/include -c MainEvent.cxx
> g++ -O MainEvent.o libEvent.so -o Event
> /bin/ld:
> Unresolved:
> TROOT::TROOT(char const *, char const *, void (**)(void))
> TROOT::~TROOT(void)
> TStopwatch::TStopwatch(void)
> TStopwatch::~TStopwatch(void)
> TStopwatch::Start(unsigned char)
> TStorage::ObjectAlloc(unsigned long)
> TFile::TFile(char const *, char const *, char const *, int)
> TStopwatch::RealTime(void)
> TStopwatch::Continue(void)
> gRandom
> TH1F::TH1F(char const *, char const *, int, double, double)
> TDirectory::TDirectory(char const *, char const *, char const *)
> TTree::TTree(char const *, char const *, int)
> TStopwatch::Stop(void)
> TStopwatch::CpuTime(void)
> g++ -O -Wall -fPIC -I/cern/pro/bin/root/include -c Event.cxx
> g++ -O -Wall -fPIC -I/cern/pro/bin/root/include -c EventDict.cxx
> g++ -Wl,-expect_unresolved,* -shared -O Event.o EventDict.o -o
> libEvent.so
> libEvent.so done
> g++ -O -Wall -fPIC -I/cern/pro/bin/root/include -c MainEvent.cxx
> g++ -O MainEvent.o libEvent.so -o Event
> /bin/ld:
> Unresolved:
> TROOT::TROOT(char const *, char const *, void (**)(void))
> TROOT::~TROOT(void)
> TStopwatch::TStopwatch(void)
> TStopwatch::~TStopwatch(void)
> TStopwatch::Start(unsigned char)
> TStorage::ObjectAlloc(unsigned long)
> TFile::TFile(char const *, char const *, char const *, int)
> TStopwatch::RealTime(void)
> TStopwatch::Continue(void)
> gRandom
> TH1F::TH1F(char const *, char const *, int, double, double)
> TDirectory::TDirectory(char const *, char const *, char const *)
> TTree::TTree(char const *, char const *, int)
> TStopwatch::Stop(void)
> TStopwatch::CpuTime(void)
> TObject::~TObject(void)
> TObject::operator delete(void *)
> collect2: ld returned 1 exit status
> *** Exit 1
> Stop.
>
> Have yougot any suggestion? In case please let me know.
> Thanks for your attention.
>
> Best regards
>
> Elisa
This archive was generated by hypermail 2b29 : Tue Jan 02 2001 - 11:50:32 MET