Hello,
I am trying to get started with CppWamp (v0.6.2) on a Windows 7 system and I ran into some issues when building the chat example.
I have pulled a fresh copy of rapidjson and made a project with the main from cppwamp/examples/chat. This project also has the required boost 1.59 libs (statically build for minGW-w64 gcc 5.3.0).
I included the rapidjson headers, the boost headers (all to be sure) and headers and the source file from cppwamp/cppwamp/.
When I try to build this using minGW-w64 gcc 5.3.0 with the C++11 flag I get a compiler error that says:
src\rapidjson\reader.h|1321|error: 'class wamp::internal::JsonVariantBuilder' has no member named 'RawNumber'
JsonVariantBuilder is implemeneted in cppwamp/cppwamp/internal/json.ipp and is an instance of VariantBuilder as defined in cppwamp/cppwamp/intrenal/variantbuilder.hpp
Both VariantBuilder and wamp::internal::JsonVariantBuilder do indeed not have a member function named RawNumber.
From the calls it seems this function should look something like:
bool RawNumber(TargetEncoding::Ch* str, std::size_t length, bool dontParseInSitu);
Has something been changed in rapidjson that broke the example?
Is there anyone who has encountered this before and if so, is there an already known solution?
Is there anyone who knows what data the member RawNumber should contain?
Kind regards, Nico
src\rapidjson\reader.h||In instantiation of 'void rapidjson::GenericReader<SourceEncoding, TargetEncoding, StackAllocator>::ParseNumber(InputStream&, Handler&) [with unsigned int parseFlags = 0u; InputStream = wamp::internal::IStreamWrapper<std::basic_istream<char> >; Handler = wamp::internal::JsonVariantBuilder; SourceEncoding = rapidjson::UTF8<>; TargetEncoding = rapidjson::UTF8<>; StackAllocator = rapidjson::CrtAllocator]':
src\rapidjson\reader.h|1379|required from 'void rapidjson::GenericReader<SourceEncoding, TargetEncoding, StackAllocator>::ParseValue(InputStream&, Handler&) [with unsigned int parseFlags = 0u; InputStream = wamp::internal::IStreamWrapper<std::basic_istream<char> >; Handler = wamp::internal::JsonVariantBuilder; SourceEncoding = rapidjson::UTF8<>; TargetEncoding = rapidjson::UTF8<>; StackAllocator = rapidjson::CrtAllocator]'
src\rapidjson\reader.h|498|required from 'rapidjson::ParseResult rapidjson::GenericReader<SourceEncoding, TargetEncoding, StackAllocator>::Parse(InputStream&, Handler&) [with unsigned int parseFlags = 0u; InputStream = wamp::internal::IStreamWrapper<std::basic_istream<char> >; Handler = wamp::internal::JsonVariantBuilder; SourceEncoding = rapidjson::UTF8<>; TargetEncoding = rapidjson::UTF8<>; StackAllocator = rapidjson::CrtAllocator]'
src\rapidjson\reader.h|524|required from 'rapidjson::ParseResult rapidjson::GenericReader<SourceEncoding, TargetEncoding, StackAllocator>::Parse(InputStream&, Handler&) [with InputStream = wamp::internal::IStreamWrapper<std::basic_istream<char> >; Handler = wamp::internal::JsonVariantBuilder; SourceEncoding = rapidjson::UTF8<>; TargetEncoding = rapidjson::UTF8<>; StackAllocator = rapidjson::CrtAllocator]'
src\cppwamp\internal\json.ipp|53|required from 'void wamp::internal::decodeJson(TStream&, wamp::Variant&) [with TStream = wamp::internal::IStreamWrapper<std::basic_istream<char> >]'
src\cppwamp\internal\json.ipp|247|required from here
src\rapidjson\reader.h|1321|error: 'class wamp::internal::JsonVariantBuilder' has no member named 'RawNumber'
src\rapidjson\reader.h|1333|error: 'class wamp::internal::JsonVariantBuilder' has no member named 'RawNumber'