On Thu, 2008-12-18 at 17:18 +0100, Thibault Helleputte wrote:
> Hello,
>
> I try to incorporate C code in R.
>
> suppose I have the following C code:
>
> #include
> #include
>
> int main(int *n)
> {
> int i;
> for(i=0; i < *n; i++) {
> printf("Hello, world!\n");
> }
> }
>
Hello,
I try to incorporate C code in R.
suppose I have the following C code:
#include
#include
int main(int *n)
{
int i;
for(i=0; i < *n; i++) {
printf("Hello, world!\n");
}
}
in a file named "hello.c". First I make:
g++ -c hello.c -o hello.o -I
"/Library/Frameworks/R
2 matches
Mail list logo