简体   繁体   English

使用rcpp / rinside包时如何在makefile中包含dll库

[英]how to include dll library with makefile, when using rcpp/rinside package

I am using R with Rinside/Rcpp package. 我在Rinside / Rcpp包中使用R。 I was able to generate .exe/.o/.dll files (A) from come C++ code I wrote based on Rinside package. 我能够从我基于Rinside包编写的C ++代码生成.exe / .o / .dll文件(A)。

However, later I found I would like to use A.dll as library for my other function. 但是,后来我发现我想将A.dll用作其他功能的库。 But I cannot figure out a way to do that. 但是我无法找到一种方法。 Any hints? 有什么提示吗? Or any doc out there that I can refer to? 还是我可以参考的任何文档?

Thanks 谢谢

RInside comes with four directories filled with examples, and three of those use, respectively RInside带有四个充满示例的目录,其中三个分别用于

  • MPI for parallel computing MPI用于并行计算
  • Qt for GUI apps Qt for GUI应用程序
  • Wt for Web apps Web应用程序的Wt

and each has a working Makefile showing you exactly how to set up linking with an external library, besides the R, Rcpp and RInside libraries already used. 每个文件都有一个可用的Makefile,除了已使用的R,Rcpp和RInside库外,还向您确切显示如何设置与外部库的链接。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM