Re: [R] R crash with dyn.load

2008-12-18 Thread Martyn Plummer
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"); > } > } >

[R] R crash with dyn.load

2008-12-18 Thread Thibault Helleputte
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