[R] programming with C++Builder 5

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

From: Edward Feng (efeng@cogeco.ca)
Date: Wed 31 Dec 2003 - 20:17:34 EST


Message-id: <001101c3cf7e$ee2a89e0$d2cf3918@fhty3>

Hi there,

I am using C++ Builder 5 to develop windows GUI interface for a R library package. I have to pass R objects to and from C functions and also evaluate them within C functions. But I always got linking error message of "unresolved external functions" with those internal functions or macros defined in Rinternals.h file. I can not find the reason.

I have included R.h and Rinternals.h, generated and added R.lib and R.def to the project. It seems no effects. I tried to directly use structure member instead of a macro, e.g. "LENGTH(OBJ)" with "((VECSEXP) (obj))->vecsxp.length", getting an error "Symbol VECSEXP not defined".

I noticed when generating R.lib and .def file, it reported warning messages about some duplicated functions within R.dll. But I am not sure whether it is the reason and how to solve it.

I am using C++Builder 5, R 1.7.0.1 windows version, used impdef.exe and implib.exe to generating lib and def files, and used VCL components to develop the windows interfaces.

Can you pleased to give me some advices?

Edward
        [[alternative HTML version deleted]]

______________________________________________
R-help@stat.math.ethz.ch mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help


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

This archive was generated by hypermail 2.1.3 : Thu 01 Jan 2004 - 09:21:04 EST