Re: [Rd] problem in linking to libR.so with R 2.5.0

2007-11-06 Thread Prof Brian Ripley
IOStuff.h is not a public header, and neither are the entry points within it. See 'Writing R Extensions'. One is in the category: Entry points that are where possible (Windows and some modern Unix compilers/loaders when using @R{} as a shared library) not exported. On Wed, 7 Nov 2007, J

[Rd] problem in linking to libR.so with R 2.5.0

2007-11-06 Thread Jiangtian Li
Dear All, I tried to write a C++ program that uses R internals and I encounter "undefined reference" error when linking to libR.so. Here is an small example of the program test.cpp: extern "C" { #include #include int main(int argc, char** argv) { R_IoBufferInit(&R_ConsoleIob); return 0; }