I tested with Rtools 2.12, (or g++ (GCC) 4.5.0). The error from codecvt.h disappeared; still the error from extension_set.h remained.
C:\tR CMD SHLIB test.cpp g++ -I"C:/PROGRA~1/R/R-211~1.1/include" -O2 -Wall -c test.cpp -o test.o In file included from Person.pb.h:23:0, from test.cpp:5: C:/PROGRA~1/R/R-211~1.1/include/google/protobuf/extension_set.h: 293:10: error: expected identifier before '(' token C:/PROGRA~1/R/R-211~1.1/include/google/protobuf/extension_set.h: 293:10: error: 'parameter' declared as function returning a function C:/PROGRA~1/R/R-211~1.1/include/google/protobuf/extension_set.h: 293:10: error: expected ')' before ',' token test.cpp: In function 'void cpp_test(int*, double*, double*, int*, double*, double*)': make: *** [test.o] Error 1 -- You received this message because you are subscribed to the Google Groups "Protocol Buffers" group. To post to this group, send email to proto...@googlegroups.com. To unsubscribe from this group, send email to protobuf+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/protobuf?hl=en.