search for: negtwice

Displaying 2 results from an estimated 2 matches for "negtwice".

Did you mean: negtive
1998 Feb 26
2
R-beta: question on dyn.loaded code
...ies for R, is it possible to call C/Fortran subroutines from other dynamically loaded code? The following example crashes R: ********* fn1.c ***************** void twice(int *i) { *i = 2 * *i; } ********************************* ********* fn2.c ***************** extern int twice(int *i); void negtwice(int *i) { *i = -1 * twice(i); } ********************************* $ cc -fpic -c fn1.c $ ld -shared fn1.o -o fn1.so $ cc -fpic -c fn2.c $ ld -shared fn2.o -o fn2.so $ R R : Copyright 1997, Robert Gentleman and Ross Ihaka Version 0.61.1 Alpha (December 21, 1997) R is free software and comes with...
1998 Feb 26
2
R-beta: question on dyn.loaded code
...ies for R, is it possible to call C/Fortran subroutines from other dynamically loaded code? The following example crashes R: ********* fn1.c ***************** void twice(int *i) { *i = 2 * *i; } ********************************* ********* fn2.c ***************** extern int twice(int *i); void negtwice(int *i) { *i = -1 * twice(i); } ********************************* $ cc -fpic -c fn1.c $ ld -shared fn1.o -o fn1.so $ cc -fpic -c fn2.c $ ld -shared fn2.o -o fn2.so $ R R : Copyright 1997, Robert Gentleman and Ross Ihaka Version 0.61.1 Alpha (December 21, 1997) R is free software and comes with...