[Rcpp-devel] Patch for Reference Class warnings

Dominick Samperi djsamperi at gmail.com
Thu Oct 28 18:22:16 CEST 2010


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.r-forge.r-project.org/pipermail/rcpp-devel/attachments/20101028/bcde97f3/attachment.htm>
-------------- next part --------------
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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: world.cpp
Type: application/octet-stream
Size: 590 bytes
Desc: not available
URL: <http://lists.r-forge.r-project.org/pipermail/rcpp-devel/attachments/20101028/bcde97f3/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Module.h.diffs
Type: application/octet-stream
Size: 799 bytes
Desc: not available
URL: <http://lists.r-forge.r-project.org/pipermail/rcpp-devel/attachments/20101028/bcde97f3/attachment-0001.obj>


More information about the Rcpp-devel mailing list