Hi, Tiago,

You need a Makevars file and I think you can use [1] for reference. You
need to let R know where to find the header files and lib.

Best,

KK

[1] https://github.com/cran/Rglpk/blob/master/src/Makevars.win

On Thu, Jun 9, 2016 at 8:36 AM, Tiago Fragoso <fragoso2...@gmail.com> wrote:

> Hello,
>
> I've been trying to use glpk with Rcpp on Windows, to no avail. Is there
> any way to directly link to GLPK from a C++ source file (like simply using
> #include <glpk.h>)?
>
>  I am aware that there are packages that use GLPK in R (Rglpk or glpkAPI
> for example), but I also got no clues from their source files. Any pointers
> will be of great help.
>
> Thanks!
>
> On Wed, Jun 8, 2016 at 5:19 PM, Tiago Fragoso <ming...@gmail.com> wrote:
>
>> Hello,
>>
>> I've been trying to use glpk with Rcpp on Windows, to no avail. Is there
>> any way to directly link to GLPK from a C++ source file (like simply using
>> #include <glpk.h>)?
>>
>>  I am aware that there are packages that use GLPK in R (Rglpk or glpkAPI
>> for example), but I also got no clues from their source files. Any pointers
>> will be of great help.
>>
>> Thanks!
>>
>> Tiago
>>
>>
>>
>
> _______________________________________________
> Rcpp-devel mailing list
> Rcpp-devel@lists.r-forge.r-project.org
> https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel
>



-- 
Qiang Kou
q...@umail.iu.edu
School of Informatics and Computing, Indiana University
_______________________________________________
Rcpp-devel mailing list
Rcpp-devel@lists.r-forge.r-project.org
https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel

Reply via email to