[R] loading igraph package on Solaris

Gabor Csardi csardi at rmki.kfki.hu
Wed Jan 9 09:17:44 CET 2008

On Wed, Jan 09, 2008 at 08:03:59AM +0000, Prof Brian Ripley wrote:
> You say you are using gcc, but that would be relevant to the Sun C++ 
> compiler (see the R-admin manual, which also says that configure adds it 
> where needed).  So which C++ compiler is this?  The symptoms do look as if 
> you are mixing incompatible C and C++ compilers.
> I don't have anything like as old components as you have, but igraph 
> contains C++ errors and will not compile under the SunStudio 12 C++ 
> compiler (reported to the maintainer a long time ago).  It did work for me 
> just now using gcc/g++ 4.2.1 and R 2.6.1 patched.

Brian, indeed, i made the fixes you sent me, but it seems that only 
in the development branch of igraph not in the one which is on CRAN.
Anyway, i'll fix them in both. Thanks again.

Peter, here are the changes you need to make to the source if compiling
with the Sun Studio compiler:
(although it seems that the easiest is compiling with gcc/g++).


> > Any ideas? My system info is:
> > SunOS 5.10 i386  Generic_120012-14 09-19-2007
> > gcc (GCC) 3.4.3 (csl-sol210-3_4-branch+sol_rpath)
> > R version 2.5.1 (2007-06-27)
> > igraph version 0.4.5 (with a few changes to compile on Solaris)
> Since no changes are needed to compile under gcc, this suggests you are 
> not using gcc's C++ compiler.
> > thanks,
> > Peter
> -- 
> Brian D. Ripley,                  ripley at stats.ox.ac.uk
> Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
> University of Oxford,             Tel:  +44 1865 272861 (self)
> 1 South Parks Road,                     +44 1865 272866 (PA)
> Oxford OX1 3TG, UK                Fax:  +44 1865 272595
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.

Csardi Gabor <csardi at rmki.kfki.hu>    MTA RMKI, ELTE TTK

More information about the R-help mailing list