search for: rf_unprotect

Displaying 19 results from an estimated 19 matches for "rf_unprotect".

2004 Jun 16
1
Compiling C++ package source: linking problem?
...del = NEW_NUMERIC(4)); UNPROTECT(1); return anotherModel; } An example of compiler feedback from R CMD SHLIB (I have mingw 3.1.0): ...: undefined reference to 'Rf_allocVector(unsigned,int)' ...: undefined reference to 'Rf_protect(SEXPREC*)' ...: undefined reference to 'Rf_unprotect(int)' Can anybody tell me what the matter is? Did I miss something? My PATH variable is as follows: C:\R\tools;C:\Perl\bin\;C:\mingw\bin;c:\R\rw1090\bin;C:\Program Files\MiKTeX\miktex\bin;...;C:\Program Files\HTML Help Workshop I should mention that I'm a complete R and C++ newbie; any...
2002 Nov 13
1
DLLs adding in C++ code
...hand. However, although I have previously sucessfully created DLL functions for SPlus I have been unable to do this using the supplied R code and binaries. I get the Link time error saying that the R functions can not be found. e.g. error LNK2001: unresolved external symbol "void __stdcall Rf_unprotect(int)" (?Rf_unprotect@@YGXH at Z) error LNK2001: unresolved external symbol _REAL at 4 error LNK2001: unresolved external symbol _Rf_protect at 4 error LNK2001: unresolved external symbol _Rf_allocMatrix at 12 error LNK2001: unresolved external symbol _Rf_length at 4 I suspect this is because...
2006 Nov 27
1
R.DLL mapping by P/Invoke
...[DllImport("R.DLL", /*CallingConvention = CallingConvention.Cdecl,*/ CharSet = CharSet.Ansi)] static extern IntPtr Rf_protect(IntPtr ptr); [DllImport("R.DLL", /*CallingConvention = CallingConvention.Cdecl,*/ CharSet = CharSet.Ansi)] static extern void Rf_unprotect(int l); [DllImport("R.DLL", /*CallingConvention = CallingConvention.Cdecl,*/ CharSet = CharSet.Ansi)] static extern void Rf_unprotect_ptr(IntPtr ptr); //- R Parser/Eval [DllImport("R.DLL", /*CallingConvention = CallingConvention.Cdecl,*/ CharSet...
2009 Nov 13
0
Problem building R 2.10 release
...seQR.c:(.text+0x6e7): undefined reference to `INTEGER' sparseQR.c:(.text+0x6f6): undefined reference to `Rf_install' sparseQR.c:(.text+0x70b): undefined reference to `R_do_slot' sparseQR.c:(.text+0x713): undefined reference to `REAL' sparseQR.c:(.text+0x7c5): undefined reference to `Rf_unprotect' sparseQR.o: In function `sparseQR_resid_fitted': sparseQR.c:(.text+0x801): undefined reference to `Rf_protect' sparseQR.c:(.text+0x811): undefined reference to `Rf_install' sparseQR.c:(.text+0x823): undefined reference to `R_do_slot' sparseQR.c:(.text+0x866): undefined referenc...
2010 Aug 23
1
Speed improvement to PROTECT, UNPROTECT, etc.
...ze) \ R_PPStack[R_PPStackTop++] = tmp_prot_sexp; \ else \ Rf_protect(tmp_prot_sexp); \ } while (0) #define UNPROTECT(n) (R_PPStackTop >= (n) ? \ (void) (R_PPStackTop -= (n)) : Rf_unprotect(n)) #define PROTECT_WITH_INDEX(x,i) do { \ PROTECT(x); \ *(i) = R_PPStackTop - 1; \ } while (0) #define REPROTECT(x,i) ( (void) (R_PPStack[i] = x) ) Unfortunately, one can't just change th...
2007 Oct 17
0
Using R.dll in .NET IPC
...[DllImport("R.DLL", /*CallingConvention = CallingConvention.Cdecl,*/ CharSet = CharSet.Ansi)] static extern IntPtr Rf_protect(IntPtr ptr); [DllImport("R.DLL", /*CallingConvention = CallingConvention.Cdecl,*/ CharSet = CharSet.Ansi)] static extern void Rf_unprotect(int l); [DllImport("R.DLL", /*CallingConvention = CallingConvention.Cdecl,*/ CharSet = CharSet.Ansi)] static extern void Rf_unprotect_ptr(IntPtr ptr); //- R Parser/Eval [DllImport("R.DLL", /*CallingConvention = CallingConvention.Cdecl,*/ CharSet...
2010 May 06
1
R on kdeedu-svn library problem
...$SOURCES/kdeedu/cantor/src/backends/R/rserver/rserver.cpp:226: undefined reference to `R_ParseVector' $SOURCES/kdeedu/cantor/src/backends/R/rserver/rserver.cpp:226: undefined reference to `Rf_protect' $SOURCES/kdeedu/cantor/src/backends/R/rserver/rserver.cpp:261: undefined reference to `Rf_unprotect' $SOURCES/kdeedu/cantor/src/backends/R/rserver/rserver.cpp:275: undefined reference to `Rf_PrintValue' $SOURCES/kdeedu/cantor/src/backends/R/rserver/rserver.cpp:234: undefined reference to `VECTOR_ELT' $SOURCES/kdeedu/cantor/src/backends/R/rserver/rserver.cpp:234: undefined reference...
2004 Feb 17
2
interfacing C++ using .Call
...tect(SEXPREC*)' test.a(test.o.b)(.text+0xf5):test.cpp: undefined reference to `Rf_getAttrib(SEXPREC*, SEXPREC*)' test.a(test.o.b)(.text+0x107):test.cpp: undefined reference to `Rf_setAttrib(SEXPREC*, SEXPREC*, SEXPREC*)' test.a(test.o.b)(.text+0x113):test.cpp: undefined reference to `Rf_unprotect(int)' test.a(test.o.b)(.text+0x129):test.cpp: undefined reference to `VECTOR_ELT(SEXPREC*, int)' test.a(test.o.b)(.text+0x132):test.cpp: undefined reference to `SETCADR(SEXPREC*, SEXPREC*)' test.a(test.o.b)(.text+0x13e):test.cpp: undefined reference to `Rf_eval(SEXPREC*, SEXPREC*)...
2002 Jan 02
1
Building R-1.4 on Tru64
...he text from bug.report() from R-1.3.1 at the end.) The relevant part of the log is below. Any ideas? gcc -shared -o methods.so do_substitute_direct.o methods_list_dispatch.o method_meta_data.o slot.o -L/usr/local/lib /usr/ucb/ld: Warning: Unresolved: TYPEOF Rf_error Rf_protect Rf_substitute Rf_unprotect Rf_duplicate Rf_VectorToPairList R_NilValue Rf_NewEnvironment R_set_standardGeneric_ptr R_GlobalEnv R_set_quick_method_check Rf_install Rf_allocVector LOGICAL R_PreserveObject Rf_mkChar SET_STRING_ELT Rf_findVar R_UnboundValue VECTOR_ELT R_NamesSymbol Rf_getAttrib Rf_length STRING_ELT R_CHAR R_do_s...
2002 Jan 17
1
MKL seems to beat ATLAS, but some problems... (was RE: li nkin g R against MKL)
...Rf_coerceVector (./lapack.so) undefined symbol: Rf_mkChar (./lapack.so) undefined symbol: R_alloc (./lapack.so) undefined symbol: SET_STRING_ELT (./lapack.so) undefined symbol: Rf_allocVector (./lapack.so) undefined symbol: R_CHAR (./lapack.so) undefined symbol: Rf_unprotect_ptr (./lapack.so) undefined symbol: SET_VECTOR_ELT (./lapack.so) undefined symbol: Rf_isMatrix (./lapack.so) undefined symbol: R_setLapackRoutines (./lapack.so) undefined symbol: Rf_protect (./lapack.so) undefined symbol: VECTOR_ELT (./lapack.so) undefined symbol: Rf_asLogical...
2002 Jan 17
1
MKL seems to beat ATLAS, but some problems... (was RE: li nkin g R against MKL)
...Rf_coerceVector (./lapack.so) undefined symbol: Rf_mkChar (./lapack.so) undefined symbol: R_alloc (./lapack.so) undefined symbol: SET_STRING_ELT (./lapack.so) undefined symbol: Rf_allocVector (./lapack.so) undefined symbol: R_CHAR (./lapack.so) undefined symbol: Rf_unprotect_ptr (./lapack.so) undefined symbol: SET_VECTOR_ELT (./lapack.so) undefined symbol: Rf_isMatrix (./lapack.so) undefined symbol: R_setLapackRoutines (./lapack.so) undefined symbol: Rf_protect (./lapack.so) undefined symbol: VECTOR_ELT (./lapack.so) undefined symbol: Rf_asLogical...
2010 Nov 29
0
Updates for xlsReadWrite (1.5.3) and xlsReadWritePro (1.6.1/3)
...s for R2.9 - R2.12) * (the full download listing is here: http://dl.dropbox.com/u/2602516/swissrpkg/index.html) ###### Changes in xlsReadWrite 1.5.3 (0b78c1) ###### - *important*: fix AV when reading large data (issue #110: in a subroutine a pointer (pSExp) had been 'riUnprotect'ed (Rf_unprotect) too early, the total protect/unprotect count was correct (of course) but when 'anyDuplicated' got called in the subroutine, the control flow switched to R and R then had the possibility to free 'my' pointer. Not good). Thanks to the (anonymous) user which submitted...
2004 Mar 13
0
64bit build on IBM
...ld: 0711-317 ERROR: Undefined symbol: .Rf_protect ld: 0711-317 ERROR: Undefined symbol: .Rf_str2type ld: 0711-317 ERROR: Undefined symbol: .Rf_begincontext ld: 0711-317 ERROR: Undefined symbol: .Rf_endcontext ld: 0711-317 ERROR: Undefined symbol: .Rf_setAttrib ld: 0711-317 ERROR: Undefined symbol: .Rf_unprotect ld: 0711-317 ERROR: Undefined symbol: .R_setX11Routines ld: 0711-317 ERROR: Undefined symbol: .vmaxget ld: 0711-317 ERROR: Undefined symbol: .Rf_asReal ld: 0711-317 ERROR: Undefined symbol: .Rf_isValidString ld: 0711-317 ERROR: Undefined symbol: .Rf_warningcall ld: 0711-317 ERROR: Undefined symbol:...
2007 Feb 25
3
R/C++/memory leaks
Dear all, I have wrapped a C++ function in an R package. I allocate/deallocate memory using C++ 'new' and 'delete'. In order to allow user interrupts without memory leaks I've moved all the delete statements required after an interrupt to a separate C++ function freeMemory(), which is called using on.exit() just before the .C() call. I am concerned about the
2008 May 07
1
[BioC] RCurl loading problem with 64 bit linux distribution
...eval U Rf_getAttrib U Rf_install U Rf_length U Rf_mkChar U Rf_mkCharCE U Rf_mkCharLen U Rf_mkString U Rf_protect U Rf_setAttrib U Rf_unprotect U Rf_warning U SETCAR U SET_STRING_ELT U SET_VECTOR_ELT U STRING_ELT U TYPEOF U VECTOR_ELT 0000000000208040 d VersionInfoFieldNames 00000000002080c0 a _DYNAMIC 0000000000208308 a _...
2008 May 07
1
[BioC] RCurl loading problem with 64 bit linux distribution
...eval U Rf_getAttrib U Rf_install U Rf_length U Rf_mkChar U Rf_mkCharCE U Rf_mkCharLen U Rf_mkString U Rf_protect U Rf_setAttrib U Rf_unprotect U Rf_warning U SETCAR U SET_STRING_ELT U SET_VECTOR_ELT U STRING_ELT U TYPEOF U VECTOR_ELT 0000000000208040 d VersionInfoFieldNames 00000000002080c0 a _DYNAMIC 0000000000208308 a _...
2002 Jul 11
1
dyn.load tcl/tk (PR#1774)
...MENTED Rf_isBlankString R_strtod R_GlobalEnv R_NilValue R_NaString Rf_coerceVector Rf_PairToVectorList Rf_VectorToPairList Rf_allocString Rf_allocVector Rf_allocList Rf_asInteger Rf_duplicate Rf_GetOption Rf_install Rf_isList Rf_isVector Rf_length Rf_listAppend Rf_nthcdr Rf_PrintDefaults Rf_protect Rf_unprotect SET_STRING_ELT SET_TAG SETCAR SETCDR Rf_begincontext Rf_endcontext Rf_str2type Rf_errorcall Rf_EncodeElement vmaxget vmaxset R_alloc Rprintf Rf_elt Rf_findVar Rf_GetDevice devNumber GEplayDisplayList addInputHandler getInputHandler removeInputHandler R_InputHandlers Rf_KillDevice R_setX11Routines g...
2000 Apr 26
2
Cross compiling a package for Windows on Linux
...s.o)(.text+0x20f):nls.c: undefined reference to `Rf_isNewList' nls.a(nls.o)(.text+0x223):nls.c: undefined reference to `Rf_error' ... (many lines deleted) nls.a(nls.o)(.text+0xb52):nls.c: undefined reference to `Rf_setAttrib' nls.a(nls.o)(.text+0xb5c):nls.c: undefined reference to `Rf_unprotect' make[2]: *** [nls.dll] Error 1 make[2]: Leaving directory `/usr/src/r-devel/src/library/nls/src' make[1]: *** [src/nls.dll] Error 2 make[1]: Leaving directory `/usr/src/r-devel/src/library/nls' make: *** [pkg-nls] Error 2 Do I need to go back and build a cross-compiler for g77 an...
2015 Aug 14
2
Build R on Haiku
Hi R-devel, I'm trying to get R 3.2.1 working on Haiku (an open source OS inspired by BeOS, not Linux based) on i586. With a few small changes to library paths and ifdefs I am able to get a seemingly working R binary. The build process stops with the 'tools' package. The last lines from make are below. Does anyone have any tips? I'm rather new to debugging at this low level. Are