Displaying 1 result from an estimated 1 matches for "_rprintf".
Did you mean:
rprintf
2008 Jul 30
1
Rprintf will not build in my C++ compiler
...------------------
#include <R.h>
void hello( int *n ) {
int i ;
for( i = 0 ; i < *n ; i++ ) {
Rprintf( "Hello, world!\n" ) ;
}
}
----------------------
When I try to build this code, I recieve 2 error massages,
"error LNK2019: unresolved external symbol _Rprintf referenced in function
"void _cdecl hello(int *n)" (?hello@@YAXPAH at Z)"
"fatal error LNK1120: 1 unresolved externals"
To be honest, I'm not exactly sure what these errors mean, I'm still
learning C++.
Any thoughts would be appreciated.
--
View this message in co...