conflicting declaration error when compiling in Rcpp, but g++ works fine
问题 I am trying to compile an Rcpp package that relies on the external library HDFql. First, I tried compiling a plain .cpp file following the directions in the reference manual, which worked fine : g++ example.cpp -I./include/HDFql ./HDFql/libHDFql.a -fopenmp -ldl where the ./include/HDFql folder contains the header files and ./HDFql/libHDFql.a is the static library. Then I tried doing the equivalent in an Rcpp package. My package directory structure is |- R |- script. r |- src |- HDFql |-