Re: problem with linking test program at RedHat5.1

From: Matthew R. Nelson (mrn@supermta.hg.med.umich.edu)
Date: Wed Dec 02 1998 - 16:27:24 MET


Ye and Rooters,

I am successfully using egcs-1.1 with root.  What you have to do is
recompile root as described on the download page, i.e. download the RH5.1
binary version of root and the root SDK, cd to the src directory, link
Makefile.linuxegcs to Makefile, then make; make install.

No problems after that (except with the games demo).

Good luck,

Matt
----------------------------------------------------------------------------
Matthew R. Nelson
Dept. of Human Genetics             http://www-personal.umich.edu/~ticul/
University of Michigan              email: ticul@umich.edu
4711 Medical Science II             phone: (734) 647-3151
Ann Arbor, MI  48109-0618           fax:   (734) 763-5477
----------------------------------------------------------------------------

On Wed, 02 Dec 1998, Rene Brun wrote:
>The Linux egcs binary tar file has been compiled with egcs
>   version egcs-2.90.27 980315 (egcs-1.0.2 release)
>
>You cannot mix code compiled with egcs1.1 and egcs1.0.
>We will support soon Linux with egcs1.1. Root has already been
>compiled with egcs1.1 on alphas and sgi.
>
>I would suggest you install egcs-1.0.2 meanwhile.
>
>Rene Brun
>
>
>Ye Shuwei wrote:
>> 
>> 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