Re: [Rcpp-devel] Rcpp and C++ mangling

2012-12-21 Thread jean . p
yes I am linking to these gretl libraries but for some reason removed the extern "C", which I shall now bring back! I suspected it was something like that but just wanted to be sure as always, thanks a lot! On Friday, December 21, 2012 at 1:15 PM, "Dirk Eddelbuettel" wrote:On 21 December 2012 at

[Rcpp-devel] Rcpp and C++ mangling

2012-12-21 Thread jean . p
hi, a quick question regarding a Rcpp function I wrote using an external library (gretl) : with the help of a makefile (adapted from the convolution Rcpp example), the code compiles just fine and turns into a shared object in linux (.so file) however, when I then try to load the newly created shar

Re: [Rcpp-devel] #include gretl libraries in Rcpp

2012-12-19 Thread jean . p
excellent ! this worked perfectlythanks a lot On Thursday, December 20, 2012 at 1:04 AM, "Romain Francois" wrote:Welcome in macro hell. Try this: #include #include #undef PARENT #include So one of these headers is defining a macro "PARENT" that conflicts with the name PARENT used in any.h

Re: [Rcpp-devel] #include gretl libraries in Rcpp

2012-12-19 Thread jean . p
thanks for the quick reply! first option did not change anything and second option seems to create new errors linked to Rcpp: jean@desktop:~/Documents/code experiments/gretl$ make PKG_CPPFLAGS="-I/usr/share/R/include -I/usr/lib/R/library/Rcpp/include -I/usr/include/libxml2 -I/usr/include/glib-2.0 -

[Rcpp-devel] #include gretl libraries in Rcpp

2012-12-19 Thread jean . p
Hi, I am having trouble getting Rcpp to compile c++ files including headers from the gretl statistical libraries for instance, here are the first lines of a test cpp file I have been trying to compile: #include extern "C" {#include #include } now, here is the result of a make command in linux (d