Skip to content
Prev 9026 / 12125 Next

[R-pkg-devel] Another DLL requires the use of native symbols thread

Sorry to kind of repeat this but I really didn't understand the issues with the prior thread and how it relates to my issue.

I'm getting the error message in

    B_T <- BT(Temp)
    Error in BT(Temp) : DLL requires the use of native symbols
    Execution halted

And frankly, I have no idea what this means.  The function call is pretty simple and meets the requirement of .Fortran

res <- .Fortran('BT', as.double(Temp), as.double(y), as.integer(icode))

and the following matches the R-ext's method for using registration:

extern void F77_NAME(bt)(double *T, double *B, int *icode);

void R_init_IAPWS95(DllInfo *dll)
{
  R_registerRoutines(dll, NULL, NULL, FortranEntries, NULL);
  R_useDynamicSymbols(dll, FALSE);
  R_forceSymbols(dll, TRUE);
}

With

static const R_FortranMethodDef FortranEntries[] = {
  {"bt",        (DL_FUNC) &F77_NAME(bt),        3},
  {NULL, NULL, 0}
};

Furthermore the NAMESPACE includes:

useDynLib(splines, .registration = TRUE, .fixes = "C_")


which matches R-ext.

Since this is only occurring on the Linux versions for the software and I use windows, can someone point me in the right direction to fix this error?

Shawn Way
Message-ID: <SA1PR13MB48780AED002BFE3D1A6CA460C3859@SA1PR13MB4878.namprd13.prod.outlook.com>
In-Reply-To: <SA1PR13MB48789DAF905496F22996CF0AC3849@SA1PR13MB4878.namprd13.prod.outlook.com>