Building an R package that uses the GSL on Windows

非 Y 不嫁゛ 提交于 2019-12-09 06:04:26

You could follow the example package included with RcppGSL, even if don't plan on using Rcpp or RcppGSL.

It has this in its src/Makevars.win

## This assumes that the LIB_GSL variable points to working GSL libraries
PKG_CPPFLAGS=-I$(LIB_GSL)/include
PKG_LIBS=-L$(LIB_GSL)/lib -lgsl -lgslcblas 

The key here, as with some other packages is that you really, really want to rely on the prebuilt libraries.

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!