I'm trying to call the R k-means function from my MFC (VC++ 6.0) program. I have included the headers R.h and mva.h but I getting these compile errors : - ...\VC98\INCLUDE\math.h(514) : error C2894: templates cannot be declared to have 'C' linkage - ...\RW1051\SRC\INCLUDE\R_ext/RS.h(37) : warning C4005: 'ERROR' : macro redefinition - ...\VC98\INCLUDE\wingdi.h(93) : see previous definition of 'ERROR' - ...\RW1051\SRC\INCLUDE\Rinternals.h(821) : error C2244: '`global namespace'::AfxTrace' : unable to resolve function overload Is there any workaround like some source code specific for VisualC ++ ? -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- 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 _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._