A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/eddelbuettel/rprotobuf/issues/89 below:

Build fails on R 4.2.0, linux with RCpp 1.0.8.3 · Issue #89 · eddelbuettel/rprotobuf · GitHub

I've got a working build on R 4.1.3, but the update to R 4.2.0 caused issues:
The RCpp is version is a freshly installed 1.0.8.3

mutators.cpp: In function ‘void rprotobuf::CHECK_messages(const google::protobuf::FieldDescriptor*, SEXP)’:
mutators.cpp:374:13: error: ‘string’ was not declared in this scope; did you mean ‘std::string’?
  374 |             string message = "List element " + s + " is not a message " +
      |             ^~~~~~
      |             std::string
In file included from /usr/include/c++/11.2.0/string:39,
                 from rprotobuf.h:28,
                 from mutators.cpp:19:
/usr/include/c++/11.2.0/bits/stringfwd.h:79:33: note: ‘std::string’ declared here
   79 |   typedef basic_string<char>    string;
      |                                 ^~~~~~
mutators.cpp:376:24: error: ‘message’ was not declared in this scope; did you mean ‘Rcpp::message’?
  376 |             Rcpp::stop(message.c_str());
      |                        ^~~~~~~
      |                        Rcpp::message
In file included from /<lib>/Rcpp/include/Rcpp/api/meat/meat.h:45,
                 from /<lib>/Rcpp/include/Rcpp.h:90,
                 from rprotobuf.h:67,
                 from mutators.cpp:19:
/<lib>/Rcpp/include/Rcpp/api/meat/message.h:26:17: note: ‘Rcpp::message’ declared here
   26 |     inline void message(SEXP s) {
      |                 ^~~~~~~
mutators.cpp: In function ‘void rprotobuf::CHECK_repeated_vals(const google::protobuf::FieldDescriptor*, SEXP, int)’:
mutators.cpp:401:25: error: ‘string’ was not declared in this scope; did you mean ‘std::string’?
  401 |                         string message = "Not a message of type '" +
      |                         ^~~~~~
      |                         std::string
In file included from /usr/include/c++/11.2.0/string:39,
                 from rprotobuf.h:28,
                 from mutators.cpp:19:
/usr/include/c++/11.2.0/bits/stringfwd.h:79:33: note: ‘std::string’ declared here
   79 |   typedef basic_string<char>    string;
      |                                 ^~~~~~
mutators.cpp:403:36: error: ‘message’ was not declared in this scope; did you mean ‘Rcpp::message’?
  403 |                         Rcpp::stop(message.c_str());
      |                                    ^~~~~~~
      |                                    Rcpp::message
In file included from /<lib>/Rcpp/include/Rcpp/api/meat/meat.h:45,
                 from /<lib>/Rcpp/include/Rcpp.h:90,
                 from rprotobuf.h:67,
                 from mutators.cpp:19:
/<lib>/Rcpp/include/Rcpp/api/meat/message.h:26:17: note: ‘Rcpp::message’ declared here
   26 |     inline void message(SEXP s) {
      |                 ^~~~~~~
mutators.cpp: In function ‘void rprotobuf::setNonRepeatedMessageField(google::protobuf::Message*, const google::protobuf::Reflection*, const google::protobuf::FieldDescriptor*, SEXP, int)’:
mutators.cpp:546:23: error: ‘string’ does not name a type; did you mean ‘stdin’?
  546 |                 const string int32str = COPYSTRING(CHAR(STRING_ELT(value, 0)));
      |                       ^~~~~~
      |                       stdin
mutators.cpp:547:80: error: ‘int32str’ was not declared in this scope; did you mean ‘int32_t’?
  547 |                 ref->SetInt32(message, field_desc, Int32FromString<GPB::int32>(int32str));
      |                                                                                ^~~~~~~~
      |                                                                                int32_t
mutators.cpp:556:23: error: ‘string’ does not name a type; did you mean ‘stdin’?
  556 |                 const string uint32str = COPYSTRING(CHAR(STRING_ELT(value, 0)));
      |                       ^~~~~~
      |                       stdin
mutators.cpp:557:82: error: ‘uint32str’ was not declared in this scope; did you mean ‘uint32_t’?
  557 |                 ref->SetUInt32(message, field_desc, Int32FromString<GPB::uint32>(uint32str));
      |                                                                                  ^~~~~~~~~
      |                                                                                  uint32_t
mutators.cpp:572:23: error: ‘string’ does not name a type; did you mean ‘stdin’?
  572 |                 const string int64str = COPYSTRING(CHAR(STRING_ELT(value, 0)));
      |                       ^~~~~~
      |                       stdin
mutators.cpp:573:80: error: ‘int64str’ was not declared in this scope; did you mean ‘int64_t’?
  573 |                 ref->SetInt64(message, field_desc, Int64FromString<GPB::int64>(int64str));
      |                                                                                ^~~~~~~~
      |                                                                                int64_t
mutators.cpp:584:23: error: ‘string’ does not name a type; did you mean ‘stdin’?
  584 |                 const string int64str = COPYSTRING(CHAR(STRING_ELT(value, 0)));
      |                       ^~~~~~
      |                       stdin
mutators.cpp:585:82: error: ‘int64str’ was not declared in this scope; did you mean ‘int64_t’?
  585 |                 ref->SetUInt64(message, field_desc, Int64FromString<GPB::uint64>(int64str));
      |                                                                                  ^~~~~~~~
      |                                                                                  int64_t
make: *** [/usr/lib64/R/etc/Makeconf:177: mutators.o] Error 1
ERROR: compilation failed for package ‘RProtoBuf’

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4