Under g++ 4.5.0 (MinGW) I get warnings when I compile the World example that uses reference classes. The example, warnings, and a fix in the form of a diff file are attached. This is based on the headers as of Rcpp 0.8.7.
Domnick
g++ -I"c:/PROGRA~1/R/R-212~1.0/include" -I../inst/include/ -O2 -Wall -c
world.cpp -o world.o
In file included from ../inst/include/Rcpp.h:68:0,
from world.cpp:1:
../inst/include/Rcpp/Module.h: In constructor
'Rcpp::class_<Class>::class_(const char*) [with Class = World]':
world.cpp:23:26: instantiated from here
../inst/include/Rcpp/Module.h:439:6: warning: 'Rcpp::class_<World>::specials'
will be initialized after
../inst/include/Rcpp/Module.h:438:19: warning:
'Rcpp::class_<World>::finalizer_class* Rcpp::class_<World>::finalizer_p
ointer'
../inst/include/Rcpp/Module.h:232:2: warning: when initialized here
world.cpp
Description: Binary data
Module.h.diffs
Description: Binary data
_______________________________________________ Rcpp-devel mailing list [email protected] https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel
