search for: kg_cflags

Displaying 1 result from an estimated 1 matches for "kg_cflags".

Did you mean: pkg_cflags
2013 May 24
0
Rcpp with OpenMP - Need example Makevars
...an absolute newbie with writing C++ extensions and have not much understanding of the Makevars file, I am unsure what to write into it. Currently I have: ## Use the R_HOME indirection to support installations of multiple R version PKG_LIBS = `$(R_HOME)/bin/Rscript -e "Rcpp:::LdFlags()"` KG_CFLAGS = $(SHLIB_OPENMP_CXXFLAGS) PKG_LIBS = $(SHLIB_OPENMP_CXXFLAGS) ## -- compiling for OpenMP PKG_CXXFLAGS=-fopenmp ## ## -- linking for OpenMP PKG_LIBS= -fopenmp -lgomp Obviously compilation fails with error: R CMD INSTALL OpenMPTest Symbol not found: __ZTIN4Rcpp19index_out_of_boundsE With standard...