From murdoch at stats.uwo.ca  Thu Mar 12 22:01:41 2009
From: murdoch at stats.uwo.ca (Duncan Murdoch)
Date: Thu, 12 Mar 2009 17:01:41 -0400
Subject: [Rd] Error compiling rgl package
In-Reply-To: <49B95F7E.5020406@scs.carleton.ca>
References: <49B95F7E.5020406@scs.carleton.ca>
Message-ID: <49B97835.2090004@stats.uwo.ca>

Mohammad Nikseresht wrote:
> Hi,
>
> I receive the following error while I try to install rgl package:
>
> CC -xtarget=native64 -I/opt/R-2.8.1/lib/R/include 
> -I/opt/SUNWhpc/HPC8.1/sun/include -DHAVE_PNG_H -I/usr/include/libpng12 
> -DHAVE_FREETYPE -Iext/ftgl -I/usr/sfw/include/freetype2 
> -I/usr/sfw/include -Iext -I/opt/SUNWhpc/HPC8.1/sun/include 
> -I/usr/sfw/include -I/opt/csw/include    -KPIC  -O -c Background.cpp -o 
> Background.o
> "math.h", line 47: Error: modf is not a member of file level.
> "math.h", line 48: Error: modff is not a member of file level.
> "Shape.hpp", line 58: Error: The function "strncpy" must have a prototype.
> 3 Error(s) detected.
>
> I am using Sun studio 12.
> I suspect that this is an incompatibility between g++ and Sun studio CC.
> I would appreciate any you could share your experience with me.
>   

I have no experience with Sun compilers; I have only compiled rgl in 
gcc.  I'd be happy to accept patches that make it more portable, but I 
can't test them.

Duncan Murdoch



[Rd] Error compiling rgl package
Duncan Murdoch