[R] Cannot call R's ISNAN() from a C code in >1.7 versions.

About this list Date view Thread view Subject view Author view Attachment view

From: Paul Y. Peng (ypeng@math.mun.ca)
Date: Mon 24 May 2004 - 13:48:24 EST


Message-id: <40B17088.1000304@math.mun.ca>

Dear R users,

Have you experienced any difficulty in calling R's ISNAN() from a C
code? I have C codes including ISNAN() calls and they worked well until
I upgraded my R from 1.7 to later versions. When I tried to compile the
codes in the version 1.8 and 1.9, I got error messages like this:

   test.obj : error LNK2001: unresolved external symbol _isnan
   .\testR.dll : fatal error LNK1120: 1 unresolved externals
   NMAKE : fatal error U1077: 'link.exe' : return code '0x460'
   Stop.

I checked "Writing R Extensions" and did not find any changes in the API
entry point for ISNAN in the later versions. Could any one enlighten me
on why _isnan cannot be resolved? The compiler I used is MSVC++ 6.0 and
the platform is WinXP. Many thanks.

Paul.

______________________________________________
R-help@stat.math.ethz.ch mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html


About this list Date view Thread view Subject view Author view Attachment view

This archive was generated by hypermail 2.1.3 : Mon 31 May 2004 - 23:05:12 EST