[Rd] R-extension in unix system -- help to locate header files

Prof Brian Ripley ripley at stats.ox.ac.uk
Fri Apr 18 19:18:08 CEST 2008


I suggested you ask your 'unix' advisor for help.  This is *way* off topic 
for an R forum.

On Fri, 18 Apr 2008, Kyeongmi Cheon wrote:

>
>
> Thank you for your reply. I'm really new to this unix system and let me ask
> one more
> time to make sure if I understand it right.
>
> So I do it this way?
> 1. Change my codes to like below:
> #include <stdlib.h>
> #include <R.h>
> #include <Rdefines.h>
> #include <Rmath.h>
> #include <R_ext/Applic.h>
> #include <R_ext/PrtUtil.h>
>
> 2. and at the command line,
> set path = (/gpfs/data/local/linux/R-2.6.2/lib64/R/include $path)
> set path = (/gpfs/data/local/linux/R-2.6.2/lib64/R/include/R_ext $path)
>
> Then what is about -I flags? I googled it but couldn't find anything. I
> don't really
> know what you meant by "The search paths ....  supplemented by -I flags on
> the command
> line". How do I use it? Like this?
> set path = (/gpfs/data/local/linux/R-2.6.2/lib64/R/include $path) -I
>
>
> Thank you so much.
> Kyeongmi Cheon
>
> University of memphis
>
> ................
>
> You should never give full paths in #include statements.
>
> The search paths for include ('header') files are set by the compiler and
> supplemented by -I flags on the command line.  If your C compiler is
> unable to find <stdlib.h> something is badly wrong, and you need to ask
> your 'unix' advisor for help.  (BTW, these header files are OS-specific,
> and some of them will be compiler-specific -- on my Solaris Unix box cc
> and gcc use different versions of some of these headers.)
>
>
> -----
> Kyeongmi,
>
> University of Memphis
> -- 
> View this message in context: http://www.nabble.com/R-extension-in-unix-system----help-to-locate-header-files-tp16760424p16763526.html
> Sent from the R devel mailing list archive at Nabble.com.
>
> ______________________________________________
> R-devel at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-devel
>

-- 
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



More information about the R-devel mailing list