[Rcpp-devel] Fwd: cannot compile qtdensity example on windows

Dirk Eddelbuettel edd at debian.org
Mon May 19 21:14:16 CEST 2014

On 19 May 2014 at 19:04, Michele Gubian wrote:
| hi Dirk,
| I tried to do the following (I am not sure I understand your
| suggestion, since I am a newbie)
| - modified the order of -I options in g++. This made no difference.
| Probably this was not what you meant.
| -  I moved
| #include <RInside.h>
| after all the #include <QSomething> in  qtdensity.h
| Now the errors are even more, and different from before. A reduced
| output obtained by using g++ -E is reported below.
| Going back to the original error, g++ complains about Realloc and Free
| definitions. This is similar to the problem in this post:
| http://stackoverflow.com/questions/11588765/using-rcpp-with-windows-specific-includes
| but I don't know how to apply it to my case.

i)   Use the same #undef trick. Winston shows how in his own answer.

ii)  Set the compiler flag -fpermissive if need be, eg via an environment variable.


Dirk Eddelbuettel | edd at debian.org | http://dirk.eddelbuettel.com

More information about the Rcpp-devel mailing list