search for: imgscal

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

Did you mean: imgscale
2010 Aug 30
1
Including C Code for Tcl and Tk in an R package
...sion? (such that I can submit the package to CRAN). Once the two files would be compiled I could load the correct function by checking with > library(tcltk) > .Tcl('set tcl_version') which tcl version R connects to? For example the gcc command I call under Ubuntu is: gcc -shared -o imgscale.so -DUSE_TCL_STUBS -I/usr/include/tcl8.5/ imagescale_85.c -L/usr/lib/ -ltclstub8.5 -fPIC and gcc -shared -o imgscale.so -DUSE_TCL_STUBS -I/usr/include/tcl8.4/ imagescale_84.c -L/usr/lib/ -ltclstub8.4 -fPIC Thanks, Adrian Waddell
2010 Nov 08
0
Compiling Tcl extension C Code for an R package
...w.waddell.ch/RnavGraph/imagescale_adrian_85.c The file works with the 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...