If you have read the docs, and you still have problems, you may also want to check if you''ve remembered to include the *.h files with C linkage. Eg.: #ifdef __cplusplus extern "C" { #endif #include <R.h> #include <Rinternals.h> #ifdef __cplusplus } #endif That solved my problems. Good luck! Fredrik. -----Oprindelig meddelelse----- Fra: rwurzer at progis.co.at <rwurzer at progis.co.at> Til: r-help at hypatia.math.ethz.ch <r-help at hypatia.math.ethz.ch> Dato: 8. maj 2000 16:15 Emne: [R] Using C/C++ Hi there! I?ve a problem with external c-code using in R. (Win2000 and R 1.0.0 for WinNT/Win2000) My question is: what are the steps to get a c-code-function work in R with .C . Now I have a c code out.c which includes R.h and Rinternals.h! So i think i have to make a .dll file with a compiler but there are some troubles like **out.obj : error LNK2001: Nichtaufgeloestes externes Symbol _Rf_unprotect **out.obj : error LNK2001: Nichtaufgeloestes externes Symbol _Rf_protect **out.obj : error LNK2001: Nichtaufgeloestes externes Symbol _Rf_allocMatrix **out.obj : error LNK2001: Nichtaufgeloestes externes Symbol _Rf_length Thank you for every help! Roland Wurzer PROGIS Postgasse 6 A-9500 Villach Austria rwurzer at progis.co.at http://www.progis.co.at/ -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._