Displaying 2 results from an estimated 2 matches for "_rf_length".
Did you mean:
rf_length
2000 Jun 26
2
Looking for protect()
...ng error messages:
Compiling...
out.c
Linking...
out.obj : error LNK2001: unresolved external symbol _Rf_unprotect
out.obj : error LNK2001: unresolved external symbol _Rf_protect
out.obj : error LNK2001: unresolved external symbol _Rf_allocMatrix
out.obj : error LNK2001: unresolved external symbol _Rf_length
I see, for example, that PROTECT(s) is #defined as protect(s) in R.h,
#ifndef R_NO_REMAP. If I do nothing, I get the errors above, and if I
#idefine R_NO_REMAP, I get the following errors, instead:
Compiling...
out.c
Linking...
out.obj : error LNK2001: unresolved external symbol _unprotect
out.ob...
2002 Nov 13
1
DLLs adding in C++ code
...al 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 of way in which the functions are exported is not
standardised between MS and GNU compilers.
I suppose that I can recompile all the R code in VC++ and then I would be
able to use my simple DLL but this would be a
major exercise and then I couldn't make my own r...