Problem on SUN : how to use g++ to link with root libs ?

From: Patois Yannick (patois@ganil.fr)
Date: Tue Jun 15 1999 - 15:38:45 MEST


Hello,

I was using g++ to compile and link my analysis programs with the CERNLIB.

I'm now trying to use root on SUN, but I have some problems when linking,
either I got a lot of undefined symbols (if I chose libstd++ OR libC) or a
few multi defined symobls (cin cout clog cerr) if i include both.

Is there any workaround ? Should I port my programm to CC (it shouldnt be
that hard) ? Is there a g++ version of ROOT on SUN ? Is it difficult to
generate one from the sources ?

Thanx for any help,

	Yannick

PS : current configuration :
$  uname -a
SunOS gansr0 5.6 Generic_105181-08 sun4u sparc SUNW,Ultra-1

$ g++ --version
2.7.2

(root doesnt answer to the --version request, but a :
$ more Changelog 
gives the line :
//::>          VERSION  2.21/08   18/03/99 21.49.29

It has been downloaded and installed from :
ftp://root.cern.ch/root/root_v2.21.SunOS.5.6.tar.gz



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