Re: [Rd] R-loadable dll with minGW-compiled linked library

2011-08-29 Thread Dirk Eddelbuettel
On 30 August 2011 at 02:25, Ilana Lichtenstein wrote: | The tutorials on the web regarding creation of C++ dlls do not discuss | linking to libraries. Well, there are working examples among the 3200+ CRAN packages... | Thus my two questions are: | (1) Does anyone know how to compile a C++ progra

[Rd] R-loadable dll with minGW-compiled linked library

2011-08-29 Thread Ilana Lichtenstein
I am trying to create a dynamic library (dll) for loading into R with dyn.load command. I am trying to use the library libdai (a machine learning C++ library) and boost (C++ libraries) in my main C++ program. While I am able to compile the main C++ file I am using successfully into a dll, there is