the root distribution you have is compiledfor Sun's CC. Try recompiling your
code under CC or, probably more work, recompile ROOT under egcs. To do that get
the ROOT sources and use Makefile.solarisegcs to compiler ROOT.
Cheers, Fons.
Patois Yannick wrote:
>
> 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
-- Org: CERN, European Laboratory for Particle Physics. Mail: 1211 Geneve 23, Switzerland E-Mail: Fons.Rademakers@cern.ch Phone: +41 22 7679248 WWW: http://root.cern.ch/~rdm/ Fax: +41 22 7677910