problem with linking test program at RedHat5.1

From: Ye Shuwei (yesw@ihp.phys.ethz.ch)
Date: Wed Dec 02 1998 - 15:49:08 MET


Hi, Rooters,

    I posted a message on the problem with linking test program at RedHat5.1.
Today I searched the web site, and still could not solve my problem.

    The system I am using is RedHat5.1, and compiler g++ is gcc version
egcs-2.91.57 19980901 (egcs-1.1 release). The root distribution  I downloaded
is "root_v2.00.Linux.2.0.33.egcs.tar.gz".

    The error message I got during linking the test programs :

g++ -shared -g Event.o EventDict.o -o libEvent.so
g++ -g MainEvent.o Event.o EventDict.o
-L/afs/cern.ch/exp/ams/offruns/yesw/root/
root2.13-egcs/lib -lNew -lBase -lCint -lClib -lCont -lFunc -lGraf -lGraf3d
-lHis
t -lHtml -lMatrix -lMeta -lMinuit -lNet -lPostscript -lProof -lTree -lUnix
-lZip
 -lm -ldl -rdynamic -o Event
MainEvent.o: In function `main':
MainEvent.o(.text+0x26b): undefined reference to `TFile::TFile(char const *,
cha
r const *, char const *, int)'
MainEvent.o(.text+0x48a): undefined reference to `TFile::TFile(char const *,
cha
r const *, char const *, int)'
MainEvent.o(.text+0x532): undefined reference to `TDirectory::TDirectory(char
co
nst *, char const *, char const *)'
collect2: ld returned 1 exit status
gmake: *** [Event] Error 1


  Thanks for your attention

--Shuwei



This archive was generated by hypermail 2b29 : Tue Jan 04 2000 - 00:34:40 MET