search for: sharedlibextension

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

2011 Feb 08
1
Compiling a Tcl extension for an R package
...nterp, "hello", Hello_Cmd, NULL, NULL); return TCL_OK; } which can be compiled (under Ubuntu 10.04) with: gcc -shared -o hello.so -DUSE_TCL_STUBS -I/usr/include/tcl8.5/ hello.c -L/usr/lib/ -ltclstub8.5 -fPIC and used within an R session with library(tcltk) .Tcl('load ./hello[info sharedlibextension]') tcl('hello')
2010 Nov 08
0
Compiling Tcl extension C Code for an R package
...he Tcl version 8.5. I've added the gcc compile commands I use for Linux, OSX and Windows (minGW) at the beginning of the file. I'm struggling to dynamically load the extension under Windows 7. That is i tried to use load imgscale.dll where under Linux and OSX I use load ./imgscale[info sharedlibextension] Now my Questions: does anybody know how to deal with this C extension such that when I distribute the R-package over CRAN it will work on every OS? This includes the question why I can not load the extension in Windows. Is there an R package out there which uses a C extension for a Tcl function f...